{"repo":"magnusja/libaums","free":true,"listed":false,"github":"https://github.com/magnusja/libaums","clone":"git clone https://github.com/magnusja/libaums.git","description":"Open source library to access USB Mass Storage devices on Android without rooting your device","language":"Kotlin","stars":1360,"topics":["mass-storage-device","android","java","usb","usb-otg","fat32","files","usb-drive","usb-flash","mass-storage"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"libaums ======= A library to access USB mass storage devices (pen drives, external HDDs, card readers) using the Android USB Host API. Currently it supports the SCSI command set and the FAT32 file system. How to use Install The library can be included into your project like this: If you need the HTTP or the storage provider module: Basics Query available mass storage devices Java Kotlin Permissions Your app needs to get permission from the user at run time to be able to communicate the device. From a UsbMassStorageDevice you can get the underlying android.usb.UsbDevice to do so. Java Kotlin For more information regarding permissions please check out the Android documentation: https://developer.android.com/guide/topics/connectivity/usb/host.html#permission-d Working with files and folders Java Kotlin Using buffered streams for more efficency Cleaning up Troubleshooting If you get the following error fairly often (mostly under Android 9.0 Pie): or something similar, you might want to try the libusb module. This uses, instead of the Android USB host API, the libusb library for low level communication with the USB mass storage device. see discussions: https://github.com/magnusja/libaums/issues/209 https://github.com/magnusja/libaums/issues/237 https://github.com/magnusja/libaums/pull/242 Note , that libusb is licensed under LGPL, which is different from the license this project is licensed under! This might come with some drawbacks or extra work for closed source applications, se","default_branch":null,"files":null,"tree":[],"storefront":"/r/magnusja","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/magnusja/libaums/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}