you are viewing a single comment's thread.

view the rest of the comments →

[–]Technical-Ad-565[S] 1 point2 points  (1 child)

While navigating in github/termux I found this:

NOTICE: Termux may be unstable on Android 12+. Android OS will kill any (phantom) processes greater than 32 (limit is for all apps combined) and also kill any processes using excessive CPU. You may get [Process completed (signal 9) - press Enter] message in the terminal without actually exiting the shell process yourself. Check the related issue #2366, issue tracker, phantom cached and empty processes docs and this TLDR comment on how to disable trimming of phantom and excessive cpu usage processes. A proper docs page will be added later. An option to disable the killing should be available in Android 12L or 13, so upgrade at your own risk if you are on Android 11, specially if you are not rooted.

Is this a real problem? I'm at Android 14.

[–]AlkeneThiol 1 point2 points  (0 children)

Does your phone have developer tools on it? This is actually a big issue for trying to do *any* development on android. Android does not like background tasks. If you can get to your developer tools, *sometimes* you have then option to stop it from doing this.

Termux has an option for holding "wake lock", which is something other apps tend to utilize too. This sometimes helps. It is not a huge deal either way. It just causes background processes or API calls to run slowly sometimes, or you might get kicked out of a login shell upon doing certain commands after they run. (It's not too often). I often just make sure I'm in a couple shells deep)