alanorth/android_device_huawei_u8150 — comment on commit 7bd3fdb706312c2a45a396d7c2d1863d183c046b
File:  line 0
By psyke83:

I'm not entirely sure about this, but I think that it's not supposed to specify the exact lun node. This is what's on my phone:

'ls /sys/devices/platform/msm_hsusb/gadget
chg_current enableadb lun0 power switchusb usb_speed
chg_type fixusb lun1 sdstatus uevent usb_state'

These are my lines in BoardConfig.mk:
'# USB mass storage
BOARD_CUSTOM_USB_CONTROLLER := ../../device/huawei/u8160/UsbController.cpp
BOARD_USE_USB_MASS_STORAGE_SWITCH := true
TARGET_USE_CUSTOM_LUN_FILE_PATH := "/sys/devices/platform/msm_hsusb/gadget/lun"
BOARD_UMS_LUNFILE := "/sys/devices/platform/msm_hsusb/gadget/lun0/file"'

All I can tell you is that on the U8160, UMS mode works without issue.