Overview
QuitLock has two parts and no server.
| Part | Language | Role |
|---|---|---|
| Android app | Kotlin | Device owner. Applies and enforces policy. Shows status and countdowns. |
CLI (quitlock) | Rust | Sets the phone up, keeps the keys, and sends signed changes to the phone. |
They meet in two places:
- The CLI connects to the app over USB for each command: over adb when the phone has it on, otherwise over the USB accessory. The phone answers while it is unlocked, with nothing to tap. See Connecting.
- A bundle is one change: a config, an app update, a key, an exit. Every change is a bundle, whether it arrives over USB or as an imported file. It is signed on a computer, approved on the phone with a PIN or password, or both. See Authorisation and, for the format, Bundles.
The user should never have to think about bundles: they plug the phone in, run a command, and the change is sent. Files are a fallback.
No network
There is no server and no network protocol. Everything goes over the USB cable. The one exception is on the computer: quitlock update --github (and provision --github) downloads a release APK from the project’s GitHub releases. The phone never contacts anything, and a downloaded APK goes through the same signed, delayed update path as any other.
The app holds Android’s INTERNET permission for a single platform call, explained in Invariants (number 4).
Who it defends against
The user themselves, during an urge, holding both the phone and the computer. QuitLock does not try to be unbreakable. It tries to make every way out slow, visible and deliberate. The threat model goes through every way out.
Keys and the history
- Keys are Ed25519 and live on the computer, in files encrypted with a key derived from a PIN or password (Argon2id, then XChaCha20-Poly1305). The plaintext key never touches disk. Each key also has a recovery phrase: its 32-byte seed as 24 BIP-39 words, which rebuild it on any computer. The phone stores public keys only. Format: Key files.
- The phone keeps an event log of every change to QuitLock itself, each entry carrying the hash of the one before. It records nothing about browsing or app use: an app appears only when QuitLock acts on it. The phone keeps the newest 5000 entries. Format: Event log.
Out of scope for version 1
- On-device image or screen content detection
- A local filtering VPN, or system-wide custom domain lists
- Hardware key attestation of the installed build
- Managed browsers other than Chrome
- iOS
- Any network feature, except the CLI’s release download