[RESTRICT AUTOMERGE] Fix the inconsistency of protection level am: b5efdf7293
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16531386 Change-Id: I5f62762f2fb31797b59849bf299b33e438b756af
This commit is contained in:
@@ -409,6 +409,8 @@ public final class BasePermission {
|
||||
}
|
||||
if (bp.perm != null && Objects.equals(bp.perm.getPackageName(), p.getPackageName())
|
||||
&& Objects.equals(bp.perm.getName(), p.getName())) {
|
||||
bp.perm.setFlags(bp.perm.getFlags() & ~PermissionInfo.FLAG_INSTALLED);
|
||||
bp.perm = p.setFlags(p.getFlags() | PermissionInfo.FLAG_INSTALLED);
|
||||
bp.protectionLevel = p.getProtectionLevel();
|
||||
}
|
||||
if (bp.isRuntime() && (ownerChanged || wasNonRuntime)) {
|
||||
|
||||
Reference in New Issue
Block a user