A web-based control panel for Termux that allows you to execute predefined commands on your Android device using a dynamic UI.
- 🔧 Schema-driven UI (auto-generates forms from command definitions)
- ⚙️ Dynamic command execution (no hardcoding logic)
- 📱 Mobile-friendly interface
- 🧠 Safe execution layer (validated inputs + no shell injection)
- 🎯 Supports multiple Termux API commands:
- Torch, SMS, Battery, Location
- File operations
- Notifications, Audio, Sensors
- Network utilities
- Commands are defined in "command_schema.py"
- Frontend fetches schema → builds UI dynamically
- User inputs parameters
- Backend constructs command safely
- Executes in Termux → returns output
Install dependencies:
pkg update
pkg install python termux-api
pip install flaskpython app.pyOpen in browser:
http://localhost:5000
- Only predefined commands are allowed
- No raw shell execution
- Input validation is enforced
- Avoid exposing this server publicly without authentication
"torch": {
"command": ["termux-torch", "{state}"],
"fields": {
"state": {
"type": "select",
"options": ["on", "off"]
}
}
}- Authentication system
- Command history/logs
- Background task queue
- UI enhancements (animations, better feedback)
- Remote access with proper security
This project can control device-level features. Use responsibly. Misuse can lead to data loss or unintended behavior.
Built as a learning project exploring:
- Flask backend systems
- Dynamic UI generation
- Mobile automation via Termux