Changelog
QuitLock was built in milestones. Each entry says what it added; the reasons for choices along the way are in Decisions, and what is still unchecked in Open items. The full record is in the git history.
15. Fixes from the first phone test (2026-12-01)
The first armed test on a real phone (Android 13) went badly; these are the fixes. Decisions has the reasons.
- No more sessions, and no tap. A command plugs in, connects, works and disconnects. The phone answers while it is unlocked, and says so when it is locked. Over adb the CLI wakes the app with a broadcast only the shell can send; over the USB accessory a screenless activity takes the accessory. Connection protocol 2: the phone ends a connection with a
BYEthat says why. - The CLI no longer hangs. It used to wait 5 minutes for Connect to PC. It now answers at once or says what to do: an unauthorised, offline or unpermitted phone stops setup at once, adb calls time out, and only an unlock and Android’s accessory chooser are waited for (a minute each).
- Allow USB debugging (5 min) replaces Connect with USB debugging, for armed phones on computers without the accessory. New events
debug_window_openanddebug_window_close; old session entries still show. - Setup’s settings reach the phone, or are kept. They are saved to
quitlock.tomlfirst, sent, read back and compared.enrolandprovisiontake--config. Running setup again on an enrolled phone sends them as a config change. An unfinished removal no longer wipes a new enrolment (new eventremoval_abandoned). The phone no longer shows default settings as if they were in force, and status no longer runs a self-check. - A short main screen. One setup stage (not set up, almost set up, not armed, armed) drives every message. The screen keeps the state, the settings once they exist, one self-check line, any countdown or approval, and the computer line; People, Checks and apps, History, and Leave or recover are now their own screens.
quitlock dashreconnects by itself and reads only new log entries.- The DNS filter host is checked before the phone uses it. Setup,
config validate,config pushandenrol/provision --configtry it from the computer (DNS over TLS on port 853, as Android does). Before, a wrong host showed up only when arming failed. quitlock config editopens the phone’s settings in your editor and sends the change.config pullreplaces an existing file after asking; it used to refuse, though setup told you to run it on the file setup wrote.- Tested 2026-12-01 by the owner on a Samsung Galaxy S20 FE on Android 13, with a dev build:
quitlock setupfrom start to end, the chosen settings on the phone, arming, the policies in effect, and CLI commands over adb with nothing tapped (quitlock statusanswered in 0.4 seconds). Not covered there, because a dev build leaves adb on: the USB accessory and Allow USB debugging, which need a release build armed.
14. Review fixes (2026-11-18)
Fixes from a review of the whole project, safety first.
- What the phone needs is never suspended, whatever the blocklist or install policy: core system apps (Settings, the system UI, the phone and emergency apps, the permission controller, the package installer), and the keyboard, home screen, dialer and SMS app in use when they are system apps or were there at arming. If every app in one of those roles would be suspended, the one in use is kept. The self-check names what was kept. The CLI warns when a blocklist names a well-known one.
- Removal can no longer get stuck. Teardown tries every step even when one fails. It keeps device owner until all of them have taken, and upkeep finishes a removal left half-done. A Private DNS that will not go back to automatic no longer stops it; the screen names the host instead. After a removal that finished while the app was closed, the screen says so and offers Uninstall. New event:
teardown_failed. - A failing step no longer stops the background check. Applying a due change, finishing a removal, the self-check and starting an update each run on their own. A failure is shown on the status screen and logged once (
upkeep_error). Boot and the periodic job no longer crash the app. - Arming is all or nothing. If a step fails after Private DNS was set, every policy applied so far is undone, so a phone is never left restricted while it shows as not armed.
- Damaged state no longer stops the app. The stored state is read whole, under one lock shared by every writer, and kept in two copies. If both are damaged, each unreadable value is replaced by the strict one and a partner is assumed until a new key is paired; the screen and the log say so. Teardown takes the bundle processor’s lock first, so a bundle cannot save its keys back after a removal.
- A session that fails while opening is closed at once, rather than left open with adb on until its time limit. Closing a session turns adb off even if logging or stopping the tamper watch fails.
- The phone no longer claims USB debugging is off when QuitLock leaves it alone. A dev build never controls adb, and neither does an unarmed phone. The arm dialog, the Computer section and the session notification said it was off outside sessions anyway. They now say what is true for that build and state.
- Builds use
--lockedagain inscripts/build.sh, and say how to fix a lockfile that fell behindCargo.toml.
13. Usability (2026-11-17)
- CLI:
quitlock setup, a guided first run (key, phone, app, a first config, provisioning), andsetup --udev. A new key’s recovery phrase is checked back. Keys are unlocked before a session opens, and typos are asked again.provisiongets its APK before changing the phone and enrols over adb.enrol --keyis optional; several keys give a menu. “Send it?” before loosening (--yesskips). Questions in every command use arrow-key menus, yes/no toggles and hidden PIN fields that collapse to one line once answered, drawn with crossterm, which the CLI already used; a plain fallback for scripts andNO_COLOR. Clearer errors throughout;--outas an alias of--to-file; the udev rule covers Pixel phones. - Phone: Settings (theme, history, keep the screen on, notification settings, the protection in force, saving the history and a status report, About). Config changes proposed on the phone, and Allow for a suspended app. Developer tools in dev builds. The session notification opens the app and has Disconnect.
- Fixes: the main screen no longer reads the phone’s state on the main thread every second; no crash when work finishes after the screen closes; rotation keeps an arm or approval in progress; buttons are disabled while a phone secret is checked; plain-language refusals; the USB accessory’s session hand-offs (a claimed session that never started, a sync sent twice, a dead CLI blocking the next one).
- Sessions over the accessory last 15 minutes; with adb, still 5.
- The package ID is
dev.t342.quitlock, under the owner’s domain, in place of the placeholderorg.quitlock.app. - Docs: this book replaces the build specification, the protocol specification and the docs folder; the README is short and for users.
- Not run: the device suite and every UI check, because neither emulator image would boot on the development computer.
12. Sessions over the USB accessory (2026-11-17)
Android Open Accessory is the default session transport on Linux, with no adb; adb stays for Windows and as the fallback. A new Connect with USB debugging button turns adb on for one session. The phone’s link stays open between sessions; the CLI finds phones by their USB interfaces and nothing else. Unit-tested on both sides; not yet run on a phone.
11. Release pipeline (2026-11-16)
Signed releases from CI on version tags, SHA256SUMS, provenance attestations, scripts/verify-release.sh to rebuild a release and compare it, the README, the threat model, the uninstall guide and the manual checklist for real phones.
10. Updates, the event log, the tamper watch (2026-11-16)
The session’s tamper watch (a proxy, an install over USB, a released app, cancelled jobs, background restrictions, the battery exemption) ends a session on any of them. A foreground service keeps the app alive during a session; boot and periodic self-checks. QuitLock asks to leave battery optimization before arming.
9. People and approvals (2026-11-15)
Phone PINs and passwords for both people, on QuitLock’s own keypad; the owner may use the screen lock. Waiting changes on the phone, drafts, Request exit on the phone, three ways for a partner to join and to approve, partner_remove, phone_secret_allow, recovery phrases.
8. Partner mode (2026-11-15)
Two signatures for loosening changes, partner sign, plain-language summaries in inspect, replaces in config bundles.
7. Provisioning assistant (2026-11-15)
quitlock provision --check and provision: preflight for accounts, users, profiles and other owners, guided removal, the dpm error messages explained, manufacturer notes.
Between 6 and 7: re-pairing, history, looks (2026-11-15)
“Pair a new key” replaced the keyless exit; the signed exit works in solo mode. The event log, log pull and log verify. The app restyled with a dark theme; colour in the CLI and quitlock dash.
6. App rules (2026-11-15)
Install policies, trusted installers, block and allow lists, browser detection, suspension, a periodic job.
Between 5 and 6: builds and updates (2026-11-15)
scripts/build.sh; update bundles, checked and installed silently after the delay; quitlock update and update --github.
5. Delays (2026-11-14)
The delay engine and its clock rules, pending actions with Cancel, and the keyless exit (later replaced by re-pairing).
4. Config and enforcement (2026-11-14)
Config apply, the user restrictions, Chrome’s managed configuration, teardown, config push and config pull. The INTERNET permission was allowed for the Private DNS call.
3. Sessions and file import (2026-11-14)
Connect to PC over adb, the hello, status, send, enrol; Import bundle from file as the second transport; adb switched off outside sessions.
2. Keys and bundles (2026-11-14)
CLI keys and encrypted key files, bundle creation and signing, inspect; the Kotlin verifier passing the shared vectors.
1. Device owner (2026-11-14)
The admin receiver, device owner on an emulator, the three lifecycle states, the DNS lock, dev-build removal.
0. Scaffold (2026-11-14)
Repository, licence, CI, the protocol specification and the first shared test vectors.