Is there a way to mount Android .img to access the AVD (Android Virtual Device) contents?

Artem Russakovskii picture Artem Russakovskii · Dec 2, 2009 · Viewed 21.5k times · Source

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.

Answer

Ryan Olson picture Ryan Olson · Apr 12, 2011

You can just mount the device in Linux:

sudo mount -o loop ~/.android/avd/<myvirt>/sdcard.img <destdir>