NneutronscottLevel 5 - Gold Elite Member
lgexalter1 oh, I moved things around in my gist and thought I edited the post. Must not have hit save: [Login to see the link]
lgexalter1 oh, I moved things around in my gist and thought I edited the post. Must not have hit save: [Login to see the link]
lgexalter1 It should toggle, don't hold it.
neutronscott i run this script straight through adb? do i need anything else set first?
NEC yes it's just ran in an adb shell for now. it just helps automate the setting you found. no other settings needed. finding how to intercept the intercepted keys is on my TODO so it can be an included service.
Anyone Know whether the phone supports usb otg?
i downloaded a setedit app which allows me to change values and use the mouse from there. however, i'm sure there's an easier way....
I spent several hours making a Linux input event remapper to find out the virtual pointer doesn't work when I'm rewriting events from the "gpio input". The other input is the mtk-kpd. It controls the QuickDial, Power, and Volume keys. So best I can do is takeover the Quick Dial key still but at least it's not using a pipe to logcat (which can crash).
If anyone would like to try the binary: ./grab /dev/input/event1
cc9e4ec38991d72d55099fd92e27fe06 [Login to see the link]
If you run it on /dev/input/event2 it will rewrite the *
key, so favorites should not popup. But you'll notice the virtual pointer doesn't work either.
edit: might seem flaky because it toggles an internal variable so if you end the pointer with POWER the next button press will still set it off, which makes it feel broken. Work in progress..
neutronscott thanks For all the time and effort!
neutronscott how do i run this in adb shell it keeps giving me errors
NEC i haven't tried this so i cant answer your question but i am curious: how did you find this adb command in the first place?
Biden2020prez to be honest i was really just going through the settings list and noticed the pointer which i thought might be interesting to toggle with.
Biden2020prez it should but what device did you want to work? I have enough pieces to compile kernel modules if needed.
lgexalter1 i'm not really the most initiated guy at all. i ran adb shell and tried to attach the file, then tried to run each line independently, neither of which worked. (line 4 returned an error "while is not a recognized command" or something like that.
i'm sure i'm missing something obvious and probably sound very foolish at that, but i'd love to get a little knowledge how to do the simple things around here.
lgexalter1 got it. thanks! will try this later!
lgexalter1 Why am I getting /system/bin/sh: ./mouse.sh: can't execute: Permission denied
? It probably has to do with the same reason I cant modify anything in system even though I removed write protection and did mount -o remount,rw /
? Is there any step that Im missing to be able to modify system?
lgexalter1 My bad I posted the wrong error (I got that one before I made it executable...) My error Im getting is /system/bin/sh: ./mouse.sh: No such file or directory
Y'all should try that but with the grab binary. Shell script is old news heh
lgexalter1 pushed to /data/local/tmp/ and I was in Gflip6_TF:/data/local/tmp #
neutronscott What do you mean? I tried that grab binary with /dev/input/event1
and event2
all it did was show me when a button was pressed, is it supposed to do more?
darth yeah it should do the enable mouse setting with quickdial press when using event1.
I'll make it a proper service and magisk module maybe soon
neutronscott Ok I realized it is working when I used your grab binary, but only while the binary is running, once I stop it/close shell than the mouse activation stops.
Is it possible to have the apps cause the mouse to start? Why does the browser start it? It would be more convenient if we didn't even make a toggle for it rather it would be the default selector in the app similar to the browser?