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
[bug] android 10: file system permission errors #338
Comments
For further details, Harmonoid uses this to get the root-dir path of available storages (internal & SD card) on an Android: val volumes: List<String> = context.getExternalFilesDirs(null).map { file -> file.absolutePath.split("/Android/")[0] } |
Interesting, I can provide logs for stock S9+ if you think that will help, and can confirm the same issue on a stock LG I think V30? I can confirm that opening a single music file using the open file or URL link does work on Samsung. if it's a perms thing, I wonder if there's an ADB command I can run? |
Does seem to be some kind of permissions issue. not sure if there is a good fix for it or not
EDIT: not a fix but I allowed harmonoid to use LEGACY_STORAGE and it works, if anyone is looking for an easy way to do this, app manager from fdroid can easily do this in "APP OPS" section |
I'm not certain about this, but I think even not having legacy storage access will allow to iterate over directories. |
Since, current implementation is very coupled with I just tested on my friend's Samsung device. Maybe, Samsung did some special treatment to their OS for storage access & permissions. |
Thanks for the report once again! The issue is only present on Android 10 specifically (because scoped storage was newly enforced in it & had some issues). Expect the fix to be rolling out soon.
https://www.gsmarena.com/samsung_galaxy_s9+-8967.php shows Android 10.0. Are both of your devices bugging with app? Android 9.0 has no scoped storage. |
My phone is indeed Android 10 my bad I was testing it on an Android 11 image in qemu and had made a mistake due to that being a separate issue that I haven't quite figured out yet. I'm not sure what Android version the other phone is. since it's my father's. I thought it was a V30 but if you say it's limited to Android 10, which I do believe. then it's probably a v50 which has Android 9 through 11, so there's a strong chance that was android 10 as well. |
Hi @Quackdoc, the issue has been fixed. You may download & install the updated APK: https://harmonoid.com/downloads. Google Play version will take some time (maybe ~1 day) to update after review. |
* `android:requestLegacyExternalStorage` is present for supporting Android 10 (API level 29) specifically. * Harmonoid is completely scoped storage friendly for Android 11+.
Describe the bug
No SAF accsess
To Reproduce
Install on android requiring SAF (roms that use scoped storage
Steps to reproduce the behavior:
Expected behavior
Open SAF prompt
Screenshots
Platform (please complete the following information)
App version
Please confirm that you're on the latest version available.
v0.3.3
The text was updated successfully, but these errors were encountered: