I feel a bit blind developing on an emulator for Android and not being able to see the file system on the AVD (.img).
Is there a way to mount it in Windows or Linux, so that I could at least see the file listing and maybe contents?
Bonus if it's mounted with write permissions as well.
Thank you.
Note: The default storage location for AVDs is in ~/. android/avd on OS X and Linux, C:\Documents and Settings\<user>\. android\ on Windows XP, and C:\Users\<user>\.
You can launch the AVD Manager in one of the following ways: In Eclipse: select Window > Android Virtual Device Manager, or click the AVD Manager icon in the toolbar. In Android Studio: select Tools > Android > AVD Manager, or click the AVD Manager icon in the toolbar.
You can just mount the device in Linux:
sudo mount -o loop ~/.android/avd/<myvirt>/sdcard.img <destdir>
How about "adb shell"?
This will give you a root shell (on the emulator)..
For MacOS X users:
$ hdiutil attach ~/.android/avd/Samsung_Nexus_S.avd/sdcard.img
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With