summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-12-10 18:46:24 +0100
committerDees Troy <dees_troy@teamw.in>2014-12-10 18:55:35 +0100
commit0bc17c6fd32096f4f57ba48a81ac5cdda73c3eda (patch)
tree95a8f8aa32b34d43d9324b54f4fa09441fafa4e5
parentUse one mizip for all (diff)
downloadandroid_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
-rw-r--r--partitionmanager.cpp1
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