Merge "[Bugfix]check whitelisted packages exclude nonsystem app"

This commit is contained in:
Adam Bookatz
2023-03-15 01:43:55 +00:00
committed by Gerrit Code Review

View File

@@ -222,7 +222,7 @@ class UserSystemPackageInstaller {
final Set<String> userAllowlist = getInstallablePackagesForUserId(userId);
pmInt.forEachPackageState(packageState -> {
if (packageState.getPkg() == null) {
if (packageState.getPkg() == null || !packageState.isSystem()) {
return;
}
boolean install = (userAllowlist == null