Loading services/core/java/com/android/server/pm/PackageManagerService.java +5 −4 Original line number Diff line number Diff line Loading @@ -5806,10 +5806,6 @@ public class PackageManagerService extends IPackageManager.Stub private void updateSequenceNumberLP(PackageSetting pkgSetting, int[] userList) { for (int i = userList.length - 1; i >= 0; --i) { final int userId = userList[i]; // don't add instant app to the list of updates if (pkgSetting.getInstantApp(userId)) { continue; } SparseArray<String> changedPackages = mChangedPackages.get(userId); if (changedPackages == null) { changedPackages = new SparseArray<>(); Loading Loading @@ -5854,6 +5850,11 @@ public class PackageManagerService extends IPackageManager.Stub for (int i = sequenceNumber; i < mChangedPackagesSequenceNumber; i++) { final String packageName = changedPackages.get(i); if (packageName != null) { // Filter out the changes if the calling package should not be able to see it. final PackageSetting ps = mSettings.mPackages.get(packageName); if (shouldFilterApplicationLocked(ps, callingUid, userId)) { continue; } packageNames.add(packageName); } } Loading
services/core/java/com/android/server/pm/PackageManagerService.java +5 −4 Original line number Diff line number Diff line Loading @@ -5806,10 +5806,6 @@ public class PackageManagerService extends IPackageManager.Stub private void updateSequenceNumberLP(PackageSetting pkgSetting, int[] userList) { for (int i = userList.length - 1; i >= 0; --i) { final int userId = userList[i]; // don't add instant app to the list of updates if (pkgSetting.getInstantApp(userId)) { continue; } SparseArray<String> changedPackages = mChangedPackages.get(userId); if (changedPackages == null) { changedPackages = new SparseArray<>(); Loading Loading @@ -5854,6 +5850,11 @@ public class PackageManagerService extends IPackageManager.Stub for (int i = sequenceNumber; i < mChangedPackagesSequenceNumber; i++) { final String packageName = changedPackages.get(i); if (packageName != null) { // Filter out the changes if the calling package should not be able to see it. final PackageSetting ps = mSettings.mPackages.get(packageName); if (shouldFilterApplicationLocked(ps, callingUid, userId)) { continue; } packageNames.add(packageName); } }