summaryrefslogtreecommitdiffstats
path: root/core/java/android/content
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2015-07-10 14:29:33 -0700
committerSvetoslav <svetoslavganov@google.com>2015-07-13 18:22:30 -0700
commit6ee871e59812fea4525c50231f677c4bd10c74b8 (patch)
tree6392027a89ad7aa8ba5bd2d0ff5398364433c2dd /core/java/android/content
parentc09544bb88ada53494d4a955d0450a22985b4799 (diff)
downloadframeworks_base-6ee871e59812fea4525c50231f677c4bd10c74b8.zip
frameworks_base-6ee871e59812fea4525c50231f677c4bd10c74b8.tar.gz
frameworks_base-6ee871e59812fea4525c50231f677c4bd10c74b8.tar.bz2
Teach storage appops.
For modern apps targeting M SDK and up the external storage state is deterined by granted permissions. For apps targeting older SDK the storage access is determined by app ops correspning to the storage permissions as the latter are always granted. When app ops change we do not remount as we kill the app process in both cases enabling and disabling an app op since legacy code is not prepared for dynamic behavior where an operation that failed may next succeed. Hence, we remount when we start the app. For modern apps we don't kill the app process on a permission grant, therefore we synchronously remount the app storage. bug:22104923 Change-Id: I601c19c764a74c2d15bea6630d0f5fdc52bf6a5a
Diffstat (limited to 'core/java/android/content')
-rw-r--r--core/java/android/content/pm/IPackageManager.aidl3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/java/android/content/pm/IPackageManager.aidl b/core/java/android/content/pm/IPackageManager.aidl
index 103ee29..ceb610a 100644
--- a/core/java/android/content/pm/IPackageManager.aidl
+++ b/core/java/android/content/pm/IPackageManager.aidl
@@ -502,9 +502,6 @@ interface IPackageManager {
void addOnPermissionsChangeListener(in IOnPermissionsChangeListener listener);
void removeOnPermissionsChangeListener(in IOnPermissionsChangeListener listener);
-
- int getMountExternalMode(int uid);
-
void grantDefaultPermissionsToEnabledCarrierApps(in String[] packageNames, int userId);
boolean isPermissionRevokedByPolicy(String permission, String packageName, int userId);