DetoxDroid
Digital detox for Android: DetoxDroid strips away the attention-grabbing features of your smartphone — use your phone, rather than letting your phone use you.
Most digital detox apps are opt-in. You start a timer and then try not to break it. DetoxDroid works the other way round: a calmer phone is the default state, and you take deliberate pauses out of it.
In practice that means the screen stays mostly grayscale with exceptions for the apps where colour actually carries information, Do Not Disturb is on unless you say otherwise, chosen apps are disabled during detox hours, and a long scrolling session gets interrupted by a prompt. A commitment password can lock the settings so that the version of you at 1am cannot undo the decisions of the version at 9am.
Architecturally the whole app hangs off one accessibility service. Every feature is a Kotlin object that composes its capabilities through interface delegation, so "reacts to app launches", "reacts to scroll events", "supports a schedule" and "needs these permissions" are mixed in rather than reimplemented. Adding a feature means writing one object and registering it.
It is free software, around 500 stars on GitHub, and it needs privileged permissions that Google Play will not grant, so it installs over ADB with a script instead of from the store. That cost it a lot of users and kept the feature set honest.
- Fully open source
- 480+ stars on GitHub
- 3,000+ lines of code
Interested in something similar?