Trouble having when pushing files to DDMS?

荒凉一梦 提交于 2019-12-10 10:36:25

问题


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?


回答1:


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?




回答2:


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



来源:https://stackoverflow.com/questions/7445523/trouble-having-when-pushing-files-to-ddms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!