我希望我的 ContentProvider 仅在我的应用程序中可用,
为此,我将 ContentProvider 的 exported
属性设置为 false
android:exported="false"
这工作正常,Android 会在其他应用尝试访问 ContentProvider 时抛出 SecurityException
问题: 添加“签名保护权限”作为额外保护是否有意义?
应用由多个进程组成,ContentProvider用于进程间通信,无需与其他应用通信
谢谢
最佳答案
如果您的应用程序的最低级别是可能的,并且很有用 is lower then 17 :
Because this attribute was introduced in API level 17, all devices running API level 16 and lower behave as though this attribute is set "true".
关于Android签名保护并导出="false",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46401419/