diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-09-03 21:19:43 +0200 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2014-09-03 21:22:50 +0200 |
commit | 6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e (patch) | |
tree | 0e655bbdc41f5f10474ddc9ebe4a77b8ea35c550 /partitionmanager.cpp | |
parent | Improve error handling during MTP startup (diff) | |
download | android_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.tar android_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.tar.gz android_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.tar.bz2 android_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.tar.lz android_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.tar.xz android_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.tar.zst android_bootable_recovery-6d154c4fe25d1ae0b5dafaae5eff7c0102f3362e.zip |
Diffstat (limited to '')
-rw-r--r-- | partitionmanager.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp index 59451e3e7..a8b61c3fc 100644 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -2171,7 +2171,10 @@ bool TWPartitionManager::Enable_MTP(void) { TWFunc::write_file("/sys/class/android_usb/android0/idProduct", productstr); property_set("sys.usb.config", "mtp,adb"); std::vector<TWPartition*>::iterator iter; - twrpMtp *mtp = new twrpMtp(); + /* To enable MTP debug, use the twrp command line feature to + * twrp set tw_mtp_debug 1 + */ + twrpMtp *mtp = new twrpMtp(DataManager::GetIntValue("tw_mtp_debug")); for (iter = Partitions.begin(); iter != Partitions.end(); iter++) { if ((*iter)->Is_Storage && (*iter)->Is_Present && (*iter)->Mount(false)) { printf("twrp mtpid: %d\n", (*iter)->mtpid); |