Repository navigation
ADFA-5225 fix(onboarding): grant storage permission on pre-Android-11 devices - #450
Merged
Merged
Conversation
… devices Onboarding hard-gated on a storage permission that could not be granted below Android 11: only MANAGE_EXTERNAL_STORAGE was declared, and the wizard's requestStorage() had no pre-R branch, so on a Samsung S9 (API <= 29) the toggle did nothing and Continue never enabled. - New StoragePermission helper centralizes the check + request, branching by OS version (R+ "All files access" screen; pre-R WRITE_EXTERNAL_STORAGE runtime). - WizardActivity and SetupSectionFragment delegate to it, removing the duplicated per-surface logic; WizardActivity gains the runtime launcher it was missing. - Manifest declares READ/WRITE_EXTERNAL_STORAGE with maxSdkVersion=29; R+ keeps MANAGE_EXTERNAL_STORAGE. No behaviour change on Android 11+. targetSdk unchanged (28).
…p settings The wizard's pre-R runtime request silently no-ops once the user picks "Don't ask again", re-stranding onboarding on a screen with no other path to Settings. requestOrOpenSettings() now detects that (rationale==false after a prior ask) and opens the app details settings instead. Also drops now-unused imports in SetupSectionFragment left over from centralizing the permission logic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Onboarding was blocked on Android 10 and below (e.g. Samsung S9): the app only
declared MANAGE_EXTERNAL_STORAGE (Android 11+) and the wizard's storage request
had no pre-R path, so the permission could never be granted and Continue stayed
disabled.
Changes:
branching by OS version.
per-surface logic is gone. WizardActivity gains the pre-R runtime launcher.
No behaviour change on Android 11+. targetSdk stays 28.
Verification: verified on device — build + onboarding on a pre-11 device
(grant storage, Continue enables), plus a spot-check on Android 11+.
Screen_recording_20260820_233625.webm
Screen_recording_20260820_233812.webm