Android USB Storage原理(1)

当连上USB线后,从status bar上面,可以选择打开或者关闭USB Storage。代码在framework/base/packages/systemui/src/com/android/systemui/usb

StorageManager.enableUsbMassStorage-->MountService.setUsbMassStorageEnabled



/sys/devices/virtual/usb_composite/usb_mass_storage/enable: who set it?

dumpsys which enable? where to enable it?


for adb: it's enabled by /dev/android_adb_enable write


你可能感兴趣的:(Android)