我必须使用清单文件中的以下更改来签名并预加载应用程序,并且它有效:
<permission android:name="com.xx.yy_DB_WRITE_PERMISSION" android:label="xxyyDB" android:protectionLevel="signature" /> <provider android:name=".provider.ZZProvider" android:writePermission = "com.xx.yy_DB_WRITE_PERMISSION" android:exported="false"/>
<provider> 没有任何protectionLevel属性。您需要的是在获得许可的情况下保护您的提供商。
<provider>
定义一个 <permission> 并让您的提供商要求它。
<permission>
http://developer.android.com/guide/topics/manifest/provider-element.html
http://developer.android.com/guide/topics/manifest/permission-element.html
( <permission> 确实有一个protectionLevel属性,我想你混淆了这两个元素)