

Android emulator file location mac android#
Now back at my local filesystem prompt, I was then able to copy my file to the Android emulator filesystem using the adb push command, like this:Īs that command infers, the file foo.jpg was located in my local Mac directory.

In the following sequence, I issued the first command from my Mac/Unix operating system shell, and then the subsequent commands were run inside the adb shell: I did that using the following series of commands. The solution to this problem was to re-mount the emulator’s filesystem as a read-write filesystem. $ adb push foo.jpg /data/data//filesįailed to copy 'foo.jpg' to 'foo.jpg': Read-only file system When I tried to copy a file using this command: However, I just ran into a problem where I couldn’t copy files to my Android emulator’s “data” directory, i.e., the /data/data filesystem. As an Android developer, you can normally use the adb push command to copy files from your computer’s hard drive to an Android device.
