Skip to content

FirdausNossro87/termux-optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Termux Beast Optimizer

License: MIT Shell Script Termux

Transform your Android device into a high-performance powerhouse with intelligent auto-tuning!

A comprehensive, intelligent optimization script for Termux on unrooted Android devices. Automatically detects your device capabilities and applies tailored optimizations for maximum performance.


✨ Features

πŸ€– Smart Device Detection

  • Auto-detects RAM, CPU cores, storage capacity
  • Identifies Android version and device model
  • Classifies device tier (HIGH/MID/LOW) for optimal tuning
  • Architecture-aware optimization

πŸ’Ύ Memory Optimization

  • Dynamic swap file creation based on RAM
  • Smart process priority management
  • Automatic cache clearing
  • Memory leak prevention

🌐 Network Optimization

  • DNS speed testing and optimization
  • Real-time network monitoring
  • Connection quality analysis
  • Latency reduction tools

⚑ Performance Tuning

  • Deep system optimization
  • Resource usage monitoring
  • Background process management
  • Storage optimization

πŸ”‹ Battery Management

  • Battery-aware optimizations
  • Power-saving mode
  • Automatic low-battery actions
  • Resource throttling when needed

πŸ”„ Auto-Maintenance

  • Scheduled optimization (every 6 hours)
  • Daily cleanup tasks (3:00 AM)
  • Weekly update checks
  • Auto-cleanup when storage exceeds 90%

πŸ› οΈ Development Environment

  • Python, Node.js, Rust, Go
  • C/C++ toolchain
  • Essential utilities
  • Version control (Git)

πŸ”’ Network & Security Tools

  • nmap, netcat, traceroute
  • DNS utilities
  • Network diagnostics
  • Connection monitoring

πŸ“‹ Prerequisites

  • Termux installed from F-Droid (NOT Google Play)
  • Android 7.0+ (recommended)
  • At least 500MB free storage
  • Active internet connection

Optional (Recommended)

  • Termux:API - For battery monitoring and device info
  • Termux:Widget - For quick access shortcuts

πŸš€ Installation

Quick Install (One-Line) - Recommended

