2

I'm trying to push one mp3 file to (Emulator) the location /system/media/audio/ui using command adb push But, i'm having

E:\Android\android-sdk\platform-tools>adb push song.mp3 /system/media/audio/ui
failed to copy 'song.mp3' to '/system/media/audio/ui/song.mp3': Read-only file system

this error. How can i change the Permission or how to push the files to this location. Any idea?

Praveenkumar
  • 24,084
  • 23
  • 95
  • 173

2 Answers2

2

Unless you have a really good reason not to, you should stay in the /sdcard/ folder. Except for /sdcard/, most of the file system is read-only for a normal user.

It is possible, but not recommended, to "root" the phone. After which you would have full access to the whole system. Attempting this on a real phone, could break the phone, or invalidate your warranty.

If you wish to get root-privileges on the emulator, you can look at the accepted answer to this question: how to root/getroot access on android emulator?

Community
  • 1
  • 1
Markus Jarderot
  • 86,735
  • 21
  • 136
  • 138
0

That means your emulator does not support the sdcard. So create the emulator with sdcard option. see the bello image...

enter image description here

Balaji.K
  • 8,745
  • 5
  • 30
  • 39