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. Use a release build where the item says so; elsewhere a dev build will do (it can be removed instantly with Remove now). A 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.

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.

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, 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. Expected: suspended.
  • 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.