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

Everyday use

Reaching the phone

Plug the phone in, unlock it, and run the command. There is nothing to tap: QuitLock answers any command while the phone is unlocked, and the command answers at once or says what to do. A locked phone is refused; the command asks you to unlock it and waits a minute.

  • Not armed (or a dev build): USB debugging is on, and the CLI uses adb.
  • Armed, on Linux: QuitLock keeps USB debugging off, so the CLI uses the USB accessory. The first time, Android asks which app to open for the QuitLock CLI: choose QuitLock and tick Always. While the cable stays in, file transfer is off; unplug to get it back.
  • Armed, on Windows: Windows’ own driver for the phone blocks the accessory, so the CLI needs adb. In QuitLock on the phone, tap Allow USB debugging (5 min) first; it turns off by itself after 5 minutes, or when you tap Turn off.
  • --transport usb or --transport adb picks one way.
  • No working connection? Commands that send something take --to-file <path> (or --out <path>). Copy the file to the phone and tap Import bundle from file.

Looking

quitlock status     # state, mode, countdown, self-check
quitlock dash       # a live view: overview, history, config; q quits
quitlock log pull   # the full history of changes, with its hash chain checked

On the phone, the main screen shows the state and any countdown; History lists recent changes, and Settings shows the protection in force.

Changing a setting

From the computer:

quitlock config edit

It opens the phone’s settings in your text editor ($VISUAL or $EDITOR; otherwise nano or vi, or Notepad on Windows). Save and close, and it sends what you changed. To keep the settings in a file instead, quitlock config pull quitlock.toml, edit it, then quitlock config push quitlock.toml.

A new DNS filter host is checked from the computer first: the phone only finds out it does not work when it switches to it, so arming would fail, and an armed phone would have no working internet. If it does not answer, the CLI says so and sends nothing unless you say yes.

Either way, the CLI shows every change and whether it tightens or loosens. A change that only tightens applies at once. Anything else waits out the delay on the phone (3 to 72 hours, as set in the config), shown with a countdown that can be cancelled with one tap; before sending one, the CLI asks “Send it?” (skip that with --yes). Only one such change can count down at a time. Shortening the delay is itself loosening, and waits out the old delay.

On the phone: Settings, then Propose a change. Edit, review, then Approve and send with your phone PIN, password or screen lock. The same rules apply. The first time, the phone asks you to set a phone PIN or password.

Apps that were suspended

With the default settings, an app installed from anywhere but the Play Store or F-Droid is suspended, and so is any new browser other than Chrome. The phone lists suspended apps and why. To allow one, tap Allow next to it and approve the change, or add it to allowlist (a browser to browser_allowlist) and config push. Either way it is a loosening change.

Updating the app

quitlock update --github     # or: quitlock update <apk>

An update is a loosening change too: while armed it waits out the delay and can be cancelled on the phone. The phone installs it only if it is the same app, signed with the same key, and not an older version; it then installs without asking and restarts. --github checks the download against the release’s SHA256SUMS (set GH_TOKEN for a private repository). A dev build cannot update itself; reinstall it with adb install -t -r.

Drafts

--draft on a command that changes something sends it unsigned. It waits on the phone until you approve it there with your phone PIN or password.