Why it stayed obscure
Vendor ROMs block background autostart, and the app gives no error when it is suppressed, so most attempts fail silently.
What it actually does
Termux:Boot runs scripts from a boot directory inside Termux's home after the device finishes starting. That is enough to bring up an SSH daemon, start a sync job, launch a data collector or restore a tunnel without touching the phone. The scripts run as Termux's user, so no root is implied. Because there is no feedback, the usual practice is to have each script write a log. Whether it fires at all depends on the system's autostart policy.
Core features
- Runs scripts from the boot directory at startup
- Starts sshd or a sync job unattended
- Shares Termux's environment and packages
- No root required for the mechanism itself
Who it is for
- You keep a phone as a small server
- A sync or backup should start on power-up
- You collect data without touching the device
Before you install
Download
This edition links to F-Droid where the app is published there, and to the developer's own page otherwise. Nothing is mirrored here. If an app is offered through several channels, keep one: the signatures differ and the system will refuse to update across them.
The package name com.termux.boot is the most reliable way to
check authenticity: confirm it in the system installer before installing, then compare
the developer name with the table above.
Questions
Why did nothing run after a reboot?
Usually the system blocked the start. Allow autostart for both Termux and Termux:Boot, remove them from battery optimisation, then read the log that the script itself wrote.
Can it start a service on port 22?
It can start sshd inside Termux, which listens on a high port by default. Ports below 1024 need root, and the device must stay awake for the service to answer.