Intent custom permission not working

跟風遠走 提交于 2019-12-01 00:41:10

Final Solution - I agree it doesn't seem to make sense, but here it is:

I have 2 apps using the same permission - com.test and com.runtest.

As above, com.test was broken for DEBUG builds. But I noticed that com.runtest was still working.


Steps:

  1. installed com.runtest to confirm it was working
  2. uninstalled both apps from my devices
  3. renamed com.runtest to com.test - in Eclipse (Android Tools... Rename Application Package)
  4. debugged this renamed app in Eclipse on my device - it worked
  5. deleted this renamed "fake" com.test
  6. debugged the original com.test app in Eclipse on my device - it finally worked!

So for some reason, overwriting the broken app with a working app changed something, and fixed my device.

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