virresh / matvt Goto Github PK
View Code? Open in Web Editor NEWVirtual Mouse for Android TV that can be controlled via remote itself.
License: GNU General Public License v3.0
Virtual Mouse for Android TV that can be controlled via remote itself.
License: GNU General Public License v3.0
Hello
I'm having an issue with Sony TV running Android TV OS version 10
It shows:
Overlay Permissions Not Granted
Even though it's already been granted, note that the accessibility permissions is working and shows that it's granted
Point 2 of #8 (comment)
and https://gitter.im/virresh/community?at=60729023ae90f36840733a3d
sums up the issue.
Need to debug and fix timers on posting of runnables.
I would like to be able to change how long the mouse takes to go away, can you please do that? Thanks...
TV Artel, a clone of Thomson Android TV 2020
Smart TV T32RTL6000.
The remote is connected to the TV via bluetooth.
The MATVT program cannot detect any button pressed on the remote. For the experiment, I connected a bluetooth gamepad. MATVT detects button presses on the gamepad.
I want to make the remote control work like a mouse, because sometimes it is very necessary, especially in a web browser.
Below are screenshots of the TV screen from AIDA64:
If necessary, I can take other screenshots. Is it possible to make your program work with this remote on this TV?
MATVT V1. 0.6.
ISSUES PROBLEMS SOLUTIONS
MATVT MOUSE FOR ATV
SUPPORT
MATVTV- MOUSE FOR ANDROID TV TOGGLE
Hi!
First of all thank you very much for your great work on this tool. This is really useful!
Unfortunately I have a problem: inside the app it always says "not granted" for app overlay permissions, no matter how often I try to enable or disable the settings.
The accessibility service says granted, I'm using the Chromecast with Google TV.
Any ideas?
Thanks in advance.
Hello, thanks for your awesome work on this app .
It works fine at least on the home page .
But within apps I can't click on any button .
The remote wouldn't activate the mouse for me unless I set the boss key to a button that didn't send an infrared signal to my tv. So I suspect the remote doesn't send a signal to the chromecast if it's set to send an infrared signal to the tv instead for the volume, power, mute, and input buttons. I don't know how you would code around this but it's something that should be stated in the instructions.
Got it working... Thanks for this one, just perfect! Only thing missing would be an option to set the cursor movement speed for those really big screens or projectors.
The app works great, but it conflicts with the remote volume keys. If i hold volume up/down, the tv acts as if i pressed it only once, so if i want to raise or lower the volume i need to press the volume key repeatedly. The problem is gone when i force quit the app.
Not really a big issue but a little annoying.
Thanks for the hard work.
Is a Android tv with android 9
https://github.com/androidthings/contrib-drivers
Seems promising alternative to Accessibility services. Might help alleviate issues folks face specific clicks not registering etc etc
Hello
I download this
https://github.com/virresh/matvt/releases/tag/v1.0.6
Wishes
After run your program, in Other Settings, please add option "Mouse cursor disappearance time" in sec
If 0 - the mouse cursor is shown constantly
If greater than 0 - the mouse cursor hide after XX sec
After run your program, in Other Settings, please add option "Disable Scroll Mode"
If enable option "Disable Scroll Mode", when press * 2 times, you cycle through 2 different modes
Mouse Mode
Dpad Mode
Please make change value a Mouse Size from 0 to 20 (such as Scroll Speed)
Please make, for enable or disable double click button
Thank You!
Hı. Mouse click not working xiaomi mi tv stick 4k with Android 11. Working on main menü apps but not working adertisement some apps. Thanks
I've posted an unlisted video titled MATVT v1.0.3 issues at https://youtu.be/aXtHGwBvb7w
It's not searchable. Please share the URL as you see fit.
hello I am trying to use the pointer to click long and that an option appears that requires doing this action that would be the same with the finger on a touch screen but is that the pointer does nothing, an option must be activated?, I using version 1.0.6 without modifying. Thanks a lot.
Requested by Peterkoopman13 from twitter:
"holding the ok button and try to move with the dpad it doesn't really select a area, it doesn't seem to act like holding you're mouse button down"
Might require some multi-threading etc
This would ideally be possible to implement after #10 is implemented
just installed on CC today (CC installed today as well). AndroidTV OS 10.
installs ok but it wont accept permissions. I give it access to permissions requested and googletv says it has the proper permissions... but if i click the app in the setting->app list and check permissions there, its doesnt show any. and in the app it shows as missing all of the permissions. manually checking permissions shows they are enabled for the app.
i deleted and reinstalled, and got the accessibility setting to stick, but cant her the Overlay Permissions to stick.
thus, cant get it working
Navigate and center ringbutton works fine on Google Startpage.
Navigate on SmartNextTube or Brave works fine but the select button refuse to work?
Question: What can I do so I can use the center ring button to select what I want, pls?
Tip; is it possible to have a automatic scroll when touching the sides of the screen instead of togglings?
Thanks for your hard work. I tried this app on my Android TV and it's working great. I also have a Freetel Musashi flip phone and its touch screen isn't working anymore so I want to try this app but it is only for android 6+. My phone runs android 5.1, could you consider making a test build for lower sdk phones? Thank you!
Could you please publish the application on F-Droid. So the update on the Android TV could be done by the F-Droid client without sideloading every time.
If it is too complicated, maybe the app could be added to IzzyOnDroid's repo.
Thank you very much.
Hai @virresh ...
about ..
1.ADB
2.scrolling
some apps usese adb services to controll tv actions checkout these repo and try to implement may be it will work
MuntashirAkon/libadb-android
tytydraco/LADB // more preferable & easy
it has advantage of local and remote connection
some time some apps.... scrooll will treat as click action it clicks more times per sec on the app . some apps not scrolling
truefedex/tv-bro
in this repo he implemented mouse cursor action in browser so that try to check out may help you for further development. scrolling is smoother & the cursor will change its colour accourding to the background colour like light & dark. may be it work for you and gives some idea..
enhancement:
implement double click to scroll to easy
shifting scroll to mouse some remots like larger is not easy all
just check out these repos and may get some idea .....
Hi Virresh, I have installed apk on TOSHIBA 58UA2063DG (Android TV 9). I have enabled Display Over other Apps. However there is no Mouse Toggle Service Switch in Accessibility section of Device prefs so I cannot configure the keycode. I have also tried to install other version (activated with Info key) and no success neither. Can you help with this? Thanks
Update: I have open MATVT and it says Overlay permission Granted however Overlay Service not running. Both Accesibility permission and service were not granted and not running.
I have read somewhere that these may be Enabled/Started via ADB? Could the above issue be dealt with via ADB? Thank you
Requested by Samuel ([email protected]) over email for Android phones without a touchscreen
Example model -- https://www.lg.com/us/cell-phones/lg-VN220-verizon-exalt#
Expectation -- Mouse enabled via VoiceCommand button [key 60 TV_INPUT_HDMI_1]
Since these models look like they're dumbed down version Android 6, I'm not too hopeful of them supporting most APIs
Also since it's Android 6, it'll not have support for gesture API, so we're stuck with Android getting things right via the performAction API (which IMO is highly unreliable)
Firstly, I am trying this with Tanix TX6 android TV box and it is working great with the Tanix remote. Thanks very much for making the program available.
However, I want to use it with HDMI-CEC control from a Samsung TV using the TV remote. It is somewhat working in that I can map a new keycode in MATVT and it will toggle scroll mode enabled/disabled if already in mouse mode. Direction buttons will move the mouse. However it can't send a long press to toggle between mouse mode and D-pad mode. All the keycodes from the Samsung TV HDMI-CEC send a make code followed immediately by a break code.
If you do a future version, it would be nice if you could allow operation without needing the long press. If you had an optional setting that would just toggle between mouse mode, scroll mode, and D-pad mode with each press of the key it would be great. The mouse speed acceleration doesn't work over CEC, because the Samsung CEC is constantly sending make/breaks for the direction keys, so the mouse is somewhat slow, but that is OK. Mainly need a way to change between mouse mode and D-pad mode without the long press.
Thanks again for sharing this great program.
Hi virresh,
Many thanks for your work and for the way you handle this project.
I have a new 2021 TCL Series 6 TV running Google TV based on Android 11. I've installed MATVT v1.0.6 successfully and can see and move the mouse cursor. But pressing the center button to click the mouse does not work -- unless the item I'm clicking already has focus, i.e. shows the visible indication of focus and would normally respond if you press the center button in normal DPAD mode. It also seems like the DPAD buttons have no effect in Scroll Mode. A normal mouse plugged into the USB port of my TV works as expected.
Please let me know if there is any workaround I might try, and thank you for your attention.
Would it be possible to separate mouse and scroll functions?
My idea would be to use at least two shortcut buttons. One to activate the mouse and one to activate the scroll
I used your app with great success on the Sonim XP3 flip phone. But on the new model, the XP3plus, which runs on Android 11 Go, clicking and swiping don't work at all. I don't know if this is an issue with the way that Accessibility works on Android 11 Go or if it's more specific to this phone model. However, another app which uses Accessibility to click on Nodes, switchboard, works fine on this phone.
The Center Key of the DPAD still has the same KEYCODE value
I would be glad to contribute code, but I'm not very familiar with the way Accessibility works
Thank you for this mouse toggle app.
Would it be possible to scroll up when the mouse hits the bottom border of the screen and to start scrolling down when the mouse hits the upper border of the screen?
This would eliminate the need to constantly switch between Mouse and D-Pad mode in the web browsers (like Chrome).
Also, scrolling left and right on the right and left border would be useful inside some applications.
I am a developer considering adding mouse functionally to an upcoming app using matvt however I cannot comply with the GPLv3 license.
Can I use a more permissive license such as the Mozilla Public License 2.0 or Apache License 2.0.
I want to use a more permissive license since it would enable me to use matvt in my upcoming app and contribute to matvt.
Hi
Can some one tell me, what is the activation key and boss key i should use in Airtel Xtreme box remote ? I have installed the application successfully and enabled all the permissions... It just the key doesnt look like working. Kindly help.
When the app is installed and enable I can't move up or down on my Mi Box S home screen. In settings and app drawer it works just fine but not on the home screen I tried reinstalling it but nothing changes as soon as I enable it I can't move up or down only left and right works on the home screen.
Happily many Voice commands do work, such as "Open Side Load Launcher", "open YouTube" etc.
But when in Mouse navigation mode the pointer moves around screen as it should, but selection and execution of apps below the Apps Favourites row don't work.
I tried using the Android TV app (from Google Play Store) on my Moto g(8) phone and when this is paired it's DPad, etc, does the same things as described above for the Xaiomi remote.
I'd be happy to work with you Virresh to sort out this problem.
I have 2 Mi Box S, so it would be nice if you can fix this, otherwise, let me know how to restore the affected app on my Mi Box S to it's original condition. Note my second Mi Box S has never had the TDUK-MATVT_1.0.1v2.apk installed.
Is it possible to provide the ability to activate the mouse by pressing 2 keys alternative (or simultaneously). Eg: press volume + and - alternatively.
I have a Xiaomi MiBox 3 and I kinda need all the keys (don't have one that I don't use).
And BTW when the app is active left key is not working anywhere. So that's a bug.
On my sony tv info button is very important and I need it. For now I Just can't use this app because when I Press info button it triggers mouse.
I would want to completely disable additional buttons and use only boss key.
ADB lib - https://github.com/tananaev/adblib
This would send shell input commands directly to the input jar on devices with wireless adb enabled.
Hi,
is possible to have the ability to scroll with the mouse in an app where the DPAD does not work?
Thanks
Dont work on licensed androidTV 9.
The laucher keys not working, tried with Back, Dpad L, Up, Right, Center. Etc. I used the keycodes detected by keyevent detector app.
When rebooting the accessibility service is always on "off". Might also be a bug of Android TV 10 latest update, but it's the only app with such a behavior.
Hello this issue is for Android 12 update
Hello,
I just installed the following version on a Tivo Stream 4k device. Mostly seems to work great - thanks!!
https://github.com/virresh/matvt/releases/tag/v1.03
I did notice that on the main Android TV screen, I cannot click left on the remote and highlight/select the circles (i.e. Apps, Play Next, etc.). It just seems to stay focused on the first item of each row.
Is this a known issue?
Thank you
Now I cannot press select, and cannot go back. Any simple way to restore it?
copy and paste does not work on nvidia shield 2017
When the app is installed and enable I can't move up or down on my TCL TV home screen. In settings and app drawer it works just fine but not on the home screen I tried reinstalling it but nothing changes as soon as I enable it I can't move up or down only left and right works on the home screen.
My android tv device does not have UI (1)to grant Overlay permission, and (2)to enable Accessibility service
First is rather easy with adb, but I don't know how to do second.
Could you give me a hint?
This will help tone down the scroll speed making the values more consistent over different devices, especially with devices having a very small screen, such as the flipphones.
as there is no accessibility settings option in vu premium 4k android tv....plzz provide the adb commands to enable
Accessiblity permissions
Accessibility service
And
Overlay service
My mobile phone is sonim xp5800,When I use mouse mode,Cannot click the content you want to !Options for content to stay in keyboard mode
there is a bug in the app where the pointer clicks while on scroll mode, im using the LG Smart Folder (LGM-X100S).
Just wanted to let you know:
On google chromecast TV it is not possible to move the apps around with this enabled.
I have button nr 3 (home button) enabled.
When long pressing and choosing move it gives boxes for left, right etc in the bottom corner.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.