• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How to access files in AVD SD card?

zollen

Newbie
I have been generating a couple of custom gestures with the gesture builder (in Android Virtual Device Android 4.0) but I have no idea how to retrieve the files and save them into my local HD. Any information would be appreciated.
 
Hi!

So this is what I've found.. On the android forums they link to this for AVD support:

Using the Android Emulator | Android Developers

Within this page you can follow a link to this article (this will answer your question, the above link is for your reference):

Using the Android Emulator | Android Developers

In this article (and I can't test since I'm at work right now..) it seems you can state any directory (relative to your working directory) as a designated SD card repository. This is the command they suggest:

emulator -sdcard <filepath>

Let us know what you find, hopefully this helps.
 
Hi!

So this is what I've found.. On the android forums they link to this for AVD support:

Using the Android Emulator | Android Developers

Within this page you can follow a link to this article (this will answer your question, the above link is for your reference):

Using the Android Emulator | Android Developers

In this article (and I can't test since I'm at work right now..) it seems you can state any directory (relative to your working directory) as a designated SD card repository. This is the command they suggest:

emulator -sdcard <filepath>

Let us know what you find, hopefully this helps.

Thanks for the reply. If I understood the article correctly, I believe the -sdcard option allows you to define the path where the sd repository is located (i.e sdcard.zip).

I am looking for a way (if possible) to extract files stored in the sd repository (i.e.sdcard.zip) and copy the contents to my local HD.
 
The sdcard file created by avd won't be an archive file like a .zip file or such. It will be a "disk in a file". The file will contain the actual file-system sectors that would otherwise be on an actual SD card.

If you're using Linux, you can mount the SD card of an avd called myavd to /mnt using the loop device like so:
Code:
sudo mount -o loop -t vfat ~/.android/avd/myavd.avd/sdcard.img /mnt

If you're using Windows, well.... you're using Windows.
 
The sdcard file created by avd won't be an archive file like a .zip file or such. It will be a "disk in a file". The file will contain the actual file-system sectors that would otherwise be on an actual SD card.

If you're using Linux, you can mount the SD card of an avd called myavd to /mnt using the loop device like so:
Code:
sudo mount -o loop -t vfat ~/.android/avd/myavd.avd/sdcard.img /mnt
If you're using Windows, well.... you're using Windows.

Am I correct that after the mount was successful, I should be able to access any files that are stored in the virtual SD as if they are files in a regular file system?
 
Or use this command
adb pull path_to-file_on_sdcard path_to_save_on_your_pc

to put files there
adb push path_to-file_on_pc path_to_save_on_sdcard

navigate to the sdk tools directory first if adb is not in your PATH variable.
 
Back
Top Bottom