A complete Termux environment for Android 16+: AI CLI integration (Claude + Gemini), Shizuku/rish elevated privileges, and Lucky Patcher extensions — all wired together with system tools and wireless ADB.
Three pillars, one toolkit:
- AI CLI — Claude and Gemini CLIs with a unified
aiwrapper, interactive chat, and AI-powered system analysis - Shizuku/rish — Full elevated-privilege shell without root: package management, system control, keepalive, Android 16 fixes
- Lucky Patcher — Advanced app patching, component analysis, and modifications via rish
Plus complete Termux setup, privilege grants, Tasker integration, and wireless/hotspot ADB.
# Clone the repository
git clone https://github.com/jecis-repos/termux-shizuku-tools.git
cd termux-shizuku-tools
# Run the setup script
chmod +x setup.sh
./setup.shai-tools/ai- Universal AI CLI wrapper (chat, scan, setup)ai-tools/claude_cli.py- Claude AI integrationai-tools/gemini_cli.py- Gemini AI integrationai-tools/ai_cli_simple.sh- One-shot installer for the AI CLIsai-tools/ai_analyze.sh- AI-powered system analyzer (uses rish)
shizuku/rish- Pre-configured rish launcher (requiresrish_shizuku.dex, see Configuration)shizuku/shizuku_control.sh- Shizuku control center (start/stop/status)shizuku/shizuku_env.sh- Environment setup (spm,sam,sdumpsys, ...)shizuku/shizuku_rish.sh- Shizuku management using rishshizuku/rish_direct.sh- Direct rish launcher (for ADB use)shizuku/rish_wrapper.sh- rish wrapper for Android 16shizuku/shizuku_advanced_fix.sh- Advanced fixes for Android 16 (phantom process killing, ...)shizuku/shizuku_keepalive.sh- Shizuku keep-alive daemonshizuku/shizuku_monitor.sh- Monitor Shizuku statusshizuku/shizuku_notify.sh- Notifications about Shizuku status
lucky-patcher/lp_ultimate.sh- Ultimate patching functionslucky-patcher/lp_advanced.sh- Advanced app modificationslucky-patcher/lp_analyze.sh- App component analyzerlucky-patcher/lucky_patcher_rish.sh- Lucky Patcher helpers via rish
system/grant_termux_privileges.sh- Enhanced permissionssystem/setup_termux_tasker.sh- Tasker integrationsystem/setup_wireless_adb.sh- Wireless ADB setupsystem/connect_adb_hotspot.sh- ADB connection over hotspotsystem/termux_complete_setup.sh- Complete Termux setup
# Setup API keys
./ai-tools/ai setup
# Use AI assistants
ai claude "Write a Python script"
ai gemini "Explain quantum computing"
# Interactive chat mode
ai chat
# AI-powered system analysis (uses rish)
./ai-tools/ai_analyze.sh./shizuku/shizuku_control.sh start
./shizuku/shizuku_control.sh status# Package management
spm list packages -3
spm disable com.example.app
# System control
sam force-stop com.example.app
sdumpsys battery# List patchable apps
./lucky-patcher/lp_ultimate.sh list-patchable
# Patch an app
./lucky-patcher/lp_ultimate.sh super-patch com.example.app- Android 7.0+ (Android 16 recommended)
- Termux (F-Droid version)
- Shizuku v13.5+
- 300MB+ free storage
Store your API keys in ~/.ai_keys:
export ANTHROPIC_API_KEY='your-key'
export GOOGLE_AI_API_KEY='your-key'Optional model overrides:
export CLAUDE_MODEL='claude-haiku-4-5' # default
export GEMINI_MODEL='gemini-3.1-pro-preview' # default- Install Shizuku from Play Store
- Start it via Wireless Debugging
- Place
rish_shizuku.dexnext toshizuku/rish(it ships with the Shizuku project and is not committed here because*.dexis gitignored) - Run
./setup.sh, then verify with./shizuku/shizuku_control.sh status
These tools are for educational and testing purposes only. Users are responsible for complying with all applicable laws and regulations. Do not use these tools on apps or systems you don't own or have permission to test.
Contributions are welcome! Please read CONTRIBUTING.md for guidelines.
This project is licensed under the MIT License - see LICENSE file for details.
- Shizuku by RikkaApps
- Termux development team
- Anthropic (Claude API)
- Google (Gemini API)
- All contributors
Note: This repository is not affiliated with Lucky Patcher, Shizuku, or any mentioned apps.