读取清单后,android权限系统如何在内部工作

Android从清单文件中读取后如何跟踪授予应用程序的权限?是否基于applicationId / package name /签名密钥/其他方式跟踪应用程序权限?

如果它存储某些存储的权限,那么android将如何检索权限数组/数据以匹配.它会用什么?像SHA,应用程序ID或包名称?

Note : Marshmallow 6.0 is the Target Environment

最佳答案 请看下面的链接 –

1)http://trendblog.net/android-app-permissions/

2)https://www.se.jku.at/wp-content/uploads/2012/09/2012.permission-tracking.pdf

If Signature is specified, access is granted if a requesting
application is signed with the same certificate as the application
that declared the permission. The level SignatureOrSystem grants
access to applications that are in the Android system image or that
are signed with the same certificates as those in the system image.

因此,签名证书是帮助android系统识别特定权限的允许应用程序的关键因素.

它可能对你有帮助!

点赞