Search code examples
androidvirtualdiskmountandroid-virtual-device

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


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.


Solution

  • You can just mount the device in Linux:

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