Android: Root -> Give app permission -> Unroot? Does an app loose permission granted by su after unrooting the phone?

↘锁芯ラ 提交于 2020-12-15 04:34:35

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!