Fix apexModuleName in getPrivilegedPermissionAllowlistState().
Bug: 266163702 Change-Id: I6e682afb36d29aa649bad5c23a4c06d6f20642c4 Test: presubmit
This commit is contained in:
@@ -1001,10 +1001,7 @@ class UidPermissionPolicy : SchemePolicy() {
|
||||
permissionName: String
|
||||
): Boolean? {
|
||||
val permissionAllowlist = newState.systemState.permissionAllowlist
|
||||
val apexModuleName = permissionAllowlist.apexPrivilegedAppAllowlists
|
||||
.firstNotNullOfOrNullIndexed { _, apexModuleName, apexAllowlist ->
|
||||
if (packageState.apexModuleName in apexAllowlist) apexModuleName else null
|
||||
}
|
||||
val apexModuleName = packageState.apexModuleName
|
||||
val packageName = packageState.packageName
|
||||
return when {
|
||||
packageState.isVendor -> permissionAllowlist.getVendorPrivilegedAppAllowlistState(
|
||||
|
||||
Reference in New Issue
Block a user