Template
README now carries only the icon, TL;DR, description and features; the technical sections live in docs/. tools/icon_png.py renders images/icon.svg to a square PNG (512x512 by default, --resolution N). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.8 KiB
1.8 KiB
Device setup and ADB automation
Device prerequisites
- exteraGram 12.5.1+.
- In-app: Preferences → Plugins → enable the plugin engine, then enable developer mode.
- USB debugging enabled, device authorized (
adb devices).
Release-build APKs disallow adb run-as, so you cannot adb push a file straight into the
app's private plugin directory. The on-device dev server (tools/devclient.py,
scripts/deploy.sh) is the actual install path — it talks to the running app over a TCP
socket forwarded with adb forward, and the app writes the file into its own storage.
ADB automation
All scripts live in scripts/, are runnable from any working directory, and honor the
standard ANDROID_SERIAL env var for device selection.
scripts/adb-connect.sh [--debug]— starts adb, waits for the device, (re)creates thetcp:42690port forward (andtcp:5678with--debug), pings the dev server.scripts/deploy.sh [--release] [--enable] [--no-connect]— bundles, connects, writes the plugin to the device, optionally enables it, reloads it.scripts/watch.sh [deploy args…]— watchessrc/andplugin.json, redeploys on change (usesinotifywaitif available, otherwise polls).scripts/logs.sh [-c] [-t] [-g PATTERN]— streams logcat for the running app (-tfor the raw Chaquopy stdio tags,-gto grep,-cto clear first).scripts/debug.sh start|stop [--platform vscode|pycharm]— forwards the debugger port and tells the dev server to start/stop the in-app debugger. Requiresdebugpy(vscode) orpydevd-pycharm(pycharm) present in the app's Python runtime — add it torequirementsinplugin.jsonif it's missing.scripts/fetch-sdk-stubs.sh [--beta]— downloads the latest SDK type stubs intostubs/for editor autocomplete.