Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Building

scripts/build.sh builds the CLI and the app into dist/, with a SHA256SUMS file:

scripts/build.sh                  # CLI and dev APK
scripts/build.sh cli              # CLI only
scripts/build.sh apk              # dev APK only
scripts/build.sh apk --release    # release APK, unsigned (signed releases come from CI)
scripts/build.sh --help           # all options: --version-code, --version-name, --target

It needs Rust for the CLI, and a JDK (17 or newer) and the Android SDK for the app. The SDK is found through ANDROID_HOME, ANDROID_SDK_ROOT, android/local.properties or ~/Android/Sdk. The book needs mdbook 0.5: mdbook serve docs shows it while you edit.

Dev and release builds

Dev buildRelease build
Package IDdev.t342.quitlock.devdev.t342.quitlock
SigningThe local debug keyThe release key, held only in CI’s secrets
testOnlytruefalse
Instant removal and developer toolsPresent (src/debug/)Absent
adb while armedLeft onOff except while USB debugging is allowed on the phone (5 minutes)
Arming without Chrome or an enrolled keyAllowedRefused

The release certificate’s SHA-256 is compiled into the release CLI (QUITLOCK_RELEASE_CERT_SHA256 at build time). A CLI built without it provisions dev builds only, and says so. Builds aim to be reproducible, so anyone can check a release against the source (Releasing).