gpt4 book ai didi

android - 在Android上获取 "signature"权限级别

转载 作者:行者123 更新时间:2023-11-29 01:50:40 35 4
gpt4 key购买 nike

我正在构建一个 Android 应用程序,我需要的权限之一定义为:

android:protectionLevel="signature|system|development"

如何获得签名保护级别?我需要以某种方式签署我的申请吗?

我需要用 OEM 签名吗? (三星\HTC\LG)?

最佳答案

signature 表示为了能够访问资源,您的应用必须使用与权限持有者相同的证书进行签名。如果这不是您尝试连接的应用程序,那么您基本上就不走运了。如果那是系统一,那你就更倒霉了,This is documented here :

"signature"

A permission that the system grants only if therequesting application is signed with the same certificate as theapplication that declared the permission. If the certificates match,the system automatically grants the permission without notifying theuser or asking for the user's explicit approval.

编辑

Im trying to read logcat file through my application. this requiresthe permission android.permission.READ_LOGS

您无法访问不是由您的应用程序创建的库存 ROM 上的日志。这是出于安全原因而引入的,因此仅仅因为您需要它就让您获得它是没有意义的。如果您构建自己的 ROM,那么您可以拥有它,但是您应该已经知道了。

关于android - 在Android上获取 "signature"权限级别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18297986/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com