Merge changes from topic "12933477" into rvc-dev am: 6a6a15d595
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12986657 Change-Id: I37e37b032af51ba82edc6fa7ebc4990d986eda0f
This commit is contained in:
committed by
Automerger Merge Worker
commit
38540db913
@@ -367,7 +367,7 @@ public final class BasePermission {
|
||||
if (bp == null) {
|
||||
bp = new BasePermission(p.getName(), p.getPackageName(), TYPE_NORMAL);
|
||||
}
|
||||
boolean wasNormal = bp.isNormal();
|
||||
boolean wasNonRuntime = !bp.isRuntime();
|
||||
StringBuilder r = null;
|
||||
if (bp.perm == null) {
|
||||
if (bp.sourcePackageName == null
|
||||
@@ -411,7 +411,7 @@ public final class BasePermission {
|
||||
&& Objects.equals(bp.perm.getName(), p.getName())) {
|
||||
bp.protectionLevel = p.getProtectionLevel();
|
||||
}
|
||||
if (bp.isRuntime() && (ownerChanged || wasNormal)) {
|
||||
if (bp.isRuntime() && (ownerChanged || wasNonRuntime)) {
|
||||
// If this is a runtime permission and the owner has changed, or this was a normal
|
||||
// permission, then permission state should be cleaned up
|
||||
bp.mPermissionDefinitionChanged = true;
|
||||
|
||||
Reference in New Issue
Block a user