summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2014-05-30 23:47:00 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-30 23:47:00 +0000
commit05dc18d69ad64254f2bcdd9c1e208ab54ee664fe (patch)
tree39fdc33974a041a24161e092757318f1ca447dad /services
parentae706066e1a9aa25c7d57619c0bf8ba24815d3d8 (diff)
parent2ee3c1e189819cc6efb4d7de24f1438bdb824087 (diff)
downloadframeworks_base-05dc18d69ad64254f2bcdd9c1e208ab54ee664fe.zip
frameworks_base-05dc18d69ad64254f2bcdd9c1e208ab54ee664fe.tar.gz
frameworks_base-05dc18d69ad64254f2bcdd9c1e208ab54ee664fe.tar.bz2
Merge "Per-app media directories on external storage." into lmp-preview-dev
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/MountService.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/MountService.java b/services/core/java/com/android/server/MountService.java
index d5f045e..d31fb60 100644
--- a/services/core/java/com/android/server/MountService.java
+++ b/services/core/java/com/android/server/MountService.java
@@ -2372,6 +2372,18 @@ class MountService extends IMountService.Stub
}
}
+ voldPath = maybeTranslatePathForVold(appPath,
+ userEnv.buildExternalStorageAppMediaDirs(callingPkg),
+ userEnv.buildExternalStorageAppMediaDirsForVold(callingPkg));
+ if (voldPath != null) {
+ try {
+ mConnector.execute("volume", "mkdirs", voldPath);
+ return 0;
+ } catch (NativeDaemonConnectorException e) {
+ return e.getCode();
+ }
+ }
+
throw new SecurityException("Invalid mkdirs path: " + appPath);
}