SimpleStorage
SimpleStorage copied to clipboard
Judgment of permissions is not accurate
Library version: 1.5.5 OS version: [Android 11] Device model: Android Emulator
Describe the bug When the application has obtained the MANAGE_EXTERNAL_STORAGE permission, use SimpleStorage.hasStorageAccess(context, [dataPath.absolutePath]) to judge that Android/data is always true, regardless of whether the data has read and write permissions. Using DocumentFileCompat.isStorageUriPermissionGranted(context, StorageId.PRIMARY, [dataPath.absolutePath]) can be correctly judged
To Reproduce [Explain the steps to reproduce]
Stacktrace [If applicable]