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