GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” ๐Ÿ› fix(android): recognize device-protected storage paths by gaborbernat ยท Pull Request #753 ยท tox-dev/platformdirs

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Nov 27, 2026

Copy link
Copy Markdown
Member

platformdirs asks pyjnius for the Android app folder and, when pyjnius is missing, looks for the folder on sys.path. That fallback did not recognize device-protected storage (/data/user_de/<user id>), so an app running Python from there got the Unix backend. ๐Ÿ“ฑ Once this merges, such an app gets its own app directories, and its shared media directories point to its Android user's /storage/emulated/<user id> instead of the /storage/emulated/0 default.

The sys.path discovery now accepts the device-protected user_de root wherever it accepted the credential-protected user root, on internal storage and on adopted volumes under /mnt/expand. The shared storage lookup reads the user ID from either root.

This has not been run on a physical Android device or emulator.

Supersedes #752 by @adityahaa, whose commit is kept unchanged. That fork does not allow maintainer edits, so the review fixes land here on top of it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
adityahaa and others added 2 commits November 22, 2026 03:10
@adityahaa
fix(android): recognize device-protected storage paths
b989285
@gaborbernat
๐Ÿ“ docs(android): document device-protected storage
85b822c
@gaborbernat
gaborbernat requested a review from ofek as a code owner November 27, 2026 20:25
@gaborbernat gaborbernat added the bug Something isn't working label Nov 27, 2026
@gaborbernat gaborbernat mentioned this pull request Nov 27, 2026
๐Ÿ› fix(android): recognize device-protected storage paths #752
Closed
@gaborbernat
gaborbernat merged commit c7d18cd into tox-dev:main Nov 27, 2026
40 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Eee622

Eee622 commented Nov 28, 2026

Copy link
Copy Markdown

85b822c

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ofek ofek Awaiting requested review from ofek ofek is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@gaborbernat @Eee622 @adityahaa
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.
You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.