I want to copy files and directories from /root directory to a different folder inside the SD_CARD. So, I did lots of search, but couldn't found a useful answer.
I executed su command like this:
Process pp = Runtime.getRuntime().exec("su cp "+originDir+" "+targetDir);
Any help will be great. Thanks.