为何「氡·OpenGApps」需要获取 Root 权限? / Why RnOpenGApps needs Root Permission?

hjthjthjt 11月 19, 2018


中文

从「氡·OpenGApps」的2.6版本开始,新增了权限android.permission.ACCESS_SUPERUSER,在某些操作中将申请 Root 权限。

这是由于2.6版本中加入了查看设备 OpenGApps 版本(感谢 Nahid Hasan Riyad 的建议)的功能,获取版本需要读取 /etc/g.prop 文件中的内容,而这个文件属于系统文件。

因此,「氡·OpenGApps」获取 Root 权限的理由仅为显示其已安装的版本,如若不需要查看设备 OpenGApps 版本,可以不授予 Root 权限。

English

Starting with the version 2.6 of RnOpenGApps, the permission android.permission.ACCESS_SUPERUSER has been added, and Root Permission will be requested in some operations.

This is due to the new feature which can get OpenGApps version (thanks to Nahid Hasan Riyad‘s suggestion) in the version 2.6. Getting version needs to read the contents of the /etc/g.prop file, which is a system file.

Therefore, the reason why RnOpenGApps obtains root permissions is only to display the installed OpenGApps version. If you do not need to get the OpenGApps version of your device, you can just refuse when requesting root permission.

本文采用 CC BY-NC-SA 3.0 协议进行许可,在您遵循此协议的情况下,可以自由共享与演绎本文章。
本文链接:https://jakting.com/archives/why-rnopengapps-need-root-permission.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注