SimpleStorage icon indicating copy to clipboard operation
SimpleStorage copied to clipboard

Judgment of permissions is not accurate

Open Angxb4cn opened this issue 1 year ago • 0 comments

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]

Angxb4cn avatar Aug 28 '23 14:08 Angxb4cn