* commit '6d71977d142f42a4646f23c2fba79fed4fbfd7d7': Return useful path when not visible.
This commit is contained in:
commit
a95e66afba
1 changed files with 5 additions and 1 deletions
|
@ -117,7 +117,11 @@ status_t PublicVolume::doMount() {
|
|||
mFuseWrite = StringPrintf("/mnt/runtime_write/%s", stableName.c_str());
|
||||
|
||||
setInternalPath(mRawPath);
|
||||
setPath(StringPrintf("/storage/%s", stableName.c_str()));
|
||||
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) ||
|
||||
|
|
Loading…
Reference in a new issue