bash <(curl -fsSL https://raw.githubusercontent.com/YOUR_USERNAME/termux-optimizer/main/install.sh)

Alternative Methods

Method 1: Direct Download

curl -fsSL https://raw.githubusercontent.com/YOUR_USERNAME/termux-optimizer/main/termux-beast-optimizer.sh -o optimizer.sh
chmod +x optimizer.sh
./optimizer.sh

Method 2: Git Clone

pkg install git
git clone https://github.com/YOUR_USERNAME/termux-optimizer.git
cd termux-optimizer
bash termux-beast-optimizer.sh

Method 3: Manual Download

pkg install wget
wget https://raw.githubusercontent.com/YOUR_USERNAME/termux-optimizer/main/termux-beast-optimizer.sh
chmod +x termux-beast-optimizer.sh
./termux-beast-optimizer.sh

🎯 Usage

First Time Setup

Simply run the script and let it optimize your device:

bash termux-beast-optimizer.sh

The script will:

  1. Analyze your device capabilities
  2. Install essential packages
  3. Configure optimizations
  4. Set up auto-maintenance
  5. Create utility commands

Installation time: 5-15 minutes (depending on internet speed)

Essential Commands

After installation, use these powerful commands:

Command Description
optimize Quick performance boost (cleanup + tuning)
sysinfo Detailed system information report
cleanup Free up storage space intelligently
performance-tune Deep system optimization
sysmon Real-time resource monitoring (CPU/RAM/Storage)
netmon Network connection monitor
netopt Find and set fastest DNS server
battery Enable battery saver mode
backup-termux Backup your Termux environment
speedtest Test internet speed

Advanced Usage

Real-Time Monitoring

# Monitor system resources
sysmon

# Monitor network performance
netmon

# Check system status
sysinfo

Performance Optimization

# Quick optimization
optimize

# Deep optimization
performance-tune

# Network optimization
netopt

Maintenance

# Clean up storage
cleanup

# Battery management
battery

# Backup everything
backup-termux

πŸ“Š Performance Improvements

Expected performance gains based on device tier:

πŸ”₯ High-End Devices (6GB+ RAM)

  • βœ… Up to 40% faster app launches
  • βœ… Enhanced multitasking capabilities
  • βœ… Optimized for heavy workloads
  • βœ… Maximum throughput

⚑ Mid-Range Devices (3-6GB RAM)

  • βœ… Up to 50% faster app launches
  • βœ… Better memory management
  • βœ… Balanced performance/efficiency
  • βœ… Reduced lag and stuttering

πŸ’ͺ Entry-Level Devices (<3GB RAM)

  • βœ… Up to 60% faster app launches
  • βœ… Significantly improved responsiveness
  • βœ… Maximum efficiency mode
  • βœ… Extended battery life

πŸ”§ What Gets Installed

Core Packages

  • Essential utilities (wget, curl, git, vim, nano)
  • System tools (htop, tree, zip, tar)
  • SSH client and Termux API tools

Development Environment

  • Python + pip + essential packages
  • Node.js + npm + global tools
  • Rust + cargo
  • Go compiler
  • C/C++ toolchain (clang, make, cmake)

Network Tools

  • nmap, netcat, iproute2
  • DNS utilities, traceroute, whois
  • DNSCrypt for secure DNS

Shell Enhancements

  • ZSH shell with Oh My ZSH
  • Syntax highlighting
  • Auto-suggestions
  • Custom aliases and functions

Multimedia

  • FFmpeg for media processing
  • ImageMagick for image manipulation
  • Audio playback tools

πŸ€– Auto-Maintenance Schedule

The optimizer sets up automatic maintenance tasks:

Task Schedule Description
Full Optimization Every 6 hours Performance tuning + cleanup
Deep Cleanup Daily at 3:00 AM Package cache + temp files
Update Check Weekly Check for package updates
Emergency Cleanup When storage > 90% Automatic space freeing
Battery Check Continuous Auto-enable power saving mode

πŸ“ File Structure

~/
β”œβ”€β”€ bin/
β”‚   β”œβ”€β”€ sysinfo              # System information tool
β”‚   β”œβ”€β”€ cleanup              # Storage cleanup utility
β”‚   β”œβ”€β”€ auto-cleanup         # Automatic cleanup trigger
β”‚   β”œβ”€β”€ backup-termux        # Backup utility
β”‚   β”œβ”€β”€ performance-tune     # Performance optimizer
β”‚   β”œβ”€β”€ battery-saver        # Battery management
β”‚   β”œβ”€β”€ resource-monitor     # Real-time monitor
β”‚   β”œβ”€β”€ net-monitor          # Network monitor
β”‚   β”œβ”€β”€ optimize-network     # DNS optimizer
β”‚   └── auto-maintenance     # Scheduled maintenance
β”œβ”€β”€ .termux/
β”‚   └── termux.properties    # Optimized Termux settings
β”œβ”€β”€ .termux-startup.sh       # Smart startup script
└── optimization-report.txt  # Installation report

🎨 Customization

Modify Auto-Maintenance Schedule

crontab -e
# Edit the scheduled tasks to your preference

Adjust Performance Settings

Edit the optimization scripts in ~/bin/:

nano ~/bin/performance-tune

Custom Aliases

Add your own aliases to ~/.bashrc or ~/.zshrc:

echo "alias myalias='my command'" >> ~/.bashrc

⚠️ Troubleshooting

Script fails to run

# Ensure you have execution permission
chmod +x termux-beast-optimizer.sh

# Update Termux packages first
pkg update && pkg upgrade

Storage permission issues

# Grant storage access
termux-setup-storage

Package installation failures

# Update package lists
pkg update

# Try installing individual packages
pkg install <package-name>

Script takes too long

  • This is normal for first run (5-15 minutes)
  • Depends on internet speed and device performance
  • Subsequent optimizations are much faster

πŸ” Security & Privacy

  • βœ… No root required - Safe for all devices
  • βœ… No data collection - Everything runs locally
  • βœ… Open source - Review the code yourself
  • βœ… No external dependencies - Uses only official Termux repos
  • βœ… No ads or tracking - Completely free

🀝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Ideas for Contributions

  • Additional optimization techniques
  • Support for more architectures
  • New utility scripts
  • Performance improvements
  • Bug fixes and testing
  • Documentation improvements

πŸ“ License

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


πŸ™ Acknowledgments

  • Termux - The amazing terminal emulator
  • Oh My ZSH - Shell enhancement framework
  • The open-source community

πŸ“ž Support


⭐ Star History

If this project helped you, please consider giving it a star! ⭐


πŸš€ Roadmap

  • GUI configuration tool
  • One-click restore functionality
  • Custom optimization profiles
  • Performance benchmarking
  • Cloud backup integration
  • Multi-language support

Made with ❀️ for the Termux community

Transform your Android device into a development beast! πŸ”₯

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages