重要說明:關於個推SDK Android 5.0的系統配置更新

Android5.0配置說明android

因Android L(android 5.0)系統自身限制,多個應用安裝時,若是擁有同一個Service權限,會致使權限衝突,只能安裝一個帶有此權限的應用,其餘應用都不能再安裝上去。app

目前有許多客戶在Android 5.0系統上接入個推SDK時,會發現若是其餘集成個推SDK的應用已經安裝在手機,此應用就不能再安裝上去,會出現權限衝突。less

報錯信息以下:
[INSTALL_FAILED_DUPLICATE_PERMISSIONperm=getui.permission.GetuiServicepkg
=com.XXX.XXXXX](因客戶包名,因此省略)ide

官方說明:
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對權限配置作了修改,修改了一下自定義權限的名稱,以下,是須要修改的地方:ui

圖片描述

在原來的名稱後加上應用的包名便可。spa

www.GeTui.comrest

相關文章
相關標籤/搜索