summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2015-10-29 19:00:44 -0700
committerThe Android Automerger <android-build@google.com>2015-11-02 13:21:06 -0800
commit9c648bdc359af7600675f85367e22f3d47998694 (patch)
treef286623279eca4e69d85c2677476541ee8549650 /core
parent52e3639cb4bf84d637bf3fae88a4197e71829d51 (diff)
downloadframeworks_base-9c648bdc359af7600675f85367e22f3d47998694.zip
frameworks_base-9c648bdc359af7600675f85367e22f3d47998694.tar.gz
frameworks_base-9c648bdc359af7600675f85367e22f3d47998694.tar.bz2
Handle "uninstalled" apps when pruning app-ops.
During system boot, we prune app-ops belonging to apps that have been uninstalled. However, apps installed on adopted storage devices haven't been scanned at this point, so they appear to be uninstalled. To avoid pruning app-ops for these apps, we need a getPackageUid() variant that also considers "uninstalled" apps for which we still have PackageSetting values. Bug: 25206071 Change-Id: I1820f674d45c5ddc1c5f10ed7d859e7025005e28
Diffstat (limited to 'core')
-rw-r--r--core/java/android/content/pm/IPackageManager.aidl2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/content/pm/IPackageManager.aidl b/core/java/android/content/pm/IPackageManager.aidl
index a5e9faf..fec2c44 100644
--- a/core/java/android/content/pm/IPackageManager.aidl
+++ b/core/java/android/content/pm/IPackageManager.aidl
@@ -63,7 +63,9 @@ interface IPackageManager {
boolean isPackageAvailable(String packageName, int userId);
PackageInfo getPackageInfo(String packageName, int flags, int userId);
int getPackageUid(String packageName, int userId);
+ int getPackageUidEtc(String packageName, int flags, int userId);
int[] getPackageGids(String packageName, int userId);
+ int[] getPackageGidsEtc(String packageName, int flags, int userId);
String[] currentToCanonicalPackageNames(in String[] names);
String[] canonicalToCurrentPackageNames(in String[] names);