guolindev / PermissionX

An open source Android library that makes handling runtime permissions extremely easy.
Apache License 2.0
3.53k stars 406 forks source link

android13版本的红米Note12的奇葩问题 #280

Open ail36413 opened 6 months ago

ail36413 commented 6 months ago

PermissionX.init(this) .permissions( android.Manifest.permission.READ_EXTERNAL_STORAGE, android.Manifest.permission.WRITE_EXTERNAL_STORAGE, ) .request { allGranted, grantedList, deniedList -> Log.e("MainActivity","allGranted1:"+allGranted) } 代码一运行就会打印日志true,权限申请框我都还没点击呢,我点击拒绝无回调,关闭APP重新运行,还是打印true, 经过测试,一打开app就运行权限申请,就会这样,如果是点击按钮去申请,就没这个问题