Skip to content

Instantly share code, notes, and snippets.

@iamahuman
Created May 15, 2017 17:31
Show Gist options
  • Save iamahuman/246ee03f58a612e9a2da9d0dcfb5ed1d to your computer and use it in GitHub Desktop.
Save iamahuman/246ee03f58a612e9a2da9d0dcfb5ed1d to your computer and use it in GitHub Desktop.
Exynos USB mass storage (28 Oct 2015, may be out of date)
To Mass Storage:
setprop persist.sys.usb.config mass_storage,adb
echo '{path to shared partition; default=/dev/block/vold/179:17}' > {LUN_FILE}
To MTP:
echo '' > {LUN_FILE}
setprop persist.sys.usb.config mtp,adb
LUN_FILE: one of (preceeding preferred)
"/sys/devices/platform/s3c-usbgadget/gadget/lun0/file", "/sys/devices/virtual/android_usb/android0/f_mass_storage/lun_ex/file", "/sys/devices/virtual/android_usb/android0/f_mass_storage/lun/file", "/sys/devices/virtual/android_usb/android0/f_mass_storage/lun0/file", "/sys/devices/platform/msm_hsusb/gadget/lun0/file", "/sys/devices/msm_dwc3/f9200000.dwc3/gadget/lun0/file", "/sys/devices/platform/exynos-dwc3.0/exynos-ss-udc.0/gadget/lun0/file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment