问题
App.apk programatcially runs the command: Runtime.getRuntime().exec("screenrecord", "--time-limit 5", "/sdcard/demo1.mp4")
To do so, It requires permission, which also requires rooting the phone to give this app permissions.
The problem is rooting puts the phone at both malfunctioning and security risks.
Note: This app is not to be published, but used by one normal user.
The question:
Is It possible to:
1- Root the phone, then
2- Give the app this permission, then
3- Unroot the phone
In other words:
If an app is given full permission by the root
user, does this app loose these permission after unrooting the phone ?
来源:https://stackoverflow.com/questions/64843656/android-root-give-app-permission-unroot-does-an-app-loose-permission-gra