Home Ask Login Register

Developers Planet

Your answer is one click away!

IdkHowToCodeAtAll February 2016

Move downloaded file into system root directory in Android

I'm currently using RootTools to try and move and file that's downloading into the Downloads Folder into the System Directory

Command command = new Command(0, "cp -f " + Environment.DIRECTORY_DOWNLOADS +"/old.html" + " /system/new.html");
RootTools.getShell(true).add(command);

But for whatever reason, this doesn't actually work .

Any ideas?

Answers


IdkHowToCodeAtAll February 2016

The reason it wasn't working was because /system is mounted as read-only. I had to remount it with this

mount -o remount,rw /system

Post Status

Asked in February 2016
Viewed 2,258 times
Voted 9
Answered 1 times

Search




Leave an answer


Quote of the day: live life