📚 Encyclopedia

Android · updated 2026-11-02

A self-hosted F-Droid repository and APK catalog

androidf-droidfdroidserverapkcatalogsystemd-timer

An F-Droid repository is just a directory of APKs plus a signed index that the F-Droid client polls. Hosting one gives every sideloaded app update notifications through a single client, and the same index can drive a plain web catalog page. Justin's lives at https://apps.jhampton.io (catalog) and https://apps.jhampton.io/fdroid/repo (repo); source ~/dev/apps.

How it is built (pull model)

Nothing in the individual apps' deploy scripts knows about the catalog. Instead: 1. update.sh rsyncs each app's live APK from wherever its own deploy put it on the server (list in apps.tsv) into repo/<package>_<versionCode>.apk. 2. fdroid update (fdroidserver 2.4.5 in a Python venv) rebuilds and signs the index. 3. A small script renders the catalog page from that same index. 4. rsync the repo and page back to the server's docroot.

A systemd user timer runs it every 15 minutes and exits early when no APK changed; run it by hand after a deploy for instant publishing, or with --force after metadata/page changes. Each app also gets a stable "newest build" URL, /<slug>.apk, as a symlink into the repo. Keeping two versions per app costs a few hundred MB.

Adding the repo on a phone

Share the repo URL plus its signing-key fingerprint, ideally as an fdroidrepos:// link or QR code on the catalog page. The client pins the fingerprint.

The repo signing key

keystore.p12 + config.yml (both gitignored) sign the index. Losing them means every phone must remove and re-add the repo. Keep a server-side backup (here /home/justin/backups/apps-fdroid-signing/). Check an index signature with jarsigner -verify.

Gotchas

See also

Linked from

Sources: apps memory (infra-apps-catalog-fdroid), tldr post #1725, map/tokay/phone memory (2026-10), phone memory (0.1.2), compass memory