termux-app icon indicating copy to clipboard operation
termux-app copied to clipboard

Not able to access SDCard on Chromebook.

Open liuchang0920 opened this issue 7 years ago • 9 comments

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 avatar Dec 13 '17 19:12 liuchang0920

I will be appreciated if there is any information on this

liuchang0920 avatar Dec 31 '17 01:12 liuchang0920

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.

Quasic avatar Dec 31 '17 08:12 Quasic

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

liuchang0920 avatar Jan 02 '18 01:01 liuchang0920

@liuchang0920 Are you familiar with https://termux.com/storage.html this information about setting up storage in Termux? Ensure that storage permission is granted for the app.

SDRausty avatar Jan 02 '18 01:01 SDRausty

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.

timnolte avatar Jan 04 '18 04:01 timnolte

@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.

Quasic avatar Jan 06 '18 06:01 Quasic

@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.

timnolte avatar Jan 06 '18 13:01 timnolte

yes, i have tried according to the wiki page. it seems chromeos doesnt expose sdcard as normal andoird device.

On Mon, Jan 1, 2018 at 7:41 PM S D Rausty [email protected] wrote:

@liuchang0920 https://github.com/liuchang0920 Are you familiar with https://termux.com/storage.html this information about setting up storage in Termux? Ensure that storage permission is granted for the app.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/termux/termux-app/issues/506#issuecomment-354691775, or mute the thread https://github.com/notifications/unsubscribe-auth/AVCqyL098cK2AE2Wyn2AddhT2lLPrVq0ks5tGYlWgaJpZM4RBFgY .

liuchang0920 avatar Jan 06 '18 18:01 liuchang0920

@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.

Quasic avatar Jan 07 '18 05:01 Quasic