First execute the su command with code, and then read the file.
p.s. Some machines may not provide the su executable program, so before doing this, use the command line to confirm whether su is already available
p.s. In addition, if you use a root application to perform rooting, an authorization window will usually pop up. At this time, you must click Confirm to authorize.
Please refer to: How To Change folder permission via SU [root] eclipse android Copy files to another package folder (root, su)
"Application for root permission code", did you adjust su in the rooted system? This should not result in loss of permissions.
First execute the su command with code, and then read the file.
p.s. Some machines may not provide the su executable program, so before doing this, use the command line to confirm whether su is already available
p.s. In addition, if you use a root application to perform rooting, an authorization window will usually pop up. At this time, you must click Confirm to authorize.
Please refer to:
How To Change folder permission via SU [root] eclipse android
Copy files to another package folder (root, su)