• NNECLevel 1 - Junior Member

    • Edited

    a couple of points i noticed. number 1 - there is no need to rename/resign apps. ALL apps are installable.
    number 2, running adb shell settings --user 0 put system keyboard_pointer_enable 1 does enable a mouse but pressing the power button cancels it. have no idea how to get this to stay.

      lgexalter1 So if anyone has any ideas how to permanently disable avb/dm-verity please share!

      Could you briefly say what method you used? I manually edited my system_root on-device which should be equivalent. I just now booted to recovery and did a factory reset. The device came up and after enabling adb again things look good. I believe I did these hoping to fix my recovery boot-loops - it did not, but I'm sure fixes this problem:

      fastboot --disable-verity --disable-verification vbmeta vbmeta.bin
      fastboot --disable-verity --disable-verification vbmeta_system vbmeta_system.bin
      fastboot --disable-verity --disable-verification vbmeta_vendor vbmeta_vendor.bin

      Retrieved the partitions in adb shell su with dd.

      Biden2020prez Does Anyone know how to implement microg?

      I can try it. I used MagiskGapps but this looks suitable.

      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.