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: Path to SD card hard to find on some devices #10199

Closed
hrydgard opened this issue Nov 28, 2017 · 4 comments
Closed

Android: Path to SD card hard to find on some devices #10199

hrydgard opened this issue Nov 28, 2017 · 4 comments

Comments

@hrydgard
Copy link
Owner

We should try to detect the presence of an extra SD card (in addition to the built-in storage) and show a button to navigate to it.

For example, I got a report that on a Galaxy Note 8, it's mounted on /storage/6BF1-DDB6/, which is not very intuitive.

@TehPlayer14
Copy link

Yeah its not something nice one some phone brands in file explorer its random numbers/letters instead of like internal/sdcard

@unknownbrackets
Copy link
Collaborator

Is it always /storage/? Or can we just read mtab?

-[Unknown]

@hrydgard
Copy link
Owner Author

hrydgard commented Apr 25, 2020

This one is really difficult to do well because there's no official API for managing multiple external storages, other than as "media folders" and nonsense like that. There are possibilities for device specific hacks, but it's just a lot of messing around. Additionally, this one will also get harder in the future with the new storage stuff. I'm gonna push this to future.

There are a few fun hacks in https://stackoverflow.com/questions/23123461/external-sdcard-file-path-for-android ...

@hrydgard hrydgard modified the milestones: Future, v1.11.0 Jan 6, 2021
hrydgard added a commit that referenced this issue Jan 7, 2021
This will disappear in future Android versions but can be useful for
older devices.

Fixes (or at least tries to) #10199, at least for some devices.

Might help #13827 ?

Tested on Pocophone F1.
@hrydgard
Copy link
Owner Author

hrydgard commented Jan 8, 2021

Fixed by #13885, as far as it's possible...

@hrydgard hrydgard closed this as completed Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants