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

[Feature]: Ability to inject `init.sh` or `boot.sh` into the APK

Open naratteu opened this issue 4 months ago • 1 comments

Feature description

Just like apt_info_script.sh is included in the resource path of the APK, I would like to embed a shell script that automatically runs either on first launch or every time Termux starts. This way, simply installing the APK would result in a fully customized Termux environment being set up automatically.

Additional information

https://github.com/termux/termux-packages/discussions/9586

naratteu avatar Aug 08 '25 05:08 naratteu

Feature description

Just like apt_info_script.sh is included in the resource path of the APK, I would like to embed a shell script that automatically runs either on first launch or every time Termux starts. This way, simply installing the APK would result in a fully customized Termux environment being set up automatically.

Additional information

termux/termux-packages#9586

Termux boot app and cronie can do that

Download and install

https://github.com/termux/termux-boot

Install cronie in termux

pkg install cronie

Run daemon

crond

add your scheduler

crontab -e

xiv3r avatar Aug 26 '25 06:08 xiv3r

termux-setup-storage

kb3131366-arch avatar Dec 10 '25 17:12 kb3131366-arch

ip addr

kb3131366-arch avatar Dec 10 '25 17:12 kb3131366-arch