OSDN Git Service

Revert "always adjust per-user application info"
authorAdam Lesinski <adamlesinski@google.com>
Thu, 8 Jun 2017 20:16:39 +0000 (20:16 +0000)
committerAdam Lesinski <adamlesinski@google.com>
Thu, 8 Jun 2017 21:10:52 +0000 (21:10 +0000)
This reverts commit e0046cecb079ec4d063444cee64795a6b734e6e7.

Reason for revert: Regresses UI theme

Bug: 62445682
Bug: 36561125
Change-Id: I9b60bd8e4eb89129368d38e83c0036ab459a524e

core/java/android/content/pm/PackageParser.java

index 5e5a6fc..9b0bab4 100644 (file)
@@ -7000,7 +7000,6 @@ public class PackageParser {
             return null;
         }
         if (!copyNeeded(flags, a.owner, state, a.metaData, userId)) {
-            updateApplicationInfo(a.info.applicationInfo, flags, state);
             return a.info;
         }
         // Make shallow copies so we can store the metadata safely
@@ -7089,7 +7088,6 @@ public class PackageParser {
             return null;
         }
         if (!copyNeeded(flags, s.owner, state, s.metaData, userId)) {
-            updateApplicationInfo(s.info.applicationInfo, flags, state);
             return s.info;
         }
         // Make shallow copies so we can store the metadata safely
@@ -7185,7 +7183,6 @@ public class PackageParser {
         if (!copyNeeded(flags, p.owner, state, p.metaData, userId)
                 && ((flags & PackageManager.GET_URI_PERMISSION_PATTERNS) != 0
                         || p.info.uriPermissionPatterns == null)) {
-            updateApplicationInfo(p.info.applicationInfo, flags, state);
             return p.info;
         }
         // Make shallow copies so we can store the metadata safely