Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.
feat(skills): add termux_proot skill
Gotcha Contributor85dace2c1811
diff --git a/app/src/main/assets/skills/termux_proot.json b/app/src/main/assets/skills/termux_proot.jsonnew file mode 100644index 0000000..a907528--- /dev/null+++ b/app/src/main/assets/skills/termux_proot.json@@ -0,0 +1,9 @@+{+ "id": "termux_proot",+ "targetPackageNames": ["com.termux"],+ "name": "Termux Proot / Full Linux",+ "description": "When Termux's bionic/busybox isn't enough — using proot-distro for a full Debian/Ubuntu/Alpine user-space.",+ "requiresTools": ["run_termux_command"],+ "keywords": ["proot", "debian", "ubuntu", "alpine", "glibc", "distro", "tsu", "root"],+ "instructions": "1. If a user asks for a tool that has no Termux package, or a `.deb` that won't install because of glibc errors, use proot-distro. It is the supported escape hatch — bionic/busybox is not a real Linux sysroot.\n2. Install: `pkg install proot-distro -y && proot-distro install debian` (or `ubuntu`, `alpine`, `fedora`, `archlinux`).\n3. Run inside a single call: `proot-distro login debian -- bash -c \"your command here\"`. The `-- bash -c \"...\"` form is the only one that works through run_termux_command because the bridge is a single command line. Avoid `proot-distro login <distro>` with no command — it opens an interactive shell and will hang until timeout.\n4. Performance: proot uses ptrace and adds ~10x syscall overhead. Long compile jobs (kernel, chromium, firefox) become impractically slow inside proot. Prefer small, focused commands inside proot over a multi-hour build.\n5. Not a security boundary: proot is user-space emulation. It does NOT grant real root. Anything that does `setuid(0)` inside proot still fails. Do not promise \"root access\" via proot.\n6. Termux's own proot vs pkg-side proot: `pkg install proot` is the binary; `pkg install proot-distro` is the wrapper for distro images. They are two different packages. The wrapper is what most users want.\n7. Root-on-device alternative: `pkg install tsu -y` (or `tsu` from a community package), then `tsu -c \"command\"` runs with real root via Magisk/SuperSU. This requires the device to be rooted AND the user to have granted Termux root via the Magisk/SuperSU prompt. Do not assume either.\n8. Telling the user: if a task takes more than 10 minutes, say so BEFORE starting. Do not promise \"Debian will work\" without first confirming the user is on a recent Termux (>= 0.118), which is the F-Droid / GitHub build.\n9. Distro size: proot-distro images are 200MB-1GB downloaded on first install. The first `proot-distro install <distro>` should be raised to timeout_seconds=600. Subsequent launches are fast (image is cached).\n10. Sharing files with proot: proot-distro bind-mounts Termux's home by default, so files in `$HOME` are visible. `/sdcard/Download` is also visible. Outside those, the filesystem is partitioned.\n11. systemd is not available inside proot. Services inside proot-boot would need to be started manually per call. Do not promise a \"real Linux server\" experience."+}