How To Access Sdcard Or External Storage In Termux Without Permission Denied Error

Welcome To HaX4Us


It is very common thing for Termux users but also a root of common error which is permission denied.

And it is obvious that you will try to access sdcard or external storage in termux to save your any important thing & one more noticeable thing is that the permission denied error does not come in Android 5 or before.

It means that you are here because you have Android 6.0 or later. So the only thing what you have to do is that




  • run this command in termux termux-setup-storage
hax4us
  • After then you will be prompt for permission like as below screenshot so you have to click on allow
Hax4us

Executing termux-setup-storage ensures:

  1. That permission to shared storage is granted to Termux when running on Android 6.0 or later.
  2. That an app-private folder on external storage is created (if external storage exists).
  3. That a folder $HOME/storage is created.

~/storage

The contents of the created $HOME/storage folder are symlinks to different storage folders like as given screenshot

Hax4us
In case of any query , you can ask in comment section.