what:
hacker boy tries to connect nexus 6p to op-1
why:
chill beats, and libaums doesn't support FAT16
how:
matthias treydte's fat32-lib
will it work:
let's see
license:
MIT (edit:...might end up GPL if test 3 works out)
ways to go:
- use getExternalFilesDir for the disk, get root of that, then pass the File to fat32-lib
- use UsbManager, use openAccessory, convert ParcelFileDescriptor to File somehow...?
- use https://github.com/alt236/USB-Device-Info---Android to get usb device path -> File
- use UsbDevice and go through the UsbInterfaces and UsbEndpoints for clues
- use getExternalFilesDir, get root of given path, request File for root path
ways to go, mark two:
- find a path, make a file, pass to fat32-lib
- find the device, go from there
passes:
- test 1, find a path: getExternalFilesDir
- test 2, find the device: UsbManager
- test 3, libaums with jnode fs implementation set
hail mary's:
- usbdevice -> usbdeviceconnection -> getfiledescriptor -> fileinputstream -> getfilechannel, modify FileDisk to use raw filechannels instead of only from File
final update got FAT16 reads working with test 3, using libaums + jnode-fs. nice. no need for this then.