📇External Sdcard Access
A guide to access content of external sdcard in termux
Prerequisites
Android version 10 or above and termux installed.
A PC with
android-platform-tools
installed. or any adb OTG app, is REQUIRED.Also, device must be connected to pc and ready for usb debugging
It requires API LEVEL 29+, so it will not work for devices with android 9 or below.
only Android versions ( 11, 12, 13 ) are tested and working fine
Process
Assuming the user has already configured platform tools and adb in pc and connected device successfully.
Granting permissions to termux
This method involves granting permission WRITE_EXTERNAL_STORAGE
and READ_EXTERNAL_STORAGE
to termux app with adb explicitly, so that termux access external storage.
Then you need to find out the external sdcard location to change the directory. this can be done via df Usually, all storage devices are mounted under `/storage` directory, so using this
It will show all mounted at /storage
. Now the one which is in pattern line `716D-83Z0` is your sdcard. Or you could use Zarchiver instead to find it's codename. Then change your directory to there and bingo you're on your external storage in termux.
Last updated