Android: How to create an AVD with an external sd card


I'd like to create an Android Virtual Device against which I can test recent issues with writing to external SD cards. I would expect the external sd card to be found at location like "/storage/extSdCard/DCIM/" on the AVD's file system. Any suggestions on how I can accomplish this?

Best Solution

To add removable storage to your AVD use:

 ~/Android/android-sdk/tools/mksdcard [memory size] [output file] 

to create SD card image.

Then pass it in Advanced AVD Settings dialog: SD card -> External file


You can learn more about the mksdcard tool here: