重要说明:关于个推SDK Android 5.0的系统配置更新

发布时间:2019-06-19 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了重要说明:关于个推SDK Android 5.0的系统配置更新脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

AndROId5.0配置说明

因Android L(android 5.0)系统自身限制,多个应用安装时,如果拥有同一个Service权限,会导致权限冲突,只能安装一个带有此权限的应用,其他应用都不能再安装上去。

目前有许多客户在Android 5.0系统上接入个推SDK时,会发现如果其他集成个推SDK的应用已经安装在手机,此应用就不能再安装上去,会出现权限冲突。

报错信息如下:
[INSTALL_FaiLED_DUPLICATE_PERMISSIONperm=getui.permission.GetuiServicepkg
=com.XXX.XXXXX](因客户包名,所以省略)

官方说明:
Starting in Android 5.0, the System enforces a new uniqueness restriction on custom permissions for apps that are signed wITh different keys. Now only one app on a device can define a given custom permission (as determined by its name), unless the other app defining the permission is signed with the same key. If the user tries to install an app with a duplicate custom permission and is not signed with the same key as the resident app that defines the permission, the system blocks the installation.

对此,个推SDK对权限配置做了修改,修改了一下自定义权限的名称,如下,是需要修改的地方:

重要说明:关于个推SDK Android 5.0的系统配置更新

原来的名称后加上应用的包名即可。

www.GeTui.com

脚本宝典总结

以上是脚本宝典为你收集整理的重要说明:关于个推SDK Android 5.0的系统配置更新全部内容,希望文章能够帮你解决重要说明:关于个推SDK Android 5.0的系统配置更新所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。