am 157ba435: am 8474ee32: Return useful path when not visible.

* commit '157ba4356da6d771194f0276ed1fdd69a14b85a5':
  Return useful path when not visible.
This commit is contained in:
Jeff Sharkey 2015-07-31 02:12:10 +00:00 committed by Android Git Automerger
commit 6d71977d14

View file

@ -117,7 +117,11 @@ status_t PublicVolume::doMount() {
mFuseWrite = StringPrintf("/mnt/runtime_write/%s", stableName.c_str());
setInternalPath(mRawPath);
if (getMountFlags() & MountFlags::kVisible) {
setPath(StringPrintf("/storage/%s", stableName.c_str()));
} else {
setPath(mRawPath);
}
if (fs_prepare_dir(mRawPath.c_str(), 0700, AID_ROOT, AID_ROOT) ||
fs_prepare_dir(mFuseDefault.c_str(), 0700, AID_ROOT, AID_ROOT) ||