java - Move downloaded file into system root directory in Android -


i'm using roottools try , move , file that's downloading downloads folder system directory

command command = new command(0, "cp -f " + environment.directory_downloads +"/old.html" + " /system/new.html"); roottools.getshell(true).add(command); 

but whatever reason, doesn't work .

any ideas?

the reason wasn't working because /system mounted read-only. had remount this

mount -o remount,rw /system


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -