Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
  • Matt Mower's avatar
    e07f0109
    Fix handling of USB config during MTP switching · e07f0109
    Matt Mower authored
    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
    e07f0109
    Fix handling of USB config during MTP switching
    Matt Mower authored
    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
Loading