Package 

Class UsbMassStorageDevice

  • All Implemented Interfaces:

    
    public final class UsbMassStorageDevice
    
                        

    Class representing a connected USB mass storage device. You can enumerate through all connected mass storage devices via .getMassStorageDevices. This method only returns supported devices or if no device is connected an empty array.

    After choosing a device you have to get the permission for the underlying android.hardware.usb.UsbDevice. The underlying android.hardware.usb.UsbDevice can be accessed via .getUsbDevice.

    After that you need to call .setupDevice. This will initialize the mass storage device and read the partitions ( com.github.mjdev.libaums.partition.Partition).

    The supported partitions can then be accessed via .getPartitions and you can begin to read directories and files.