Android make broadcast receiver secure

后端 未结 2 1722
逝去的感伤
逝去的感伤 2021-02-10 20:34

I\'m trying to implement a \"secure\" broadcast receiver which only receives broadcasts from a specific app. This is because I want to make a plugin to my app which triggers act

2条回答
  •  无人及你
    2021-02-10 21:12

    Define a custom permission in your manifest:

    
    

    On your receiver, add permission attribute:

    
    

提交回复
热议问题