diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-12-10 18:46:24 +0100 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2014-12-10 18:55:35 +0100 |
commit | 0bc17c6fd32096f4f57ba48a81ac5cdda73c3eda (patch) | |
tree | 95a8f8aa32b34d43d9324b54f4fa09441fafa4e5 /partitionmanager.cpp | |
parent | Use one mizip for all (diff) | |
download | android_bootable_recovery-0bc17c6fd32096f4f57ba48a81ac5cdda73c3eda.tar android_bootable_recovery-0bc17c6fd32096f4f57ba48a81ac5cdda73c3eda.tar.gz android_bootable_recovery-0bc17c6fd32096f4f57ba48a81ac5cdda73c3eda.tar.bz2 android_bootable_recovery-0bc17c6fd32096f4f57ba48a81ac5cdda73c3eda.tar.lz android_bootable_recovery-0bc17c6fd32096f4f57ba48a81ac5cdda73c3eda.tar.xz android_bootable_recovery-0bc17c6fd32096f4f57ba48a81ac5cdda73c3eda.tar.zst android_bootable_recovery-0bc17c6fd32096f4f57ba48a81ac5cdda73c3eda.zip |
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r-- | partitionmanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp index de4549342..975d5576e 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -1904,6 +1904,7 @@ bool TWPartitionManager::Enable_MTP(void) { TWFunc::write_file("/sys/class/android_usb/android0/idVendor", vendorstr); TWFunc::write_file("/sys/class/android_usb/android0/idProduct", productstr); property_set("sys.usb.config", "mtp,adb"); + usleep(2000); // Short sleep to prevent an occasional kernel panic on some devices std::vector<TWPartition*>::iterator iter; /* To enable MTP debug, use the twrp command line feature to * twrp set tw_mtp_debug 1 |