summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2014-11-06 09:24:36 +0100
committerMatt Mower <mowerm@gmail.com>2014-11-06 09:26:58 +0100
commitd530105c0a899e265ac8500e9fd9d3173e22c427 (patch)
tree6a3b3a2543157c709dd1ecc9282c5f1800798bbc /partitionmanager.cpp
parentFix some module tags (diff)
downloadandroid_bootable_recovery-d530105c0a899e265ac8500e9fd9d3173e22c427.tar
android_bootable_recovery-d530105c0a899e265ac8500e9fd9d3173e22c427.tar.gz
android_bootable_recovery-d530105c0a899e265ac8500e9fd9d3173e22c427.tar.bz2
android_bootable_recovery-d530105c0a899e265ac8500e9fd9d3173e22c427.tar.lz
android_bootable_recovery-d530105c0a899e265ac8500e9fd9d3173e22c427.tar.xz
android_bootable_recovery-d530105c0a899e265ac8500e9fd9d3173e22c427.tar.zst
android_bootable_recovery-d530105c0a899e265ac8500e9fd9d3173e22c427.zip
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 96266a3e8..8116e858c 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1516,8 +1516,6 @@ int TWPartitionManager::usb_storage_enable(void) {
char lun_file[255];
bool has_multiple_lun = false;
- property_set("sys.storage.ums_enabled", "1");
- sleep(1);
DataManager::GetValue(TW_HAS_DATA_MEDIA, has_data_media);
string Lun_File_str = CUSTOM_LUN_FILE;
size_t found = Lun_File_str.find("%");
@@ -1563,12 +1561,12 @@ int TWPartitionManager::usb_storage_enable(void) {
goto error_handle;
}
}
+ property_set("sys.storage.ums_enabled", "1");
return true;
error_handle:
if (mtp_was_enabled)
if (!Enable_MTP())
Disable_MTP();
- property_set("sys.storage.ums_enabled", "0");
return false;
}