Order of installing the application is changing the behaviour?

谁都会走 提交于 2019-12-04 08:37:46

Why this is happening even if we have proper permission?

Because they were installed in the wrong order.

Why the provider installed later is not accessible by main application?

Because the permission did not exist when the main application was installed.

The solution is to define the same permissions in all three APK files.

Also, unless you plan on third party apps being able to use this content provider, please use signature-level permissions, not normal or dangerous.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!