代碼已經整理好,效果如下圖:
地址:https://github.com/geeklx/myapplication2018/tree/master/p013_updatemanagerpermission