Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android 12 : writing to sdcard access denied (not /storage/XXXXX/Android/*) #17852

Closed
jlmxyz opened this issue Aug 8, 2023 · 7 comments
Closed
Labels
Observed Needs more clarification, feedback, or research

Comments

@jlmxyz
Copy link

jlmxyz commented Aug 8, 2023

Description

I want to store my osmand data on sdcard on android 12, so I choose manual path, enter the sdcard path, osmand begins the move process and fail because of access rights
looking into the sdcard shows that osmand did create the folder but can't access it's content

How to reproduce

go to parameters - osmand parameters - storage folder - then enter a path to a sd card

Actual result

process begin but fail on access storage rights, the destination folder is created
using the shared multiuser storage on sdcard succeed, but since there is a bug on android the obb folder is not shared across users
PS : would be nice if only some data could be shared like maps when others are kept private like tracks, point of interest...

Expected result

the data should be stored into the sdcard folder

Environment
OsmAnd Version: 4.4.7
Android/iOS version: 12
Device model: samsung/n975f /e/os

@vshcherb vshcherb added the Observed Needs more clarification, feedback, or research label Aug 8, 2023
@pebogufi
Copy link

pebogufi commented Aug 8, 2023

I use a Samsung S10 with Android 12 since about half a year without problems with Internal mem
/storage/emulated/0/Android/media/net.osmand.plus
It also works (tested) with
/storage/xxxx-xxxx/Android/media/net.osmand.plus
Repace xxxx-xxxx with your sd card.

Important is media, instead of obb

@jlmxyz
Copy link
Author

jlmxyz commented Aug 19, 2023

seems indeed that using media folder is a workaround, however there still is a problem if I want to use another folder outside the realm of /Android/ folders....

@sonora
Copy link
Member

sonora commented Aug 19, 2023

It's a google Play Store restriction - arbitrary folders are not normally allowed anymore, see #16059.

@pebogufi
Copy link

pebogufi commented Aug 19, 2023

seems indeed that using media folder is a workaround, however there still is a problem if I want to use another folder outside the realm of /Android/ folders....

Why do you want to use a different folder, if media works ?
For me media is not a workaround but just working.

@jlmxyz
Copy link
Author

jlmxyz commented Aug 19, 2023 via email

@DmitryAlexei
Copy link
Contributor

Probably related #14165 (comment)

@sonora
Copy link
Member

sonora commented Aug 11, 2024

See #16059.

@sonora sonora closed this as completed Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Observed Needs more clarification, feedback, or research
Projects
None yet
Development

No branches or pull requests

5 participants