Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d522bd94 authored by Jackal Guo's avatar Jackal Guo Committed by Android (Google) Code Review
Browse files

Merge "Report changes from Instant App"

parents bf11c01e c62fd3b1
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -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<>();
@@ -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);
                }
            }