Comments (10)
@koalaeagle @SDRausty @silversquasher Did you disable the battery optimizations for Termux and Termux:Boot. Which one is/ are both required? (to inform other users about that/ show a permission request to disable the optimizations if possible)
from termux-boot.
Solution add -D falg to sshd works great for me - Android 8.1 on LG/Nexus 5.x.
Here is complete check list.
- Disable Battery Optiomization for Termux and Termux.Boot.
Settings -> Apps & Notifications -> Adavanced -> Special app access -> Battery optiomization -> Not Optimized
Should be listed
- Termux
- Termux.Boot
If not, set "Do not optimize" for them.
Other phones: may need to repeat this step with their policy/battery/security manager.
-
Check permissions on startup script , you should have rwx flags everywhere.
(nexus:~)$ ls -ld ~/.termux ~/.termux/boot/.termux/boot/start.sh)$ cat /data/data/com.termux/files/home/.termux/boot/start.sh
drwx------ 3 u0_a108 u0_a108 4096 Sep 19 22:19 /data/data/com.termux/files/home/.termux
drwx------ 2 u0_a108 u0_a108 4096 Sep 19 23:08 /data/data/com.termux/files/home/.termux/boot
-rwx------ 1 u0_a108 u0_a108 222 Sep 20 13:54 /data/data/com.termux/files/home/.termux/boot/start.sh
(nexus: -
Add -D to sshd (last line)
#!/data/data/com.termux/files/usr/bin/sh
/data/data/com.termux/files/usr/bin/sshd -D -
Run TermuxBoot app once,
It needs to register boot receiver. -
Reboot phone.
It should start sshd after few minutes.
from termux-boot.
same issue, pixel xl
from termux-boot.
same issue, Huawei p20 pro with Android 8. It can start sshd but not node-red.
from termux-boot.
Same here on Samsung A5 (2017) with LineageOS 16.0 20200309-microG-a5y17lte. Never worked
from termux-boot.
It's not working for me also Redmi Note 7 Pro
from termux-boot.
Did anyone find a solution? I have the same problem with a Honor 9 lite
from termux-boot.
Same here on Lava Iris
from termux-boot.
@ghost @sergey1369 Thanks.
Disabling battery optimization for Termux:Boot
solved problem for auto start of it on Xaiomi Redmi 4A
with Android 7
.
For Redmi 7A
with Android 10
Termux:Boot
works normally without disabling battery optimization for it.
from termux-boot.
Its not working for my Samsung Note 8
from termux-boot.
Related Issues (20)
- Universal Installed then opened and crashed. Arm64 would not install HOT 4
- Termux cannot find link to open ssh HOT 1
- use it to enhance termux-service HOT 2
- GH build expired HOT 1
- Termux:TermuxService: Failed to execute new TermuxTask command HOT 7
- Termux:boot not working on android 13 HOT 3
- Termux boot 0.7 not starting: workaround using Tasker HOT 1
- Security warning from Google HOT 2
- ~/.termux/boot/ 中的文件没有被运行 HOT 2
- virus in termux:boot? HOT 2
- Termux:Boot fails on MIUI 12 Android 10 HOT 1
- Boot strap error HOT 1
- Won't install app termux HOT 1
- Need built in graphical vision HOT 2
- How to attach a debug report to termux
- Niosis
- won't install on Android 14 on Pixel 7a HOT 1
- python: can't open file '/data/data/com.termux/files/home/mask.py': [Errno 2] No such file or directory
- الجزائر
- حي 16 مسكن HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termux-boot.