The usual problem - I can't get Termux:Boot to work at all (but it used to).
I'm running Termux on an Umidigi Bison Android 11 phone.
It (as in the phone) threw a wobbly a few days ago and I had to reset to factory defaults and thus reinstall apps (fortunately not many).
Having reinstalled both Termux and Termux:boot from F-Droid I can't get Termux:Boot to work for me. Termux is fine and I can start both the things I want to start (sshd and syncthing) OK manually. I can simply run ~/.termux/boot/rc.local and the things in rc.local start OK.
As I said it all used to work OK so I guess I must just have not done something necessary but I can't see what at the moment.
When the instructions say 'run Termux:Boot' does that simply mean clicking on the Termux:Boot icon so that the description appears? I've done that. In the 'About' section for Termux it confirms that both Termux and Termux:Boot have been installed from F-Droid and they have the same certificate key etc.
So, what might be wrong and how can I diagnose things?
Ah, maybe I have misunderstood what's supposed to happen.
If I run termux on the phone (i.e. bring up a terminal window) then sshd and syncthing get started. Is this what's supposed to happen? ... or should they have got started regardless of whether I run Termux?
What does ~/.termux/boot/rc.local contain? Make sure it has a working shebang. Is the exe bit set on the script?
It should run when android declares that device boot is done, and that might be up to a minute or so after you have already unlocked and started using the device
See below:-
u0_a165@bison$ pwd
/data/data/com.termux/files/home/.termux/boot
u0_a165@bison$ ls -l
total 8
-rwxrwxr-x. 1 u0_a165 u0_a165 118 Nov 27 2023 rc.local
u0_a165@bison$ more rc.local
#!/data/data/com.termux/files/usr/bin/sh
termux-wake-lock
sshd
syncthing -no-browser -logflags=3 >~/tmp/syncthing.log
u0_a165@bison$
That all looks about right to me.
I'll try waiting longer after firing up my phone. However I'm confused as to why it runs when I start Termux but appears not to run otherwise.
Enable AutoStart for temrux and boot app in android settings.
https://dontkillmyapp.com/
Bonjour,
Oui c'est ça que j'ai relevé :
Same issue here on Android 15. Termux:Boot installs but doesn't launch at boot. No error, just silent failure. Installed via F-Droid. Any workaround?
J’ai téléchargé Termux:Boot via F-Droid sur Android 15. L’installation reste bloquée : pas de bouton “Installer”, redirection vers la documentation. J’ai désactivé Play Protect, autorisé les sources inconnues, mais rien n’y fait.