ionic-team / ionic-team/capacitor-filesystem
feat(android): update the filesystem plugin to accommodate scoped storage and permission changes since Android 10
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 15
- Avg merge
- 14m
- Merged PRs (30d)
- 1
Description
## Feature Request
### Plugin
Filesystem
### Description
Update the filesystem plugin to utilize the new MANAGE_EXTERNAL_STORAGE permission when necessary (apps targeting Android 11, API 30). Support the Android best practices for scoped storage since Android 10 (API 29)
```Android 11 introduces the MANAGE_EXTERNAL_STORAGE permission, which provides write access to files outside the app-specific directory and MediaStore. To learn more about this permission, and why most apps don't need to declare it to fulfill their use cases, see the guide on how to manage all files on a storage device.```
```If your app targets Android 11 (API level 30) or higher, the WRITE_EXTERNAL_STORAGE permission doesn't have any effect on your app's access to storage. This purpose-based storage model improves user privacy because apps are given access only to the areas of the device's file system that they actually use.```
Scoped Storage: https://developer.android.com/training/data-storage#scoped-storage
### Platform(s)
Android
### Additional Context
https://developer.android.com/training/data-storage/manage-all-files
https://developer.android.com/training/data-storage#permissions
https://developer.android.com/training/data-storage#scoped-storage
Contributor guide
Assessment
This issue has not been assessed yet.