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

Authorisation

Who may change what, and how they show they agree.

Keys and modes

  • Keys are Ed25519. The phone stores public keys only.
  • A key is identified by the SHA-256 of its public key. People compare keys by their fingerprint: the first 8 bytes of the key ID as four groups of four uppercase hex digits (A1B2 C3D4 E5F6 0718).
  • Solo mode: one or more owner keys.
  • Partner mode: while a partner exists (below).

People and approvals

There are two roles, owner and partner. Either can approve in two ways, and may set up either or both:

WayWhat it isWhere it is used
KeyAn Ed25519 key kept by the CLI on that person’s own computer, in a file unlocked by a PIN or a passwordSigns bundles on the computer
Phone secretA PIN or password set on the phone, stored there only as a slow hashTyped on the phone to approve a change waiting there
  • The owner always has at least one owner key (enrolment needs one) and may add one owner phone secret.
  • A partner exists while there is a partner key, a partner phone secret, or both. One partner at most, with at most one key and one phone secret.
  • The phone knows whose phone secret is whose. An owner phone secret never counts as the partner’s approval, and the reverse.
  • “Owner approval” below means a valid owner signature, or the owner phone secret typed on the phone; “partner approval” likewise. Neither skips or shortens a delay.
ActionSoloPartner modeDelay
Tightening config changeOwnerOwnerNone
Loosening config changeOwnerOwner and partnerConfig tier
App updateOwnerOwner and partnerConfig tier
Add another owner keyOwnerOwner and partnerConfig tier
Remove an owner key (not the last)OwnerOwner and partnerConfig tier
Add a partner (no partner yet)Owner, or a tap on the phone (see Becoming a partner)n/aNone
Give the partner a second way (a key, or a phone secret)n/aPartnerNone
Remove the partnern/aOwner and partnerConfig tier
ExitOwnerOwner and partnerConfig tier
Set the owner phone secret, when there is noneOn the phone, no approvalSameNone
Change or remove a phone secretThat person’s current phone secretSameNone
Replace a forgotten phone secretA key of that role (phone_secret_allow)SameNone
Pair a new key (on the phone)NothingNothingNone in solo mode; partner mode: the re-pair delay
Cancel a pending action or a waiting change (on the phone)NothingNothingInstant
Allow USB debugging for 5 minutes (on the phone)NothingNothingInstant

The rules in full, as the phone checks them: Who may do what.

Phone secrets

  • A PIN is at least 6 digits; a password at least 8 characters.
  • The phone stores only an Argon2id hash with its salt and parameters, in the app’s private storage. Nothing else on the phone, and nothing sent to a computer, contains the secret or the hash.
  • Wrong guesses slow down, never wipe. Five wrong tries are free; after that each try waits 30 seconds, doubling each time, at most one hour. The count survives a restart and a reboot, and the wait follows the countdown clock rules, so changing the clock earns nothing. A right answer resets the count. Wiping on failure is ruled out: guessing wrong on purpose would then remove the partner.
  • The screen that asks for one uses QuitLock’s own keypad and keyboard, never the system’s input method, so a keyboard app cannot record it. It blocks screenshots and screen recording, ignores touches while another app draws over it, and hides its keys from accessibility services. That hides them from screen readers too, a known limit.
  • The owner may use the phone’s own screen lock instead, where the phone has one: QuitLock asks Android to confirm it. The partner cannot, because the owner knows that screen lock.
  • On the computer, a key file is unlocked by a PIN of at least 8 digits or a password of at least 10 characters. Choosing a PIN shows a plain warning: anyone who copies the file can try every PIN offline, which a password resists far better.

Waiting changes

A change that still lacks an approval waits on the phone instead of being refused.

  • The phone holds at most one waiting change. It shows what the change does in plain words, who has approved it and who still needs to, its expiry and a Cancel button. Its countdown, if it has one, has not started.
  • A bundle waits when it passes every acceptance check except the approvals. It may be signed by the owner only, or by nobody: a draft, to be approved on the phone.
  • Missing approvals can arrive in any order and any way: a phone secret typed on the phone, the same bundle sent again with more signatures (over USB or as a file), or a signature added by quitlock partner review over USB.
  • When the last approval arrives, the change is accepted as if it had arrived then: a tightening change applies, a loosening one starts its countdown. If a countdown is already running, the change keeps waiting and the phone says why.
  • A waiting change does not consume the sequence number, and a newer bundle accepted meanwhile does not spoil it. It is checked again in full when it completes, except for the sequence number: a config that names the config it replaces is dropped if that config has changed since.
  • A waiting change is dropped when it expires, when it is cancelled, after a re-pair, and at teardown. Each step is in the event log.

Changes made on the phone

The owner can start two kinds of change on the phone itself, each approved there with the owner phone secret (a PIN, password or the screen lock):

  • Request exit.
  • Propose a change to the config (Settings, then Propose a change; or Allow next to a suspended app). The phone makes a config draft that names the config in force as the one it replaces.

Either is exactly the change the CLI would make with --draft, approved on the phone: it goes through the same acceptance steps. A tightening config applies at once; anything else waits out the delay in solo mode, and in partner mode first waits for the partner. With no owner phone secret, the phone asks for one to be set first, so that nobody else holding the phone can make changes.

Becoming a partner

Each way gives the phone a partner at once, since adding a partner tightens protection. A partner’s new key must also sign the bundle that adds it, which proves the partner holds it.

HowSteps
PIN or password on the phoneOn the phone: Add a partner, then With a PIN or password on this phone. The partner types it there in private.
CLI, in personOn the phone: Add a partner, then With your partner’s computer, in person. The phone waits 10 minutes for a partner key. It is plugged into the partner’s computer, unlocked, and the partner runs quitlock partner join. Their CLI creates the key and sends it. The phone and the partner’s CLI show the same fingerprint, and the owner confirms on the phone: with the owner phone secret if there is one, otherwise with a tap.
CLI, remoteThe owner runs quitlock partner invite, which writes an invite file naming the phone, and sends it. The partner runs quitlock partner join <invite>, which creates their key and writes a reply file to send back. The owner runs quitlock partner accept <reply>, which adds the owner’s signature and sends it. Both then compare fingerprints over a call.

A remote partner cannot see the phone. The owner could enrol a second key of their own as the “partner” and read out its fingerprint. Checking the phone in person once is the only proof the partner has.

A partner who already exists can add a second way in person: a key, with quitlock partner join approved by their phone secret on the phone; or a phone secret, after signing quitlock phone-secret allow --partner with their key, which lets them set one on the phone within 10 minutes. They sign that only while they are with the phone, since whoever holds it in those 10 minutes could set it.

Partner approvals, three ways

Where the partner isWhat they useHow it reaches the phone
On the phoneWith the phoneTheir phone secretTyped on the phone
In person, CLIWith the phoneTheir computerThe phone is plugged into their computer; quitlock partner review fetches the waiting change, shows it, signs it and sends the signature back
Remote, CLIAnywhereTheir computerA file: the owner sends it, the partner runs quitlock partner sign <file> and sends it back, and the owner sends it with quitlock send or imports it on the phone

partner review and partner sign show the same summary as quitlock inspect and require typing yes. A bundle that needs the partner expires after 7 days; one sent at once, after 24 hours.

Lost keys and forgotten secrets

  • A forgotten phone secret, with a key of the same role: quitlock phone-secret allow signed by that key clears it and lets a new one be set on the phone within 10 minutes.
  • A forgotten owner phone secret, with no other way: the owner still has their key; nothing is lost.
  • A partner with no way left (lost key, forgotten phone secret): “Pair a new key”, which in partner mode waits the re-pair delay.
  • A key whose recovery phrase is kept: quitlock key restore rebuilds it, and nothing on the phone changes.

“Pair a new key” exists for a lost key, or to move to a new one. From then on (after the re-pair delay, in partner mode) the phone accepts one new enrolment bundle, which replaces every key and clears both phone secrets; the old keys keep working until it arrives, and the user can stop waiting at any time. Policies stay enforced throughout. While armed, that enrolment must carry the config in force or a tightening of it, so a new key gains nothing a lost one did not have: everything loosening it signs still waits out the delay.

Damaged state on the phone

The phone keeps its keys, config, phone secrets and countdown in two copies. If the main one cannot be read, the copy is used. If neither can be read in full, the app still starts and keeps enforcing; a damaged file must never stop it, since that would leave every policy in place with nothing checking it. Each unreadable value is replaced by the strict one (StoredEnrolment):

  • a key: dropped;
  • the sequence number: the time now, so no bundle signed before can be replayed;
  • the config: the defaults;
  • the phone secrets and the waiting change: none.

Until the next enrolment, a partner is assumed, whether there was one or not. Nothing loosening can complete, and “Pair a new key” waits the partner-mode re-pair delay (at least 72 hours), after which a new enrolment starts clean. The status screen says so, and the event log has a state entry.

What counts as tightening

A config change is tightening only if every difference from the current config is one of:

  • an entry added to apps.blocklist or chrome.url_blocklist
  • an entry removed from apps.allowlist, apps.browser_allowlist, apps.trusted_installers or chrome.url_allowlist
  • the delay tier raised
  • install_policy moved toward stricter (open < trusted_installers < approval_required)
  • a Chrome safety flag turned on

Anything else, including a DNS host change or an unrecognised field, makes the whole change loosening. The classifier defaults to loosening when unsure, and is tested heavily against shared vectors: a bug there is a bypass.