Troubleshooting
A command cannot reach the phone
The CLI says what is wrong. The usual fixes:
- Unlock the phone. QuitLock does not answer while it is locked.
- Is the cable a data cable? Charging-only cables show nothing at all.
- “did not answer over adb”: QuitLock on the phone is missing or older than the CLI.
quitlock update(orquitlock setup) installs the matching app. - Linux: if the CLI says this computer may not open the phone over USB, run
quitlock setup --udev, then unplug and replug. - The first time over the USB accessory, Android asks which app to open for the QuitLock CLI. Choose QuitLock and tick Always. If you dismissed it, unplug and plug in again.
- Windows, or
--transport adb, on an armed phone: in QuitLock, tap Allow USB debugging (5 min) first.
adb lists no phone, though USB debugging is on
The adb server on the computer can miss a phone that came back after switching USB modes (for example after the USB accessory was used). Restart it: adb kill-server, then adb devices. If the phone then shows as “unauthorized”, see below.
The phone says “Almost set up”
QuitLock is the device owner, but your key and settings never arrived, so setup stopped partway. Run quitlock setup again; it picks up where it stopped. If you have the settings saved, quitlock enrol --config quitlock.toml sends them directly.
Arming fails because of the DNS filter
The phone tests the DNS filter host when it switches to it, and refuses to arm if the host does not answer DNS over TLS. Check the phone is online. If it is, the host is probably wrong: quitlock config edit changes it, and checks the new one from the computer before sending it (quitlock config validate <file> checks a saved file).
Installing the APK by tapping it fails
- “The package appears to be invalid” with a dev build: dev builds are marked test-only, and Android’s installer refuses those on purpose, so a dev build cannot be mistaken for a real install. Install it over USB instead:
quitlock setuporquitlock provision <apk>do that, oradb install -t -r <apk>. - “This app may be harmful” (Play Protect): Google has not seen the app before, it is not from the Play Store, and it asks for device-admin powers. Tap More details, then Install anyway. Play Protect may offer to send the app to Google for scanning; QuitLock does not need that. Installing with
adbor the CLI shows the same warning on some phones.
adb says “unauthorized” or “offline”
- Unauthorized: unlock the phone and accept “Allow USB debugging?”, ticking “Always allow from this computer”. If no prompt appears, unplug and plug in again, or revoke USB debugging authorisations in Developer options and retry.
- Offline: unplug and plug in again; restart adb with
adb kill-server. - No permissions (Linux): run
quitlock setup --udev. The rule covers adb too.
Setup refuses to make QuitLock the device owner
The CLI shows what Android’s message means, with Android’s own words below it. The usual causes:
| Android says (in part) | Meaning |
|---|---|
| accounts on the device | An account is still on the phone. Remove every account (Settings, Accounts), then try again. |
| several users, more than one user | There are extra users or profiles (a work profile, Secure Folder, a guest). Remove them. |
| already set, already has a device owner | Another app is the device owner. Only one can be, and it cannot be taken over. |
| profile owner | An app is a profile owner (a work profile or similar). Remove that profile first. |
| already provisioned | Setup is complete and something is still present: usually an account or an extra user. |
| unknown admin, invalid component | QuitLock is not installed, or not the expected build. |
| not active admin | Android had not finished cleaning up after an earlier attempt. Try again. |
| not allowed to set the device owner | The phone does not let adb set a device owner. On Xiaomi, turn on “USB debugging (Security settings)” and turn off MIUI optimisation in Developer options. |
quitlock provision --check lists what is in the way without changing anything.
USB debugging turned off early
The phone’s history says why. “Something was changed over USB” means the tamper watch saw a change an adb shell made (a proxy, an app installed over USB, a restriction lifted) and turned USB debugging off; the self-check then undid the change. Otherwise it turns off after 5 minutes.
Problems the self-check reports
- A proxy in the old
http_proxysetting: remove it while USB debugging is allowed,adb shell settings delete global http_proxy. - QuitLock is restricted in the background (only adb can set that; Settings cannot lift it): while USB debugging is allowed,
adb shell cmd appops set dev.t342.quitlock RUN_ANY_IN_BACKGROUND allow. - Battery optimization: tap the self-check line on the main screen, then Leave QuitLock out of battery optimization, and allow it.
“The key file is damaged” or “wrong PIN or password”
Three tries are given. If the PIN or password is truly lost, restore the key from its recovery phrase (quitlock key restore), or see Lost key.
A change was refused
The phone and the CLI say why in plain words. The common ones: the bundle was made for another phone, has expired (bundles last 24 hours, or 7 days when they need a partner), or is older than the last change the phone accepted (check the computer’s clock); or another change is already counting down or waiting for approval.