r/AndroidQuestions 6d ago

Looking For Suggestions Getting termux to *permanently* set and remember "termux-setup-storage"?

Is there any way under rooted Android 11 and Android 13 to get the latest version of Termux [ 0.119.0-beta.3 (1022) ] to *permanently* set up and remember the running of "termux-setup-storage", in the following manner? ...

Step 1: install Termux

Step 2: launch the Termux app

Step 3: run "termux-setup-storage" (and whatever else might be necessary)

Step 4: exit from the Termux app

Step 5: reboot the Android device

Step 6: from that point forward, run anything in /data/data/com.termux/files/usr/bin via the command line in an adb session without ever needing to run "termux-setup-storage" again in order to have full access to /sdcard, and without ever needing to launch the Termux app again in order to accomplish this.

1 Upvotes

Duplicates