Android权限,签名和开发人员的密钥

Android权限,签名和开发人员的密钥,第1张

概述我正在开发一个具有许多组件的应用程序,每个组件都将是一个单独的 Android应用程序. “核心”应用程序将使用内容提供程序提供对数据库的访问,并且阅读权限文档“签名”保护是我想要的方式. 我已经为我的权限定义了一个组,主要是因为我的权限会很好地显示在App Info的“权限”部分中我自己的图标.用android:protectionLevel =“normal”他们出现就好了.但是当我使用and 我正在开发一个具有许多组件的应用程序,每个组件都将是一个单独的 Android应用程序. “核心”应用程序将使用内容提供程序提供对数据库的访问,并且阅读权限文档“签名”保护是我想要的方式.

我已经为我的权限定义了一个组,主要是因为我的权限会很好地显示在App Info的“权限”部分中我自己的图标.用androID:protectionLevel =“normal”他们出现就好了.但是当我使用androID:protectionLevel =“signature”时,它们就消失了.

<permission-group    androID:name="com.example.permissions.GROUP"    androID:label="@string/lblGroup"    androID:description="@string/descGroup"    androID:icon="@drawable/ic_menu_permissions_group" /><permission    androID:name="com.example.permission.CONfig_READ"    androID:permissionGroup="com.example.permissions.GROUP"    androID:protectionLevel="signature"    androID:label="@string/lblConfigRead"    androID:description="@string/descConfigRead" /><permission    androID:name="com.example.permission.CONfig_WRITE"    androID:permissionGroup="com.example.permissions.GROUP"    androID:protectionLevel="signature"    androID:label="@string/lblConfigWrite"    androID:description="@string/descConfigWrite" />

鉴于我目前正在开发并因此使用开发人员密钥,我是否需要跳过一些其他的环节以使“签名”保护级别适用于开发人员?

一如既往地感谢您的帮助

史蒂夫

解决方法

But when I use the androID:protectionLevel=”signature” they disappear.

这是因为用户不需要批准它们.根据应用程序的签名自动授予和拒绝签名级权限.

are there some other hoops I need to jump through in order to get the “signature” protection level to work for developers?

它已经适用于您自己的应用程序.如果“开发人员”是第三方,则无法使用签名级权限,因为他们将使用自己的签名密钥进行签名.

总结

以上是内存溢出为你收集整理的Android权限,签名和开发人员的密钥全部内容,希望文章能够帮你解决Android权限,签名和开发人员的密钥所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1128815.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-30
下一篇2022-05-30

发表评论

登录后才能评论

评论列表(0条)

    保存