From c955e6f3da03a17e2d208f1e3fbc5e7774a86fb9 Mon Sep 17 00:00:00 2001 From: Zhi An Ng Date: Thu, 24 Jan 2019 02:59:07 +0000 Subject: [PATCH] Revert "Do not load xml metadata for unchanged packages in RegisteredServicesCache" This reverts commit 36de60dc322ba4176947f7509bad19b9c9699b92. Reason for revert: broke account syncing b/122912184 Change-Id: I32940a4425f9e644843f6acf65b8f67d3629c24b --- core/java/android/content/pm/RegisteredServicesCache.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/java/android/content/pm/RegisteredServicesCache.java b/core/java/android/content/pm/RegisteredServicesCache.java index 6e519c1863e8b..a8c3b889421be 100644 --- a/core/java/android/content/pm/RegisteredServicesCache.java +++ b/core/java/android/content/pm/RegisteredServicesCache.java @@ -475,14 +475,6 @@ public abstract class RegisteredServicesCache { final List 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 info = parseServiceInfo(resolveInfo); if (info == null) { Log.w(TAG, "Unable to load service info " + resolveInfo.toString());