Why if I delete the Packageinstaller apk on Android 6 the whole Android OS crashes? 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?
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.