NNECLevel 1 - Junior Member
neutronscott bit above my level. i'm just following the conversation and enjoying the benefits!
neutronscott bit above my level. i'm just following the conversation and enjoying the benefits!
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.
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.
does removing root brings back the apk restrictions?
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
neutronscott one second ... How will we allow apps in kosher firmware?
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 Just trying to anticipate [Login to see the link] question - if you wanted to distribute a ROM with a Kosher App store but not Magisk, you could set the endurance property in vendor.img's build.prop.
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.
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?