Failed to push selection: read-only file system: when going to SdCard

I created an SDCard from a music player app. But when I add songs to the app, it shows an error that

     [2013-01-23 16:09:18 - ddms] transfer error: Read-only file system
     [2013-01-23 16:09:18] Failed to push selection: Read-only file system

      

I installed uses-permission

in myManifest

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

      

What could be wrong. Please help me to solve this problem.

+3


source to share


2 answers


Go to the sdk / platform-tools directory (to access the adb shell), I typed the following commands:

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

      



Then it works great for me.

+6


source


Add these permissions to your android manifest file to access Sd card.



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

      

0


source







All Articles