Biden2020prez edited the script to use the quick dial button, since it can be set to deactivated anyway. I didn't look at all the keys much beforehand, obviously.

  • NNECLevel 1 - Junior Member

    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.

      • NEC replied to this.

        Anyone Know whether the phone supports usb otg?

          • NNECLevel 1 - Junior Member

            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..

              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?

              • NEC replied to this.
                • NNECLevel 1 - Junior Member

                  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.

                  • NNECLevel 1 - Junior Member

                    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.

                    • NNECLevel 1 - Junior Member

                      lgexalter1 got it. thanks! will try this later!

                      • darthLevel 6 - Platinum Elite Member

                        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?

                        • darthLevel 6 - Platinum Elite Member

                          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

                            • darthLevel 6 - Platinum Elite Member

                              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?