summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Marshall <tdm@cyngn.com>2015-11-25 13:49:40 -0800
committerTom Marshall <tdm@cyngn.com>2015-11-25 13:49:40 -0800
commit95c29db4495550c962a449f1ef7d6ad75998635c (patch)
tree920452f8cbe26bf853b77be89a53067552e5dd3b
parent53b98cfc1f840eb0fefc0cd59d3b6a1fe1722ff4 (diff)
downloadandroid_system_vold-95c29db4495550c962a449f1ef7d6ad75998635c.tar.gz
android_system_vold-95c29db4495550c962a449f1ef7d6ad75998635c.tar.bz2
android_system_vold-95c29db4495550c962a449f1ef7d6ad75998635c.zip
Don't try to unmount ASEC and FUSE paths in recovery
Change-Id: Ia693dffeb2865e9849b1c237b619777f61beca2f
-rw-r--r--PublicVolume.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/PublicVolume.cpp b/PublicVolume.cpp
index 065dd0b..924cdd2 100644
--- a/PublicVolume.cpp
+++ b/PublicVolume.cpp
@@ -251,11 +251,14 @@ status_t PublicVolume::doUnmount(bool detach /* = false */) {
mFusePid = 0;
}
+#ifndef MINIVOLD
ForceUnmount(kAsecPath);
ForceUnmount(mFuseDefault);
ForceUnmount(mFuseRead);
ForceUnmount(mFuseWrite);
+#endif
+
ForceUnmount(mRawPath, detach);
rmdir(mFuseDefault.c_str());