I am developing under Android 1.6 (Android SDK 2.1). I create a avd by using avd manager in Eclipse. When I launch this avd, I found that the /sdcard directory's permisson is "d---------". So I can't push file to the sdcard.
Does anyone know how to solve this problem?
Once you started the Emulator from one shell, login to another shell & type
You should see
# prompt
displayed, this is your device(emulator) shell. Now , type following command at adb shell.This will now remount
/sdcard
withrw(read-write)
permission & now you can push your files into/sdcard
by using following command from your host shell.where filename.mp3 could be any file that you want to push into Android Emulator.
Hope this helps :)
It will definitely works
I had this problem on Android L developer preview, and, at least for this version, I solved it by creating an sdcard with a size that had square 2 size (e.g 128M, 256M etc)
mount -o remount, rw /sdcard
this is the correct way to remount your sdcard using your emulator.
Maybe it sounds stupid but it worked for me when I had the same problem: delete the created avd and create one again through AVD Manager with a sd card of, for example, 512MB.
Check that both have the correct permissions and if not, try to change them with chmod.
And if everything still fails, repeat the process but creating both avd and sd card manually via terminal:
Hope that helps!
Try this in a Terminal Emulator as root: