Merge "[Bugfix]check whitelisted packages exclude nonsystem app" am: bd37127ef1 am: 5e690319be
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2486997 Change-Id: Ic0ffb4b17a55a3a27b77cd1c30c11fc5679c8525 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -222,7 +222,7 @@ class UserSystemPackageInstaller {
|
|||||||
final Set<String> userAllowlist = getInstallablePackagesForUserId(userId);
|
final Set<String> userAllowlist = getInstallablePackagesForUserId(userId);
|
||||||
|
|
||||||
pmInt.forEachPackageState(packageState -> {
|
pmInt.forEachPackageState(packageState -> {
|
||||||
if (packageState.getPkg() == null) {
|
if (packageState.getPkg() == null || !packageState.isSystem()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
boolean install = (userAllowlist == null
|
boolean install = (userAllowlist == null
|
||||||
|
|||||||
Reference in New Issue
Block a user