1

I have a Rooted Moto E 2nd gen(Android 6), and when making experiments on it, I discovered that when I delete Packageinstaller.apk and reboot the device, the whole Android OS crashes. This was not happening on previous versions of Android. Do you know why?

4

Package installer is also managing permissions (AppOps) since Android 6, removing it means critical package lose permissions you are not supposed to be able to remove, as they are mandatory to proper phone usage.

3
  • Is there a way to disable new apps installation? May 14 '17 at 15:14
  • 1
    Yes, remove the permission to install package to the target user by making the account a managed account, or hook system to intercept installation window and ask for a password or outright kill it. (What you are looking to intercept is probably com.android.packageinstaller.PackageInstallerActivity). Going to intercept route means you may need to block app stores the same way as they can bypass this if installed on system partition. It will still be possible to install over ADB or recovery if left unprotected.
    – Zulgrib
    May 14 '17 at 21:59
  • "Package Manager" manages permissions including AppOps, not "Package Installer". Jun 8 '20 at 8:59

This site is temporarily in read only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .