I try to copy the file from the application, which is in another application package to the folder. I am denied access, despite the fact that I prescribe su before copying, I copy from Runtime.exec cp <curFile> <destFile> . Root is not omnipotent? What am I doing wrong?
1 answer
Somewhat hurriedly, I asked a question, the problem was easily solved, it was necessary to save the OutputStream after execution of su in which it was executed, and then write the following commands to it, but I used the new Runtime.exec() . In general, to use the su capabilities, the commands need to be executed in the created su thread.
|