Baseflow / Baseflow/flutter-permission-handler
[Question]: Unable to handle storage permission for Android 8.10 as well as Android 16
- Dominant language
- Dart
- Stars
- 2.2k
- Forks
- 970
- Avg merge
- 14h 22m
- Merged PRs (30d)
- 2
Description
### Please check the following before submitting a new issue.
- [x] I have searched the [existing issues](https://github.com/baseflow/flutter-permission-handler/issues).
- [x] I have carefully [read the documentation](https://github.com/baseflow/flutter-permission-handler/blob/main/permission_handler/README.md).
### Please select for which platform(s) you need help
- [x] Android
- [ ] iOS
- [ ] Windows
### Your question
I am trying to backup my flutter app db file programmatically to a user selected folder like documents folder and i am using file_picker for selecting the folder. The problem is that on Android 16 no storage permission is required by my app as the permission is handled by file_picker itself. However, i was testing the app on a physical device running Android 8.1.0 and after selecting the folder the copy operation throws an exception (PathAccessException OS Error: Permission denied, errno13). If i use the permission_handler package to request WRITE_EXTERNAL_STORAGE then the issue is resolved for Android 8.1.0 physical device but on Android 16 device this permission is automatically denied even if the user allows the permission to file_picker.
The point is that permission_handler should return this permission as granted, not denied on later android versions where this permission is no longer need. Does permission_handler have a mechanism to automatically handle such situations? How to resolve it?
### Version
12.0.0+1
Contributor guide
Assessment
This issue has not been assessed yet.