NEC wow nice. perhaps we can just make our own button trigger that sets this. I'd like to modify the services.jar. I extracted the class files with dex2jar but haven't had success putting it back together. I'd just replace the hardcoded * key to this I think.

  • NEC replied to this.

    NEC Your contribution is great. How did you find this setting?

    It seems lk doesn't need hacked. I found this in /vendor/bin/write_protect:

    echo -n "DISABLE_POWP" | dd of=/dev/block/platform/bootdevice/by-name/oembin seek=30720 bs=1 conv=notrunc

    I was just waiting on super to flash (I broke it) and looking in vendor.img for "prot" to see about network unlock stuff and there it was.

    EDIT: Tested and working. I'm removing my modified lk since this is better.

      neutronscott I think you can maybe network unlock form protect1, but don't know how. You can email of if you are interested about that.

      Anyone know a way to restrict all app installation to a special signing key?

      lgexalter1 So far I only flashed stock super.img with fastboot and did in-place edits. No issues after wiping though.

      Here is a quick shell script to enable/disable mouse by following logcat output. Since the messages are the same for keyUp and keyDown it ignores the stream for 2 seconds. If you don't set a quick dial then it should be fine to steal this key.

      [Login to see the link]

      Certainly not for production use but for now while messing with apps..

        neutronscott would that disable multimedia messaging. Is there a way without root?
        i am curious because it would be great to distribute kosher firmware with mouse without root Or adb.

        Edit: whoops i didn't read the last part of your post.
        [Login to see the link] crazy good find!

          Biden2020prez Is there a way without root?

          Ideally we edit services.jar to assign this to a key and put that in super/system.

          EnriqueMcquade does removing root brings back the apk restrictions?

          Only necessary to install them. Should be able to revert boot.img after they are installed.

          Edit: oh want to install apk without root? Hmm. Would need modified super to fix the prop file maybe

            • darthLevel 6 - Platinum Elite Member

              neutronscott When I reflash my stock boot.img all of my apps that I installed are still there. And it does block any new installations.

              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.