Skills von pixel: software-development/android-debugging-from-termux

This commit is contained in:
2026-11-08 14:36:58 +01:00
parent ce916c746a
commit 6b28139c1f
2 changed files with 30 additions and 0 deletions
@@ -27,6 +27,11 @@ Key context that is easy to get wrong:
exist — any tool that needs `sh` (most Java-based `app_process` wrappers: `content`,
`cmd` on some builds) silently fails with "cannot execute: required file not found".
- `logcat` works fine via absolute path.
- Hermes exports `LD_LIBRARY_PATH` pointing at its bundled runtime libs; Termux's own `python`/`pip` then load a mismatched libpython (`dlopen failed: cannot locate symbol _PyType_AllocNoTrack`). Run Termux Python tools with `env -u LD_LIBRARY_PATH …` (or `unset LD_LIBRARY_PATH` first in the command). Plain `python` in PATH is Hermes's venv (no pip) — use `/data/data/com.termux/files/usr/bin/python`.
- pip installs that compile Rust wheels (pydantic-core, cryptography) take 5–10 min on-device: start them with `terminal(background=true, notify=true)` and log to a file, because a foreground timeout kills pip mid-build.
## Security / spyware check (MVT)
Install MVT into its own venv, check app IDs against the IOCs right away (works without ADB), then do the full `check-adb` once wireless debugging is paired (§4). Recipe and the IOC matcher are in `references/mvt-spyware-check.md`. Report to the user in German plain text: IOC hits, unknown-installer apps worth a look, and what was NOT covered yet.
## Tailscale / tailnet connectivity
- Non-root Termux tailscaled usually runs `--tun=userspace-networking` → proxy-only (SOCKS5/HTTP on localhost); stock Android browsers don't use local proxies, so browser access to tailnet names needs the official Tailscale app (real VpnService) or a TUN-capable proxy client.