SecureScreen is a Kotlin Android app that prevents screenshots and screen recording for selected apps using FLAG_SECURE-based enforcement.
- Select protected apps from installed launchable applications
- Foreground app detection via
UsageStatsManager - Foreground service with persistent notification
- Transparent
SecureActivityenforcement withFLAG_SECURE - Optional watermark overlay with timestamp and session ID
- Settings for watermark toggle, opacity, and aggressive mode flag
- Boot receiver to recover service state after reboot/update
- Open this project in Android Studio (Jellyfish or newer recommended).
- Let Gradle sync complete.
- If
gradle-wrapper.jaris missing, rungradle wrapperonce from the project root. - Run on a physical Android device (Android 8.0+).
- Grant Usage Access permission in system settings.
- Enable notification permissions on Android 13+ if prompted.
- Grant Overlay permission only if watermark is enabled.