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

Commit c955e6f3 authored by Zhi An Ng's avatar Zhi An Ng
Browse files

Revert "Do not load xml metadata for unchanged packages in RegisteredServicesCache"

This reverts commit 36de60dc.

Reason for revert: broke account syncing b/122912184

Change-Id: I32940a4425f9e644843f6acf65b8f67d3629c24b
parent 36de60dc
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -475,14 +475,6 @@ public abstract class RegisteredServicesCache<V> {
        final List<ResolveInfo> resolveInfos = queryIntentServices(userId);
        for (ResolveInfo resolveInfo : resolveInfos) {
            try {
                // if this package is not one of those changedUids, we don't need to scan it,
                // since nothing in it changed, so save a call to parseServiceInfo, which
                // can cause a large amount of the package apk to be loaded into memory.
                // if this is the initial scan, changedUids will be null, and containsUid will
                // trivially return true, and will call parseServiceInfo
                if (!containsUid(changedUids, resolveInfo.serviceInfo.applicationInfo.uid)) {
                    continue;
                }
                ServiceInfo<V> info = parseServiceInfo(resolveInfo);
                if (info == null) {
                    Log.w(TAG, "Unable to load service info " + resolveInfo.toString());