Dopamine Lock
Native Android behavioral focus system
Native Android behavioral focus system combining productivity workflows with operating-system-level distraction enforcement.
- Status
- Active / in progress
- Year
- 2026
- Role / Context
- Individual engineering project

Overview
Dopamine Lock is a Kotlin/Jetpack Compose Android application that combines focus sessions, missions, tasks, goals, streaks, discipline scoring, analytics, notifications, and authenticated Firebase-backed persistence with Android-level enforcement mechanisms.
Problem
Most productivity apps track intention but do not enforce focus when users switch to distracting apps or background the timer.
Solution
Coordinate lifecycle-aware Compose UI, ViewModels, repositories, Firebase, foreground services, WorkManager, DataStore preferences, accessibility monitoring, usage access, overlays, notifications, and Do Not Disturb integration to turn a focus session into an enforced system state.
Engineering Highlights
- MVVM and repository separation across auth, sessions, missions, tasks, goals, analytics, discipline, streaks, and notifications.
- Foreground services keep mission/timer execution alive beyond the foreground UI.
- AccessibilityService and usage-access monitoring support app blocking during active missions.
- Firebase Authentication and Realtime Database scope user progress and session data to authenticated users.
- WorkManager-backed reminders/milestones and DataStore-backed preferences support background and local state needs.
Architecture
- 01Compose screens
- 02ViewModels with Flow state
- 03Repository layer
- 04Firebase Auth/Realtime Database
- 05Foreground + WorkManager services
- 06Android permission and enforcement APIs
Technology
Mobile
Backend
Infrastructure
Testing
Ownership / Context
Dopamine Lock is presented as a individual project, with claims limited to repository-verified implementation details.
Screenshots / Assets


