How to send broadcast with permission from command line

前端 未结 3 1420
情深已故
情深已故 2021-02-10 05:38

I have a broadcast receiver in a app which uses my permission com.myexample.permission.MY_PERMISSION.

I am able to send the broadcast using

se

3条回答
  •  春和景丽
    2021-02-10 05:58

    Taking a look at this post try removing the permission temporarily when you're doing testing from adb, and then re-adding the permission when you're ready to test it through a real broadcast.

    If that is not acceptable, this post may be of some help.

提交回复
热议问题