I have a problem when I try to copy folders inside /data/data to SDcard.
I have my phone rooted.
I request Superuser permissions in my app with:
Runtime.getRuntime().exec("su");
I'm using FileUtils
from Apache to copy files/folders.
What I discovered is if I manually change the folders permissions to READ
I can copy it from /data/data to SDcard.
Is there any way to recursively change the RW
permissions of all folders inside /data/data to read and write folders?
I've tried chmod
but It doesn't work.
Runtime.getRuntime().exec("chmod 777 /data/data");
I want to do a backup program and i want to read some folders inside /data/data and write them in a SDcard's folder.
Then I want to restore this folders reading them from a SDcard's folder and write them in /data/data.
Could you help me, please?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…