summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
authorHandyMenny <handymenny@outlook.com>2014-10-26 22:15:59 +0100
committerDees Troy <dees_troy@teamw.in>2015-10-15 16:04:16 +0200
commit37d42994cd80c0f445c92765ef49b5dc48fca3bd (patch)
tree987b80448cd9c6da66433bfa10a17ec204abece4 /partitionmanager.cpp
parentFix minor interface bug: No-SU prompt after no-OS prompt (diff)
downloadandroid_bootable_recovery-37d42994cd80c0f445c92765ef49b5dc48fca3bd.tar
android_bootable_recovery-37d42994cd80c0f445c92765ef49b5dc48fca3bd.tar.gz
android_bootable_recovery-37d42994cd80c0f445c92765ef49b5dc48fca3bd.tar.bz2
android_bootable_recovery-37d42994cd80c0f445c92765ef49b5dc48fca3bd.tar.lz
android_bootable_recovery-37d42994cd80c0f445c92765ef49b5dc48fca3bd.tar.xz
android_bootable_recovery-37d42994cd80c0f445c92765ef49b5dc48fca3bd.tar.zst
android_bootable_recovery-37d42994cd80c0f445c92765ef49b5dc48fca3bd.zip
Diffstat (limited to '')
-rw-r--r--partitionmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index f25443915..ad17fe4a6 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -1613,6 +1613,7 @@ int TWPartitionManager::usb_storage_enable(void) {
}
}
property_set("sys.storage.ums_enabled", "1");
+ property_set("sys.usb.config", "mass_storage,adb");
return true;
error_handle:
if (mtp_was_enabled)
@@ -1637,6 +1638,7 @@ int TWPartitionManager::usb_storage_disable(void) {
Update_System_Details();
UnMount_Main_Partitions();
property_set("sys.storage.ums_enabled", "0");
+ property_set("sys.usb.config", "adb");
if (mtp_was_enabled)
if (!Enable_MTP())
Disable_MTP();