summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--PublicVolume.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/PublicVolume.cpp b/PublicVolume.cpp
index 1977f24..a389993 100644
--- a/PublicVolume.cpp
+++ b/PublicVolume.cpp
@@ -115,13 +115,18 @@ status_t PublicVolume::doMount() {
VolumeManager *vm = VolumeManager::Instance();
- //if (!mJustPhysicalDev && mFsType == "vfat") {
+
if (mFsType == "vfat") {
- sleep(2);
+#ifdef HAS_VFAT
+ sleep(5);
if (vm->isMountpointMounted(mRawPath.c_str())) {
LOG(DEBUG) << getId() << " vfat will handle by vold";
return 0;
}
+#else
+ LOG(DEBUG) << getId() << " vfat will handle by vold";
+ return 0;
+#endif
}
if (vm->isMountpointMounted(mRawPath.c_str())) {