Repository navigation
ARCHITECTURE
Languages: English | العربية | Čeština | Deutsch | Español | فارسی | Français | हिन्दी | Bahasa Indonesia | Italiano | 日本語 | 한국어 | Nederlands | Polski | Português | Русский | Svenska | ไทย | Türkçe | Українська | Tiếng Việt | 中文
Languages: English · العربية · Čeština · Deutsch · Español · فارسی · Français · हिन्दी · Bahasa Indonesia · Italiano · 日本語 · 한국어 · Nederlands · Polski · Português · Русский · Svenska · ไทย · Türkçe · Українська · Tiếng Việt · 中文
VDInstaller is a thin WebUI over a root shell engine. Nothing in the UI has privilege, every privileged action is one shell call that returns one JSON object.
WebUI (webroot/) scripts/ Android
index.html / scripts.js --> helper.sh <verb> <b64(JSON)>
ksu.exec(...) | short verbs run inline
| long ops detach -> worker.sh --> pm install-create
| (session) install-write
progress polling <-- progress-<opid>.json <----- set_prog install-commit
-
webroot/- vanilla JS WebUI (no framework), light/dark, 22 languages. It calls the engine through the KernelSU WebUI bridge (ksu.exec) and parses the JSON reply. -
scripts/common.sh- the shared library sourced by both scripts: ABI/PATH resolution, thepm/dumpsys/fwwrappers (clean env so the bundled Termux libs never shadow ART's), the JSON andjqhelpers, and the ABX-awarexml_edit. -
scripts/helper.sh- the WebUI contract: one JSON line per call. Short verbs (version, config, browse, scan) run inline, long ones (install, uninstall) detach a worker and return anopid. -
scripts/worker.sh- the detached install engine: the four install modes, the verifier toggle, the install-source spoof, and the package-manager session API. It writes progress to a file the WebUI polls, and survives the WebUI being closed (setsid, and it escapes the app freezer).
-
Already root. No "grant su" prompt and no
sucompattoggling, the engine runs as root from the module and callspm/settingsdirectly. -
Session installs. All modes use
pm install-create/install-write/install-commit, so split apps install correctly and the install source (-i) is set at session time. -
ABX-aware. The
packages.xmlinitiator spoof checks for theABX\0binary-XML magic, decodes, edits, re-encodes, round-trips to validate, backs up byte-exact and swaps atomically, the live file is never touched unless every step passes. -
Reboot-free. A self-contained WebUI module with nothing to mount:
customize.shcopies it into the active modules dir so it works the moment it is flashed. - Flashless updates. The vendored VDLU engine updates the module by downloading only the changed, content-addressed, ed25519-signed files - no full reflash.
- Detached. Long operations run outside the webview, closing the WebUI never interrupts them.
- POSIX
shon the device (sh -npasses, no bashisms beyondlocal, noawkdependency). -
pm/dumpsys/settings/cmdare the only framework tools used, all via/system/bin. - Bundled binaries (
jq,abx2xml/xml2abx) are optional for the common path and carry provenance; the ABX converter falls back to the device's own/system/bin/abx2xmlwhere present.
This documentation was generated with Claude (Anthropic) and is maintained by VD171. Corrections and improvements are welcome, see CONTRIBUTING.md.