Merge "Merge "Handle renamed packages during default grants" into oc-dev am: bfc083c3a0 am: 7e05bb7793"
This commit is contained in:
committed by
Android (Google) Code Review
commit
38e49013e0
@@ -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