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

Not able to access SDCard on Chromebook. #506

Open
liuchang0920 opened this issue Dec 13, 2017 · 9 comments
Open

Not able to access SDCard on Chromebook. #506

liuchang0920 opened this issue Dec 13, 2017 · 9 comments

Comments

@liuchang0920
Copy link

Thanks for this great product.

It seems that on chromebook, the SDCard is mounted in the path: ///_SDCard. And by executing "termux-setup-storage" still could not able to find the path to sdcard.
Is this a constraint that chromeos forces? If so, this feature would only available when there is updates on chromeos then.

Thanks.

@liuchang0920
Copy link
Author

I will be appreciated if there is any information on this

@Quasic
Copy link
Contributor

Quasic commented Dec 31, 2017

I had to create the symlink manually. (ln -s ...) If that doesn't work, I'm afraid I don't have a chromebook to test.

@liuchang0920
Copy link
Author

then i think it might need google to expose the visibility of sdcard

@SDRausty

This comment was marked as spam.

@timnolte
Copy link

timnolte commented Jan 4, 2018

I believe Termux needs a code change as indicated on this Chromium issue concerning how ARC has implemented the storage access API.

I think the relevant API implementation that is needed would be the removable storage API.

@Quasic
Copy link
Contributor

Quasic commented Jan 6, 2018

@timnolte, that appears to be for Java only. Native binary applications wouldn't be able to use it without some kind of wrapper that runs Java code, which would probably be slow... That's why we don't use the normal access framework for Android.

@timnolte
Copy link

timnolte commented Jan 6, 2018

@Quasic I'll be honest I've done zero Android development but I don't understand how your statement makes any sense. Just looking at the GitHub repo and the Termux source code is Java. Regardless the issue is that on a Chromebook SD Cards are accessed differently. The /sdcard location is not really and SD card storage location at all on a Chromebook.

@liuchang0920
Copy link
Author

liuchang0920 commented Jan 6, 2018 via email

@Quasic
Copy link
Contributor

Quasic commented Jan 7, 2018

@timnolte, the SDcard issue has been confusing since #20. Only recently could an app be written in non-Java. (A Java wrapper was required, which could load other code, as termux does.) Very few of the commands in termux are written in Java, and these have to use the old dalvikvm, used by KitKat. The package sources can be found by following the packages repo.

On my phone, /sdcard points to internal storage, so idk why it has that name except for historical reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants