am 8474ee32
: Return useful path when not visible.
* commit '8474ee323131fdadcc17f09eab25003a7ae934e0': Return useful path when not visible.
This commit is contained in:
commit
157ba4356d
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