
我已经为我的权限定义了一个组,主要是因为我的权限会很好地显示在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权限,签名和开发人员的密钥所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)