Using Android phone as USB Host to mount external drives to phone and accessing the memory of the external drive through phone

Shail Adi picture Shail Adi · Oct 26, 2012 · Viewed 22.8k times · Source

I have been checking since some time to mount external drives to android phone i.e., if I plug external drive(hard/flash/camera) to android device, the android phone should be able to access the storage file system.

There are apps in the market which controls external devices through phone.

I can use the USB Host mode { http://developer.android.com/guide/topics/connectivity/usb/index.html } to communicate with the usb device. But USB Host and Accessory modes are directly supported in Android 3.1 (API level 12) or newer platforms.

While an app named DSLR Controller { https://play.google.com/store/apps/details?id=eu.chainfire.dslrcontroller&hl=en } , requires Android 2.1 or above. Since the application is based on accessing the camera through android phone. If the app displays the correct info, then the task of accessing the storage of camera (or any other drive) seems to be possible.

But I want to use the application in lower version as well. Any kind of help will be appreciated.

Please comment,if need any more description of the problem.

Thanks.

Answer

SAURABH_12 picture SAURABH_12 · Oct 29, 2012

You can create an application based on FileManager open source project on Github. You can specify there to identify your device. You can change these code according to your need. Here is the link Adroid-File-Manager