diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2014-12-17 18:40:21 +0100 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2014-12-18 21:18:15 +0100 |
commit | 5216bef553f680b450aa6d6c8a26d24a2d57a29e (patch) | |
tree | 49a6a0ffbe451e378aa17a3f45cf4be2cfa63246 /gui | |
parent | Update SuperSU to 2.40 (diff) | |
download | android_bootable_recovery-5216bef553f680b450aa6d6c8a26d24a2d57a29e.tar android_bootable_recovery-5216bef553f680b450aa6d6c8a26d24a2d57a29e.tar.gz android_bootable_recovery-5216bef553f680b450aa6d6c8a26d24a2d57a29e.tar.bz2 android_bootable_recovery-5216bef553f680b450aa6d6c8a26d24a2d57a29e.tar.lz android_bootable_recovery-5216bef553f680b450aa6d6c8a26d24a2d57a29e.tar.xz android_bootable_recovery-5216bef553f680b450aa6d6c8a26d24a2d57a29e.tar.zst android_bootable_recovery-5216bef553f680b450aa6d6c8a26d24a2d57a29e.zip |
Diffstat (limited to '')
-rw-r--r-- | gui/action.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/action.cpp b/gui/action.cpp index d72b33194..27fd7a5d7 100644 --- a/gui/action.cpp +++ b/gui/action.cpp @@ -1268,6 +1268,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */) int wipe_dalvik = 0; gui_print("Starting ADB sideload feature...\n"); + bool mtp_was_enabled = TWFunc::Toggle_MTP(false); DataManager::GetValue("tw_wipe_dalvik", wipe_dalvik); ret = apply_from_adb("/"); DataManager::SetValue("tw_has_cancel", 0); // Remove cancel button from gui now that the zip install is going to start @@ -1289,6 +1290,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */) set_usb_driver(false); maybe_restart_adbd(); } + TWFunc::Toggle_MTP(mtp_was_enabled); if (strcmp(file_prop, "error") != 0) { struct stat st; stat("/sideload/exit", &st); |