Skip to content

refactor: prep for making MANAGE_EXTERNAL_STORAGE optional - #21540

Open
david-allison wants to merge 2 commits into
ankidroid:mainfrom
david-allison:optional-storage-1
Open

refactor: prep for making MANAGE_EXTERNAL_STORAGE optional#21540
david-allison wants to merge 2 commits into
ankidroid:mainfrom
david-allison:optional-storage-1

Conversation

@david-allison

Copy link
Copy Markdown
Member

Note

Assisted-by: Claude Fable 5

Fixes

Approach

See the commits

  • one enables an override in getDefaultAnkiDroidDirectory
  • one enables full to work better with an app-private folder.

How Has This Been Tested?

Both are technically non-functional at this point:

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)
  • UI Changes: You have tested your change using the Google Accessibility Scanner

david-allison and others added 2 commits August 16, 2026 17:39
A `full` build using app-private storage will no longer require
 `MANAGE_EXTERNAL_STORAGE` permissions (skipping a check checking device capabilities.

No difference on a `play` variant.

Prep for 13574
Part of 21046: 'Skip' will select app-private storage,
and this check is what keeps the permission screen closed afterwards.

Co-authored-by: Fandroid745 <dhanush41230@gmail.com>
Assisted-by: Claude Fable 5
For future: "Skip" on the permission screen will need the app private
directory.

Prep for 13574
Split from 21046

Assisted-by: Claude Fable 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant