Merge "[Bugfix]check whitelisted packages exclude nonsystem app"
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