commit | e07f010963b247e21da3f1c0cfe023be2e1219fd | [log] [tgz] |
---|---|---|
author | Matt Mower <mowerm@gmail.com> | Thu Feb 23 17:40:00 2017 -0600 |
committer | Matt Mower <mowerm@gmail.com> | Thu Feb 23 19:21:33 2017 -0600 |
tree | fdfdbe679084cb9c2c77ade8ffea7672cca6f275 | |
parent | 1b3fa22d7119993d05738ece094b53f176808a74 [diff] |
Fix handling of USB config during MTP switching The property set of sys.usb.config was not part of the original 'Only change USB mode to mtp when ready for MTP' commit. Further, it adds an additional USB off/on toggle to the MTP startup routine, potentially confusing the host computer. The default init.recovery.usb.rc already sets the usb functions to 'adb' during 'on fs'. It is possible that devices could run into issues with MTP startup due to sys.usb.config not yet being set. This is actually due to a poor design decision in Enable_MTP(), where sys.usb.config would not be configured for mtp if sys.usb.config had never been set. It is not necessary to check for a previous value, just set it. Fix the USB PID for adb-only mode in Disable_MTP(). Change-Id: I21b5e64c9bdcd3104372a8b4eb8ea50cf4561892
Team Win Recovery Project (TWRP)
You can find a compiling guide here.