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
- Search apps by name or package before enabling protection
- Foreground app detection via
UsageStatsManager - Foreground service with persistent notification
- Accessibility-service overlay to keep touch input working while protection is active
- 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
- Watchdog to keep protection alive during idle or screen-off periods
- 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.
- Enable the SecureScreen accessibility service when prompted.
- Grant Overlay permission only if watermark is enabled.
Please support me to bring the app to Play Store.
