feat(android13): make All Files Access optional

- Android 13+ now only requires READ_MEDIA_AUDIO by default
- MANAGE_EXTERNAL_STORAGE is optional and can be enabled in Settings
- Added 'All Files Access' toggle in Download Settings (Android 13+ only)
- Users who encounter write errors can enable full storage access
- Respects privacy-conscious users who prefer limited permissions
This commit is contained in:
zarzet committed 2026-01-31 14:08:59 +07:00
1 parent 020ac32ee6
commit 9bbd774175
20 files changed
+526 -42

No files matched your search

+5
View File
@@ -251,6 +251,11 @@ class SettingsNotifier extends Notifier<AppSettings> {
state = state.copyWith(lossyBitrate: bitrate, lossyFormat: format);
_saveSettings();
}
void setUseAllFilesAccess(bool enabled) {
state = state.copyWith(useAllFilesAccess: enabled);
_saveSettings();
}
}
final settingsProvider = NotifierProvider<SettingsNotifier, AppSettings>(