Reading or writing a file in /data on a rooted Android device
问题 I am trying to programmatically read/write a file in /data directory on a rooted phone. I first shell execute su to make sure my program gets super user access, which works fine. I am able to read/write files in /data thru shell execs commands inside my program, but I am getting " Permission denied " java.io.IOException when using Android File or other APIs. How to use the APIs to read/write to /data on a rooted phone ? this is obviously possible as programs such as Root Explorer does it.