Merge "Handle renamed packages during default grants" into oc-dev

am: bfc083c3a0

Change-Id: I068bb7548d1c972c3824185e5ab933a7b48c387b
This commit is contained in:
Todd Kennedy
2017-06-06 23:41:06 +00:00
committed by android-build-merger

View File

@@ -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;
}