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?
Make sure that you had given a value which is greater than zero for SD Card size in the Create AVD Window for that particular emulator.
I tried @user2002993 great help but it one place it need to be a little edit so I edited and here what worked for me on Android Studio, emulator android 5.
Go to your adb folder right click on blank area and select "open command window here" or if you installed adb by adb-installer open
cmd
and type these commands:It should show your emulator number and detail. Then followed command here:
Now it should show you prompt #
Yeah double exit needed, now your prompt of adb shell is gone. Put a file in to your adb folder and give this command and see if it got fixed.
or
Now in cmd it shoudl show you transfer time instead of creepy read-only thing
Android studio version 0.8.9 and above has a bug creating AVDs.
See Issue 78434.
Workaround
hw.sdCard=no
tohw.sdCard=yes
this should work for everyone in new builds
Windows uses backward slashes, linux uses forward slashes.
With me in the end helped In the emulator to run applications manager and setting permissions for storage.
I found this works
Source: http://www.coderanch.com/t/611842/Android/Mobile/Android-emulator-sdcard-writable