Revert "Revert "Add option for switching between UMS and MTP/PTP mode. (2/2)""

This reverts commit 59566b5034b51ea3ab8d2b4cc2761fd973436405.