I know this has been asked a lot but never answered. I definetly need to write files to root there is no other solution. I currently use this code but it doesn\'t show anyth
Running 'su' at the beginning may not be enough to have write permissions to the /system folder. Root Explorer and other file management apps all have to remount /system as r/w and mount back as read-only. The answer to this question shows commands to remount the /system path. The answer is using adb, but running it on the device should work just as good.
On a side note, it may just be easier to execute system commands to move the files rather than move them yourself. On my LG Optimus T running Cyanogenmod 7.x, in /system/xbin there's cp
and mv
that may copy/move a file without having to remount /system (if so, probably only through su mv
or su cp
). I don't know enough about this part of android to know for sure if you (or whoever installs your app) will also have those files, but its worth looking into. They may require busybox, I haven't looked into it.