A commitment tool for Android that makes leaving slow, visible and deliberate.
Documentation · Install · Set up a phone · Tested devices · Security
QuitLock is an open-source commitment tool for people quitting porn. An Android app, set up as device owner, blocks most adult content and makes its own removal slow. A desktop app and a command-line tool for Linux and Windows set it up and authorise changes over a USB cable.
Warning
Preview. Tested on Android emulators and on one real phone, a Samsung Galaxy S20 FE on Android 13, with a dev build (Tested devices). No signed release has been published yet. Use it on a phone you could wipe.
QuitLock guards you against yourself, during an urge, holding both the phone and the computer. It does not try to be unbreakable; it makes every way out slow, visible and deliberate.
- 🛡️ Blocks: adult content through a locked filtering DNS; VPNs and proxies; incognito, with SafeSearch on in Chrome and other supported browsers; apps from outside trusted stores, and browsers it cannot configure.
- ⏳ Delays: every loosening change, an update or an exit waits 3 to 72 hours, with a countdown on the phone that anyone can cancel. A partner can be made to approve them too.
- 🔒 Keeps nothing on you: no server, no account, no monitoring. The phone keeps a history of changes to QuitLock itself, and nothing about what you browse or use.
- 👁️ Hides nothing: the app is always visible and shows whether it is armed.
- 🚪 Always lets you out: after the delay, even without your key.
Note
It cannot stop a factory reset, and it does not filter content inside apps it allows. See the known limits.
- Download the desktop app or the CLI for your system (or both), and
SHA256SUMS, from the releases page, and check them:sha256sum -c SHA256SUMS --ignore-missing. Setup installs the phone app itself. - Put the CLI on your path as
quitlock(quitlock.exeon Windows). - Install adb (Android platform tools), which setup needs.
Details: Installing.
In the desktop app, choose Set up. Or, in a terminal:
quitlock setupIt walks you through it: a key for signing changes (write down its recovery phrase), USB debugging on the phone, the app, your first settings, and making QuitLock the device owner. The phone must have no accounts while this happens; you sign back in afterwards. Then open QuitLock on the phone and tap Arm.
Afterwards, plug the phone in and unlock it: in the desktop app press Connect to phone, or run a command. There is nothing to tap on the phone.
quitlock status
quitlock dash
quitlock config edit # change settings in your editorMore in Setting up a phone and Everyday use.
quitlock exit request signs an exit. While armed, it waits out the delay, then QuitLock undoes every setting and removes itself. Lost your key? Restore it from its recovery phrase, or tap Pair a new key on the phone and enrol a new one. See Leaving.
How QuitLock works, its protocol, building, testing and releasing are all in the book: start at Contributing. The threat model covers every way around QuitLock and how each is handled.
| Part | Language | Where |
|---|---|---|
| Phone app | Kotlin, Android 10 and later | android/ |
| Desktop app, CLI and their library | Rust, for Linux and Windows | desktop/ |
| Protocol and test vectors | Specification, JSON | protocol/ |
| This book | mdBook | docs/src/ |
To try release behaviour without a release, build a tester build (scripts/build.sh apk --tester): it is a release in every way, plus a code that removes it at once (Building).
Please report vulnerabilities privately; see SECURITY.md.
GPLv3. See LICENSE.
