📚 Encyclopedia

Android · updated 2026-10-14

Keeping a web app and an Android app identical without a framework

androidwebviewsyncsha256content-addresseddeployno-gradle

For a content site that also ships as an Android app, the app does not need its own build of the content. Treat the web deploy as the single source: publish a manifest of every file and its hash, and have a thin native app mirror those exact bytes at those exact URLs. New content then reaches the app with no APK release, and a deploy script makes drift detectable and blockable. The encyclopedia itself works this way (web at wiki.jhampton.io, app io.jhampton.encyclopedia).

The manifest

The app side

The deploy side

Building the APK without Gradle

aapt2 compile + aapt2 link (manifest, resources, -A assets, --version-code, --min/target-sdk-version, --java gen for R.java) → javac → d8 → zip classes.dex into the APK → zipalign -p 4 → apksigner sign. About a second of tool time for a small app.

Gotchas

See also

Linked from

Sources: encyclopedia SYNC.md, tldr post #1774