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

Manual checks

What the emulators cannot show (Testing). Each item says how to check it and what should happen. When one is done, record the phone, its Android version and the result under the matching item in Platform facts.

Use a phone you can wipe. Where an item says “release build”, a tester build will do: it runs the release’s code, and its tester code removes it at once if something goes wrong. Elsewhere a dev build will do (it can be removed instantly with Remove now). A real release build that is armed can only be removed by an exit that waits out the delay, so set the delay tier to short (3 hours) in its config first.

  • The tester code. Arm a tester build, then Leave or recover, Remove with the tester code. Expected: a wrong code is refused and nothing changes; the right one removes QuitLock at once, and the history (quitlock log pull before the uninstall) shows it.

Setting up

  • Provisioning on real phones (platform facts, item 11). Run quitlock provision --check on a phone with a Google account, a second user and, on a Samsung, Secure Folder. Expected: each is listed, accounts by type only, never by name. Then quitlock provision gets the phone to device owner. Note anything a manufacturer does differently, for Samsung, Xiaomi and OnePlus at least.
  • adb on Windows. Run the Windows CLI against a phone through the Google USB driver, and the manufacturer’s driver if there is one. Expected: provision --check and quitlock status work.
  • The battery dialog on manufacturer builds. Tap Arm. Expected: Android’s dialog asking to let QuitLock run in the background. After Allow, the self-check is clean. Some manufacturers add their own battery managers; note whether QuitLock shows up in them and whether they can restrict it.
  • Setup names browsers that will be suspended (issue #15). On a phone with Samsung Internet, and another browser installed (Firefox, say), run quitlock provision --check and the desktop app’s Set up. Expected: both are named and Chrome is not; the desktop app does not go on until the box is ticked; quitlock setup asks before going on. Also run adb shell cmd package query-activities --components --query-flags 0x20000 -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d https://quitlock-browser-check.invalid/ and note whether this Android takes --query-flags and lists every browser, or only the default one without it (platform facts, item 4).

Connecting (any build unless noted)

  • No tap. (Galaxy S20 FE, Android 13, dev build, armed, 2026-12-01: quitlock status in 0.4 seconds.) On a phone set up with quitlock setup (not armed), run quitlock status with the phone unlocked. Expected: the answer within about 2 seconds, nothing tapped on the phone.
  • adb not authorised. Revoke USB debugging authorisations in Developer options, replug, and dismiss the prompt. Run quitlock setup and quitlock status. Expected: both stop at once and say to accept “Allow USB debugging?”.
  • Locked. Lock the phone and run quitlock status. Expected: “The phone is locked” and a wait; unlocking within a minute lets it finish. Lock the phone during quitlock dash. Expected: it says the phone is locked, and reconnects after unlocking.
  • Setup twice. Run quitlock setup again with a different setting. Expected: no “already has keys” stop; it sends a config change, reads it back and shows the settings match. The main screen shows the new settings.
  • Old app. With an app from before 2026-12-01 on the phone, run quitlock status. Expected: it says the app did not answer and to update it.

USB accessory (Linux computer, release build armed)

  • First connection (platform facts, item 22). With the phone in file transfer mode, run quitlock status. Expected: Android asks which app to open for the QuitLock CLI. Choose QuitLock and Always. Expected: the status appears with nothing else tapped; adb stays off throughout (adb devices lists nothing).
  • The other USB modes. Repeat from charging only, and from photo transfer (PTP). Note whether the CLI finds the phone in each.
  • Later connections. Run quitlock status twice more, unplugging between them and not. Expected: no dialog after Always; each works.
  • A large transfer. quitlock log pull with a long history, and quitlock update with a release APK. Expected: no hang, no error.
  • Killed CLI. Press Ctrl-C during quitlock dash, then run quitlock status with the cable still in. Expected: it works (the stale data is skipped).
  • Without permission. On a Linux account without the udev rule, expected: the CLI prints the rule. After installing it and replugging, it works.

The debugging window (release build, armed)

  • adb switched by the device owner (platform facts, item 13). Arm. Expected: the computer loses adb; quitlock status --transport adb says to tap Allow USB debugging. Tap it. Expected: adb comes back, with no developer-options step; several commands work in a row; the screen counts down from 5:00; at 0:00 adb goes, and the history shows it opened and closed.
  • Turn off. Allow USB debugging, then tap Turn off USB debugging, on the screen and in the notification. Expected: adb goes at once.
  • adb authorisation survives (platform facts, item 14). Open a second window. Expected: no new “Allow USB debugging?” prompt on the phone.
  • Wireless debugging (platform facts, item 16). If the phone offers it: try to turn it on during a window. Expected: the window closes, and wireless debugging is off afterwards.
  • Shell commands the emulators lack. During a window, look at adb shell cmd -l for manufacturer services, and try any that look as if they could change networking, apps or policy. Expected: either refused, or the window closes. Add what is found to platform facts, item 16.

The main screen

  • Each stage says one thing. Not set up (app installed, not device owner), almost set up (device owner, before enrolment: stop quitlock setup after the device-owner step), not armed, armed. Expected: the main screen, Settings and Propose a change agree each time; no settings are shown before enrolment.

Filtering

  • Chrome obeys its managed settings (platform facts, item 2). With real Chrome, after arming: incognito is unavailable; a Google search shows SafeSearch locked on; Chrome’s secure DNS setting is off and managed; a domain from url_blocklist is blocked; a domain from url_allowlist opens if the DNS provider allows it.
  • DNS fails closed. On a network that blocks port 853 (DNS over TLS), or with a firewall rule doing so, expected: no names resolve, and nothing falls back to unfiltered DNS. Back on a normal network, browsing works again.
  • A VPN app (platform facts, item 7). Install a VPN app before arming, then arm. Expected: it cannot connect.

App rules

  • Installs from stores (platform facts, item 5). After arming, install an app from the Play Store and one from F-Droid. Expected: both run. Install one from a browser download. Expected: suspended, and listed on the status screen. Also note what is recorded for F-Droid’s privileged extension, if present.
  • A new browser from the Play Store that is not supported (Firefox, Opera GX). Expected: suspended, and the status screen says why.
  • A browser that came with the phone (issue #15). On a Samsung phone, arm with Samsung Internet installed and enabled. Expected: Samsung Internet is suspended, links open in Chrome, and nothing the phone needs is suspended with it (note any other app suspended as a browser). Add it to browser_allowlist: after the delay it runs. Also update an already-armed phone from a build before this change. Expected: Samsung Internet is suspended at the first check.
  • Candidate browsers (Browsers, “Testing a browser”). With a dev or tester build, for each of Edge, Brave, Vivaldi and Chrome Beta: install it after arming, check each column, and record the results in the table. Then, with a release build: the browser is suspended until it is marked verified.
  • What the phone needs is kept (milestone 14). With a password screen lock, blocklist the keyboard in use, the home screen, the dialer and com.android.settings, then push the config. Expected: none of them is suspended, the status screen names them as kept, and after a reboot the password can be typed. Note which packages the maker uses for each.
  • How late the periodic check runs (platform facts, item 3). With QuitLock’s process stopped (reboot, don’t open it), install an app from a browser download and leave the phone idle. Note how long until it is suspended, with the battery exemption allowed.

Secrets and screens

  • Argon2id timing (platform facts, item 21). On a low-end phone, set a phone PIN. Expected: a few seconds at most.
  • Screen lock as the owner’s approval (platform facts, item 20). On API 36 or later, and with a pattern or a fingerprint: approve a draft with the phone’s screen lock. Expected: success approves it; Back leaves it waiting.
  • An accessibility service’s screenshot (platform facts, item 18). With a test accessibility service using takeScreenshot (API 30 and later), capture the PIN screen. Expected: the keypad area is black.

Changes over time (release build)

  • A delayed update. With a release armed on the short tier, send quitlock update with a newer release APK. Expected: a 3-hour countdown, then the app updates itself without a prompt and restarts, still armed.
  • A countdown across a reboot and a clock change. Start an exit, reboot partway, and try to change the time. Expected: the time is locked, and the countdown carries on from where it was.
  • The exit. Let an exit finish. Expected: teardown, then Android’s uninstall prompt; all settings back as Leaving says.

Added in milestone 13 (any build unless noted)

None of these could be run on 2026-11-17: neither emulator image would boot on the development computer. Those ticked were done on a Samsung Galaxy S20 FE, Android 13, dev build, on 2026-12-01.

  • quitlock setup end to end. On a fresh phone (or emulator) with USB debugging on, run quitlock setup and take each default. Expected: a key is made and its phrase checked back, the app is installed and made device owner, and the phone shows Not armed with the chosen config. Run it again with a config adjusted in the wizard; quitlock config pull shows exactly those settings.
  • quitlock setup --udev (Linux). Expected: the rule is shown, written with sudo after asking, and after replugging, quitlock status reaches the phone over the accessory.
  • Theme. Settings, Theme: Light, then Dark, then Follow the system. Expected: every screen and dialog follows at once, including the main screen behind Settings, and the choice survives a restart.
  • Dark mode or language changing mid-flow. Settings, Theme: Follow the system. Start arming with the screen lock as the owner’s approval; on the confirmation screen, switch the system’s dark mode (from the quick settings). Expected: arming still goes ahead, and QuitLock takes the new colours the next time it is shown. With Developer options, Don’t keep activities on, do the same: Expected: a message says the step did not go ahead.
  • Proposing while a change counts down (armed). Start a loosening change, then Settings, Propose a change. Expected: a note at the top says loosening is refused until it ends; a loosening edit cannot be sent; a tightening one can, and applies at once.
  • Rotation mid-flow. Start arming with a screen lock as the owner’s approval and rotate the phone on the confirmation screen. Expected: arming still goes ahead after confirming.
  • Propose a tightening change on the phone. With an owner phone PIN, Settings, Propose a change: add an app to the blocklist, review, Approve and send. Expected: it applies at once; the history shows it.
  • Propose a loosening change on the phone (armed, solo). Turn SafeSearch off. Expected: the review says it waits the delay; after approving, the countdown appears on the main screen and Cancel drops it. In partner mode it waits for the partner instead.
  • Allow a suspended app. Install an app from a browser download while armed. Expected: it is listed with an Allow button that opens the editor with the app added to the allowlist.
  • Save the history. Settings, Save the history, to Downloads. Copy it to the computer and run quitlock log verify <file>. Expected: the chain is unbroken.
  • The notification. While a computer is connected or USB debugging is allowed, tap the notification: QuitLock opens.
  • Developer tools (dev build). Settings, Developer tools. With an exit counting down, “Finish the countdown now”. Expected: teardown runs. In a release build there is no Developer tools row.

When the app fails (added 2026-12-03; any build unless noted)

  • Recovery from the icon. Long-press QuitLock’s icon and tap Recovery. Expected: the Recovery screen, with the state and, after Pair a new key, the device ID; Try the main screen again opens the main screen.
  • Recovery when the main screen keeps crashing (dev build). With Developer tools, or adb shell am crash org.quitlock.dev twice while the main screen is open, then open QuitLock. Expected: Recovery opens instead, and lists the two crashes under Recent problems.
  • A broken connection is only that. Pull the cable mid-command (adb, then the USB accessory). Expected: the CLI reports the lost connection; QuitLock keeps running, and the next command works.
  • Re-pair from a file (armed). Pair a new key on the phone, then on the computer quitlock key new spare and quitlock enrol --key spare --to-file pair.qlb --device-id <ID shown> --config <the phone's settings>. Import it in Recovery. Expected: accepted, and quitlock status with the new key shows it as the owner key.

Review fixes (added 2026-12-04)

Fixed in code and unit-tested where a unit test can reach; these need a phone.

  • The Leave screen at rest. Open Leave or recover and leave it for a minute. Expected: it does not flicker or reload by itself; after Pair a new key or Request exit, it shows the new state once.
  • The tamper watch after it trips (release or tester build, armed). During a debugging window, do something the watch catches (as in The debugging window), then open another window and catch it again. Expected: both trips are logged and each window closes; no second watch keeps running after a window closes.
  • An update across a process kill. Send an update while USB debugging is allowed, then kill QuitLock (adb shell am force-stop, or reboot) before the window closes. Expected: when the window closes, or at the next start, the update installs, or the main screen shows why it did not; it is never silently lost.
  • A partner phone PIN reset refused without a key. On a phone whose partner has a phone PIN or password and no key, send a reset of the partner’s phone PIN signed by the owner alone. Expected: refused as not permitted; with one partner key, the partner’s signature resets it.
  • The desktop app’s error box (Windows, in a virtual machine or over Remote Desktop with no OpenGL 2). Start quitlock-gui. Expected: a message box says the window could not open and points to the CLI.