permissions-dispatcher / PermissionsDispatcher

A declarative API to handle Android runtime permissions.
https://github.com/permissions-dispatcher/PermissionsDispatcher
Apache License 2.0
11.22k stars 1.44k forks source link

xiaomi phone permission exception(permission request success,create file fail(permission denied)) #583

Closed zwping closed 5 years ago

zwping commented 5 years ago

apply for permission on xiaomi phone,the permission application is successful, but the file create fail,log reminder permission denied

open app settings, acceess and change files on internal storage is success

phone: mix3(miui:10.2 android:P) mix2(miui:10.2 android:O)

use:

 
    implementation("com.github.hotchemi:permissionsdispatcher:3.3.2") {
        // if you don't use android.app.Fragment you can exclude support for them
        exclude module: "support-v13"
    }

    kapt "com.github.hotchemi:permissionsdispatcher-processor:3.3.2" 
hotchemi commented 5 years ago

How about 4.x?

hotchemi commented 5 years ago

reopen if needed 🐗

zwping commented 5 years ago

sorry, due to jet lag(in china), no first time debug

just used separately permissions dispatcher 3.3.2/4.3.0 debug from new project, xiaomi phone the are still bug

hotchemi commented 5 years ago

I think in 4.3.0 there's no Xiaomi dedicated code so that I wonder bug is on OS side? 🤔 Do you know what's the valid code which works on the device? 👀

zwping commented 5 years ago

i don't know, i'm android small white....

zwping commented 5 years ago

a new framework has been found, he was dev by the chinese, he can solve the xiaomi bug

you can also go and see it.