Guardian
Android app for focused productivity using NFC-controlled app blocking and scheduled modes.
Guardian - NFC-Based App Blocker
Physical focus lock for Android. Block distracting apps, unlock only with NFC tap.
Core Concept
Create blocking modes → Select apps to block/allow → Set optional schedules → Link optional NFC tag → Activate mode → Stay focused. No software bypass - requires physical NFC interaction to unlock.
Technical Stack
Built with Kotlin and Jetpack Compose. Uses Kotlin Coroutines for async operations, Kotlinx Serialization for state persistence, and AlarmManager for precise scheduling. Foreground service ensures reliability across reboots and task removal.
Features
Blocking Modes
- Block Selected: Restricts access to chosen apps
- Allow Only: Blocks everything except chosen apps
- Optional NFC tag requirement per mode
Scheduling
- Per-day time configuration with custom start/end times
- Multiple mode linking
- Optional automatic deactivation
NFC Integration
- Register tags for mode-specific unlocking
- Any NFC device works if no specific tag linked
- Smartwatch, headphones other tags supported
Screenshots
App Interface
Requirements
- Android 6.0+ (API 23)
- NFC hardware
- Permissions: Usage Access, Display Over Apps, Battery Optimization exemption
MIUI/Custom ROM Users: Disable “Pause app activity if unused”, enable “Autostart”, set battery to “No restrictions”
Links
- GitHub Repository - Source code
- Download APK - Latest release
Contributors
MIT License | Built with ❤️ Claude AI assisted with development