Nils
Nils

Reputation: 1715

Implement filesystem access on USB storage devices under Android

I'd like to access some files on a SDcard using a modern Android phone (e.g. Nexus 5).

Since the SDcard slot is missing on modern phones usually, I found a solution in using a USB SDcard adapter. Unfortunately Android isn't mounting the connected device automatically, but an app called "Nexus Media Importer" as well as an usb plugin for the Total commander app is able to mount it and allow access to the files.

Does anyone know how they did it? Are there some open-source libraries available maybe?

Upvotes: 1

Views: 1019

Answers (2)

Magnus
Magnus

Reputation: 390

I wrote such a framework as my bachelors thesis, you can find it here: https://github.com/mjdev/libaums

support_ms already mentioned it, thanks.

If you have further questions, do not hesitate to ask!

Upvotes: 0

Massimo Milazzo
Massimo Milazzo

Reputation: 3522

I think you should have root permissions for executing this kind of operation. However, in order to see which partitions are mounted or available on your device look inside /etc/vold.fstab.

To read /etc/vold.fstab you do not need root permissions.

Upvotes: 1

Related Questions