Skip to content

About

fix-termux-limits – A simple Bash script to remove Android background restrictions and increase process limits for Termux.

Resources

Stars

22 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Fix Termux Limits

A small Bash script to optimize Termux on Android devices by removing background restrictions and increasing the maximum process limit. This is useful for developers and power users who want Termux to run reliably in the background without Android killing its processes.

Features

  • Connect to an Android device via ADB over Wi-Fi.
  • Increase max_phantom_processes to allow more background processes.
  • Remove battery optimizations (Doze mode) for Termux.
  • Allow Termux to run in the background and use wakelocks.
  • Disable idle state for Termux to prevent app suspension.

Requirements

  • Android device with Termux installed.
  • ADB installed on your Termux:
yes | pkg install android-tools
  • Wireless debugging enabled on your Android device.
  • If using wireless debugging, make sure your device is paired first:
adb pair <IP:PORT> <CODE>

Usage

  1. Clone this repository:
git clone https://github.com/DevCoreXOfficial/fix-termux-limits.git
  1. Change to the cloned directory:
cd fix-termux-limits
  1. Run the script:
bash fix-termux-limits.sh
  1. Enter your device IP and port when prompted (IP:PORT format).

The script will automatically connect to your device via ADB and apply all optimizations.


Notes

This script requires ADB access to your device. Make sure you have debugging enabled.

Use with caution: modifying device configuration settings may affect other apps if not used properly.

Tested on Termux and Android 12+, may work on earlier versions.


License

This project is licensed under the MIT License. See the LICENSE file for details.

About

fix-termux-limits – A simple Bash script to remove Android background restrictions and increase process limits for Termux.

Resources

Stars

22 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages