How to deal with removal of a permission for a broadcast receiver in Android M?

前端 未结 3 584
南笙
南笙 2021-01-31 16:59

I\'ve got some legacy code which I am making permission safe for Marshmallow.

There is a broadcast using the PHONE_STATE permission as follows:



        
3条回答
  •  野性不改
    2021-01-31 18:03

    The final version of Android M is not out yet (the final api is out, but not the platform code), so hopefully the platform will handle permission checking before calling your receiver.

提交回复
热议问题