udroid docs
  • 🛸udroid-landing
    • 🐧udroid
      • ⚠️Disclaimer
    • 📖Installation & Usage
    • 🖥️Display
      • setting up termux-x11
    • 👩🏻‍🔧Tips & Tricks
      • 🦊Fixing Firefox Sound
      • 📇External Sdcard Access
      • 🔊Audio
    • 💳Credits
      • 💀The End
  • 🥷using udroid
    • 🔓Non-root Users
  • SUITES
    • Ubuntu 25.04
    • Ubuntu 24.10
    • Ubuntu 24.04 LTS
    • Ubuntu 22.04 LTS
    • Ubuntu 20.04 LTS
    • EOL suites
      • Ubuntu 23.10
      • Ubuntu 23.04
      • Ubuntu 22.10
      • Ubuntu 21.10
      • Ubuntu 21.04
Powered by GitBook
On this page
  • Prerequisites
  • Process
  • Granting permissions to termux

Was this helpful?

Edit on GitHub
  1. udroid-landing
  2. Tips & Tricks

External Sdcard Access

A guide to access content of external sdcard in termux

PreviousFixing Firefox SoundNextAudio

Last updated 1 year ago

Was this helpful?

Prerequisites

  • Android version 10 or above and termux installed.

  • A PC with installed. or any adb OTG app, is REQUIRED.

  • Also, device must be connected to pc and ready for

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.

adb shell pm grant com.termux android.permission.READ_EXTERNAL_STORAGE
adb shell pm grant com.termux android.permission.WRITE_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

df | grep /storage | cut -d "/" -f 4-

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.

🛸
👩🏻‍🔧
📇
android-platform-tools
usb debugging