Simple-Flag-Secure
November 17, 2025 Β· View on GitHub
π Simple Flag Secure Magisk Module to Disable Secure Flag and allow taking screenshots or screen recording in apps that won't allow also hide screenshot detection on A14+, supports KSU/APatch inspired by Disable Flag Secure by MehediHJoy.
β Why this module? When there's already Disable Flag Secure by MehediHJoy.
- π« Screenshot Detection Blocked: Prevents apps from detecting when a screenshot is taken.
- β Root Managers Support: Fully compatible with Magisk, KernelSU, APatch and their forks, unlike the outdated original.
- πΎ Lightweight: No bloated binaries or extras, faster and minimal than MehediHJoy's version.
- π₯οΈ Dex-Only Patch: Only modifies required DEX files, avoiding issues like broken power button on Android 14.
- π¬ Readable Code: Clean, commented code with fewer lines (<300 vs 2000>), easy to understand.
- π Fast Restore: Creates backup of services.jar for quicker reflash after removal.
- βοΈ Optimized Module Structure: Reduced redundancy and cleaned up code for better maintainability.
- π Improved Support & Compatibility: Better handling on newer Android versions and different environments.
- π± OEM Compatibility: May work on popular OEM skins like Realme UI, ColorOS, HyperOS, and One UI.
Note
You can remove the backup if you want by either deleting this directory /data/#SFS manually, or select clean flash while flashing.
π₯ Installation Guide
πΈ Removing screenshot restriction is simple. Just follow these steps:
1οΈβ£ Install Module: Open Magisk/KSU/APatch Manager β Modules β Tap '+' β Select Simple Flag Secure zip.
πΎ (Optional): Save logs via top-right disk icon, helpful if the module doesn't work.
π Reboot Device: Restart your device to apply changes.
β Test It: Try taking screenshots (e.g. WhatsApp profile pic or chrome incognito) to confirm it's working.
π§° Troubleshooting
π If bootloop or system doesn't boot:
1οΈ. Reboot into Recovery (TWRP or other).
2οΈ. Go to: /data/adb/modules/simple_flag_secure
3οΈ. Delete the simple_flag_secure folder.
4οΈ. Reboot system and report on Telegram.
π« If the module doesnβt work:
1οΈ. Copy services.jar from /system/framework/ to internal storage (use root file manager).
2οΈ. Send the services.jar to Telegram.
3οΈ. Delete /data/#SFS from root directory.
4οΈ. Reflash the module and save logs during install.
5οΈ. Send logs from sdcard/Download/Magisk|KSU|APatch_install_logs to Telegram.
π Support & Donations
If you find Simple Flag Secure helpful and want to support development, you can donate here:
π° PayPal: Donate via PayPal
π² SuperMoney: UPI ID - shivam.dhage@superyes
π GPay UPI QR Code: Donate via UPI QR
Every contribution helps keep the project alive and improved! Thank you! π
π Credits
-
MehediHJoy
Idea originator and source reference for this module. -
ShirigiriPatil
Tested the module on KernelSU (KSU). -
ShishirThakur
Helped test screenshot detection functionality. -
Marmot
Tested the module on MIUI Android 11 using SukiSU (a KernelSU fork), helping verify compatibility and stability.