Skip to content

Instantly share code, notes, and snippets.

@dimzon
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimzon/faf42f9135af80775426 to your computer and use it in GitHub Desktop.
Save dimzon/faf42f9135af80775426 to your computer and use it in GitHub Desktop.
Enable USB in Android 4.2
Hey guys, so I found this cool fix to change the function of the USB to mass storage instead of MTP.
Open up terminal emulator and enter in:
su
setprop persist.sys.usb.config mass_storage,adb
reboot
If you want to go back to MTP, open terminal emulator and enter:
su
setprop persist.sys.usb.config mtp,adb
reboot
====================================================================================================
Does it change between (USB) | (MTP/PTP) modes?
Could you compare setting to find which on was changed?
Looks like for ICS it should be:
adb shell setprop sys.usb.config mtp,adb
adb shell setprop sys.usb.config mass_storage,adb
or with persist (after reboot)
adb shell setprop persist.sys.usb.config mtp,adb
adb shell setprop persist.sys.usb.config mass_storage,adb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment