Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is Android Emulator Internal Storage

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 my app in windows?

I've searched through my whole project folder, sdk, workspace etc and cant find anything. I saw someone in another question say it was in the /data folder, but i dont know where to look for that either.

Thanks

like image 677
Eduardo Avatar asked Sep 10 '13 21:09

Eduardo


People also ask

Where are Android Emulator files stored?

All applications and files that you have deployed to the Android emulator are stored in a file named userdata-qemu. img located in the C:\Users\<username>\. android\avd\<avd_name>. avd folder.

How do I access Android Emulator files?

You can access the Android filesystem via Android Device Monitor. In Android Studio go to Tools >> Android >> Android Device Monitor. Note that you can run your app in the simulator while using the Android Device Monitor. But you cannot debug you app while using the Android Device Monitor.

How do I change Android Emulator storage?

Open the AVD Manager. Click Edit Icon to edit the AVD. Click Show Advanced settings. Change the Internal Storage, Ram, SD Card size as necessary.


3 Answers

If you want to view the folder/file structure of the running emulator, you can do that with the Android Device Monitor which is included with the SDK.

Specifically, it has a File Explorer, which allows you to browse the folder structure on the device. It also has buttons which give you the adb push/pull functionality but from a GUI if this is easier for you to use.

like image 88
Karl Avatar answered Oct 18 '22 12:10

Karl


In Android Studio on Mac you can go to View -> Tool Windows -> Device File Explorer. Here you can use a finder-like structure.

like image 27
Jochem Janssens Avatar answered Oct 18 '22 13:10

Jochem Janssens


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/<youremulator>/sdcard.img <mountpoint>

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 <remote> [<local>]  - copy file/dir from device
like image 25
Jeff Avatar answered Oct 18 '22 13:10

Jeff