Modify isEmergencyInstallEnabled() to check for priv-only permissions that allow apps to update themselves
and to verify for system apps before triggering an emergency install.

Bug: 321080601
Test: atest PackageManagerShellCommandInstallTest
Change-Id: I4ae8ece44af8c1672bdb81f4033abd0c890f6cf3
1 file changed