Android - Workaround the ACCESS_CONTENT_PROVIDERS_EXTERNALLY permission?

你。 提交于 2019-12-04 21:27:17

问题


I'm building an application which gives this exception because i call some internal methods

Permission Denial: Do not have permission in call getContentProviderExternal() from pid=2520, uid=10047 requires android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY

java.lang.SecurityException: Permission Denial: Do not have permission in call getContentProviderExternal() from pid=2520, uid=10047 requires android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY

I did some search and i knew that android OS gives this permission only for the shell users, I wonder if there exists any workaround this ..

Is there anything that would allow me to trick android and makes my application looks like a shell user?

Note: I tried to add the permission in the manifest file but obviously it didn't work.

来源:https://stackoverflow.com/questions/18137176/android-workaround-the-access-content-providers-externally-permission

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