Where is Android Emulator Internal Storage

前端 未结 5 1788
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-08 00:47

I have an error due to the contents of a file stored in internal storage on my Android Emulator. (I wrote it to file). Is there a way I can view the internal storage used by

5条回答
  •  既然无缘
    2021-01-08 01:17

    They are stored in an img file inside the avd directory. If you are using Linux you can mount the img file via:

    sudo mount -o loop ~/.android/avd//sdcard.img 
    

    Not sure if there is a way in Windows or Mac to view the contents of the img since they are either in ext3, ext4, or yaffs file system format (depending on what you are emulating) and windows doesn't easily support those file systems.

    Your best bet is to use adb to copy the file directly out of the emulator while it is running as shown in adb --help:

    adb pull  []  - copy file/dir from device
    

提交回复
热议问题