summaryrefslogtreecommitdiffstats
path: root/VolumeManager.cpp
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2020-02-14 11:44:13 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-02-14 11:44:13 +0000
commit8b3181092275f5850d5b74ff4ef8af74662a244b (patch)
tree4d50cfb78d8f741f7fe0d3f3a8adb7c75695503d /VolumeManager.cpp
parent73a7a85c853368c33d0313bead59c0159adedbd1 (diff)
parentb5a31c99856875bcc48dc0958d6b83eaf2648a5a (diff)
downloadplatform_system_vold-8b3181092275f5850d5b74ff4ef8af74662a244b.tar.gz
platform_system_vold-8b3181092275f5850d5b74ff4ef8af74662a244b.tar.bz2
platform_system_vold-8b3181092275f5850d5b74ff4ef8af74662a244b.zip
Merge "Stop using a regex for setupAppDir."
Diffstat (limited to 'VolumeManager.cpp')
-rw-r--r--VolumeManager.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index bb624413..6f158461 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -857,18 +857,10 @@ int VolumeManager::setupAppDir(const std::string& path, int32_t appUid) {
const std::string lowerPath =
volume->getInternalPath() + path.substr(volume->getPath().length());
- // Do some sanity checking on the app dir (relative from root)
const std::string volumeRoot = volume->getRootPath(); // eg /data/media/0
- // Make sure the Android/ directories exist and are setup correctly
- int ret = PrepareAndroidDirs(volumeRoot);
- if (ret != 0) {
- LOG(ERROR) << "Failed to prepare Android/ directories.";
- return ret;
- }
-
- // Finally, create the app paths we need
- return PrepareAppDirFromRoot(lowerPath, appUid);
+ // Create the app paths we need from the root
+ return PrepareAppDirFromRoot(lowerPath, volumeRoot, appUid);
}
int VolumeManager::createObb(const std::string& sourcePath, const std::string& sourceKey,