我正在開發一個包含多個組件的應用程序,每個組件都將是一個單獨的Android應用程序。 「核心」應用程序將使用內容提供商提供對數據庫的訪問權限,並且閱讀權限文檔「簽名」保護是我想要的方式。Android權限,簽名和開發人員密鑰
我已經爲我的權限定義了一個組,主要是我的權限在應用程序信息的「權限」部分中會很好地顯示出我自己的圖標。與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" />
鑑於我目前正在開發,因此使用開發者極爲重要,還有一些其他的籃球,我需要爲了得到「簽名」保護級別爲開發商合作,通過跳?
一如往常許多感謝您的幫助
史蒂夫
謝謝CW。在逐步建立權限的過程中,我從「正常」切換到「簽名」作爲錯誤。 :-) – Dobbo 2013-02-15 16:06:18