GithubHelp home page GithubHelp logo

Comments (10)

 avatar commented on August 22, 2024 1

@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.

sergey1369 avatar sergey1369 commented on August 22, 2024 1

Solution add -D falg to sshd works great for me - Android 8.1 on LG/Nexus 5.x.

Here is complete check list.

  1. 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.
  1. Check permissions on startup script , you should have rwx flags everywhere.
    (nexus:~)$ ls -ld ~/.termux ~/.termux/boot /.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:
    )$ cat /data/data/com.termux/files/home/.termux/boot/start.sh

  2. Add -D to sshd (last line)
    #!/data/data/com.termux/files/usr/bin/sh
    /data/data/com.termux/files/usr/bin/sshd -D

  3. Run TermuxBoot app once,
    It needs to register boot receiver.

  4. Reboot phone.
    It should start sshd after few minutes.

from termux-boot.

sureshmnv avatar sureshmnv commented on August 22, 2024

same issue, pixel xl

from termux-boot.

silversquasher avatar silversquasher commented on August 22, 2024

same issue, Huawei p20 pro with Android 8. It can start sshd but not node-red.

from termux-boot.

nikonakoneko avatar nikonakoneko commented on August 22, 2024

Same here on Samsung A5 (2017) with LineageOS 16.0 20200309-microG-a5y17lte. Never worked

from termux-boot.

Hax4us avatar Hax4us commented on August 22, 2024

It's not working for me also Redmi Note 7 Pro

from termux-boot.

StevenSalazarM avatar StevenSalazarM commented on August 22, 2024

Did anyone find a solution? I have the same problem with a Honor 9 lite

from termux-boot.

phpsyscoder avatar phpsyscoder commented on August 22, 2024

Same here on Lava Iris

from termux-boot.

AntonSamokat avatar AntonSamokat commented on August 22, 2024

@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.

uniquecollins avatar uniquecollins commented on August 22, 2024

Its not working for my Samsung Note 8

from termux-boot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.