Merge "Handle renamed packages during default grants" into oc-dev am: bfc083c3a0
am: 7e05bb7793
Change-Id: Ib4e3b2799c2a104fd203b6e64e86d6181567b177
This commit is contained in:
@@ -936,7 +936,7 @@ final class DefaultPermissionGrantPolicy {
|
||||
// permissions if the version on the system image does not declare them.
|
||||
if (!isDefaultPhoneOrSms && pkg.isUpdatedSystemApp()) {
|
||||
PackageSetting sysPs = mService.mSettings.getDisabledSystemPkgLPr(pkg.packageName);
|
||||
if (sysPs != null) {
|
||||
if (sysPs != null && sysPs.pkg != null) {
|
||||
if (sysPs.pkg.requestedPermissions.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user