I’m wondering how to block app installation to make a kosher rom? I am looking for a method to do this on android 11. One of the things I tried was removing the permissions for the installd file in /system/bin. This worked to a certain extent but it still showed the icon in the app drawer if I tried to install it. The app crashed if I tried to open it, so it did somewhat block app installation. But I am wondering if there is a better way to accomplish this? Thanks!
I know this isn’t the type of answer you are looking for, but since I sell an MDM product that can do that, I will of course reference it.
Big reseller discounts available.
How did you remove that in the system/bin
You probably also have to block USB debugging so you can’t install apps via ADB.
Which phone are you trying to do this on?
Remove the “install” string of all languages in package installer…
I tried with the settings app on tcl and just couldn’t change any string do i sign it?
Don’t know what you said but don’t sign it.
Do you mean I should modify the packageinstaller.apk? I tried that but it puts the device into a bootloop.
On the tcl, the only way you can install is after flashing the boot image that enables it. so you really need to block that. You can change the propery in services.jar (from ro.vendor.tct.endurance
to something else that returns false (check in the build.prop). that way, even if someone flashes that boot img, it wouldn’t enable installation
It shouldn’t boot loop if you did it right
On the tcl it doesn’t work to install an app unless signed
Then ro2rw and flash the super
What does ro2rw mean? mount?
Read only to read and write magisk module
Can you post that module?
So heres how I had done it… 1. Rooted phone 2. Granted superuser permission to es file explorer 3. Copied packageinstaller.apk to my computer 4. Decompiled, Modified, and Recompiled but didn’t sign 5. Deleted original packageinstaller and paste in modified one 6. Reboot the phone and I have a bootloop.
Can you tell me what I did wrong? I checked the permissions and they were the same as the original…
Package installer is a dangerous part of the phone it’s vital for the phone to have it to operate
I’ll try making a guide later today bli neder remind me