Darpan is a privacy-focused mirror app for Android. Built with Material 3, it provides a distraction-free experience that turns your front camera into a precise, high-fidelity reflective surface.
- Ad-Free by Design: No interruptions, no banners, just your reflection.
- Material You: Seamlessly integrates with your Android theme and dynamic colors.
- Privacy First: No data collection, no internet access, and no unnecessary permissions.
- Lightweight: Optimized for instant launch and minimal battery drain.
- Front camera preview using CameraX
- Step-snapped zoom control with dynamic max zoom detection
- Mirror / natural preview toggle
- Light assist via temporary screen brightness override
- Runtime camera permission handling with rationale + settings fallback
- Lifecycle-safe camera binding and cleanup
- Fully state-driven UI using
StateFlow
-
Camera permission is requested on first launch
-
If denied:
- A rationale is shown when appropriate
- Otherwise, the user is guided to system settings
-
Permission changes made outside the app (Settings) are detected on
ON_RESUME
Requirements:
- Android Studio Hedgehog or newer
- Android SDK 26+
- Camera-enabled device or emulator
Clone and run:
./gradlew installDebug


