Android: How to create AVD with external SD card?

I would like to create an Android Virtual Device against which I can test recent problems with writing to external SD cards. I expect the external SD card to be found in a location like "/ storage / extSdCard / DCIM /" in the AVD filesystem. Any suggestions on how I can accomplish this?

+3


source to share


2 answers


To add removable storage to your AVD usage:

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

      

to create an SD card image.



Then transfer it in the Advanced AVD Settings dialog: SD Card -> External File

DONE :)

+3


source


You can open Android Device Monitor, which is the Android symbol next to the SDK manager. Once opened, you can see the files using the file explorer, and here you can create the necessary folders / path to use the external SD card.

There is a chance that when you try to create a folder, it will say that it is read-only, if this happens, open a command prompt and use the adb command to enter the following commands:



mount -o rw,remount rootfs /
chmod 777 /mnt/sdcard
exit

      

These commands are taken from this link

+1


source







All Articles