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

Unable to access Storage on Android 10 #1269

Closed
0x616d616e opened this issue Sep 28, 2019 · 11 comments
Closed

Unable to access Storage on Android 10 #1269

0x616d616e opened this issue Sep 28, 2019 · 11 comments

Comments

@0x616d616e
Copy link

0x616d616e commented Sep 28, 2019

Screenshot_20190929-030147
Screenshot_20190929-025910
Issue
Tried termux-setup-storage but home folder doesn't have any storage mounted.
Unable to access /storage/emulated/0/ without root.
App settings don't have option to enable Storage Permission.

~ termux-info
Updatable packages:
All packages up to date
Subscribed repositories:
https://dl.bintray.com/xeffyr/x11-packages-24 x11/main
https://dl.bintray.com/grimler/science-packages-24 science/stable
https://dl.bintray.com/grimler/termux-root-packages-24 root/stable
https://dl.bintray.com/grimler/game-packages-24 games/stable
https://dl.bintray.com/termux/termux-packages-24 stable/main
System information:
Linux localhost 4.4.194-Illusion-v5.8-PixelExp+ #1 SMP PREEMPT Thu Sep 26 13:03:48 UTC 2019 aarch64 Android
Termux-packages arch:
aarch64
Android version:
10
Device manufacturer:
Xiaomi
Device model:
Redmi Note 5 Pro

@ghost
Copy link

ghost commented Sep 28, 2019

Termux doesn't have proper Android 10 support currently.

@adyady22222
Copy link

And is there any news about it???? something that will eventually fix this problem ??detailsss??

@DarthZedd
Copy link

Termux doesn't have proper Android 10 support currently.

Are there any plans regarding this? My device should get upgrade to A10 this month and i strongly doubt if i will do this if Termux will not work properly.

@ghost
Copy link

ghost commented Oct 4, 2019

Are there any plans regarding this?

Termux is going to be completely re-worked in order to support Android 10. There a lot more issues than this one.

Currently it is partially saved by targeting API 28 instead of 29.

@ghost
Copy link

ghost commented Oct 4, 2019

Android 10 uses a scoped storage (which means no free access to /sdcard for command line programs), but only for applications targeting for API 29: https://developer.android.com/training/data-storage/files/external-scoped.

Termux shouldn't have such issue, but it seems on some devices scoped storage enabled for everything. Is anyone who have this issue using Xiaomi device like OP ?

@0x616d616e
Copy link
Author

Android 10 uses a scoped storage (which means no free access to /sdcard for command line programs), but only for applications targeting for API 29: https://developer.android.com/training/data-storage/files/external-scoped.

Termux shouldn't have such issue, but it seems on some devices scoped storage enabled for everything. Is anyone who have this issue using Xiaomi device like OP ?

I am using a AOSP custom rom on my device which is stock android.

@ghost
Copy link

ghost commented Oct 4, 2019

I can't reproduce issue on the latest Android 10 image from Google.

Also, behaviour of your OS is different from one described on the official Android SDK documentation, so I'm in doubt that your AOSP is "stock android". For now considered as device-specific issue.

Screenshot_1570191660

@ghost
Copy link

ghost commented Oct 4, 2019

Screenshot_1570191944

@ghost
Copy link

ghost commented Oct 4, 2019

Android 10 issues are not going to be fixed shortly. And if even so, you won't have full access to /sdcard because of scoped storage. File access via SAF can't be passed to command line programs.

@0x616d616e
Copy link
Author

I can't reproduce issue on the latest Android 10 image from Google.

Also, behaviour of your OS is different from one described on the official Android SDK documentation, so I'm in doubt that your AOSP is "stock android". For now considered as device-specific issue.

Screenshot_1570191660

Weird, Did uninstall & reinstall and now I can see the storage permission.
¯_(ツ)_/¯

Sorry for wasting time!

@cauerego
Copy link

just wanted to point this issue seem to be very relevant and it keeps coming and going. right now, there's an easy solution:

open termux info, revoke permissions, run termux-setup-storage.

from:
#1617 (comment)

@ghost ghost locked and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants