Android:transfer error: Read-only file system

Jimmy picture Jimmy · May 25, 2013 · Viewed 19.7k times · Source

I want to push a *.mp3 file in to my emulator, but it gives me these 2 errors:

 transfer error: Read-only file system
 Failed to push selection: Read-only file system

To resolve the problem, i have done these works, but still not working:

1-Using CMD to do this: c:\android-sdk\platform-tools\>abd remount

2-Add these 2 lines to the AndroidManifest.xml

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

3-Set the SDcard in emulator configuration as 1024 Mb enter image description here

The thing that makes me wonderful is that the sdcard folder in file explorer has all the necessary permissions enter image description here

Answer

atisman picture atisman · Sep 2, 2013

Here is a solution I found in other site, which is the only way that worked in my case:


In a terminal (I work on Mac OS X) I wnt to sdk/platform-tools directory (to get access to the adb shell) then I typed the following commands:

./adb shell
su
mount -o rw,remount rootfs / 
chmod 777 /mnt/sdcard 

and then typed exit to exit su, and exit again to exit the adb shell.