Skip to content

About

πŸ‘€ Lightweight root module that disables FLAG_SECURE, enabling screenshots & screen recording in restricted apps. Hides screenshot detection. Includes a toggleable privacy mode to block screenshots system-wide. Supports Magisk, KernelSU, APatch & forks with no extra dependencies.

Topics

Resources

Stars

169 stars

Watchers

4 watching

Forks

Latest commit

Β 

History

64 Commits

Folders and files

Repository files navigation

Simple Flag Secure

πŸ‘€ Lightweight module that disables FLAG_SECURE, enabling screenshots & screen recording across restricted apps. Hides screenshot detection and suppresses screen share warnings. Includes a toggleable privacy mode to block screenshots system-wide. Available in Standalone, Zygisk, and Non-Root (LSPatch) editions.

Downloads Release Join Build Bytes Join Chat Android Root Non-Root Magisk KernelSU APatch


πŸ“‘ Table of Contents


✨ Features

  • 🚫 Unlocks Screenshots & Screen Recordings Everywhere β€” Captures restricted screens in banking apps, financial services, WhatsApp view-once media, profile photos, and incognito tabs.
  • πŸ”• Screenshot Detection & Warning Blocking β€” Prevents apps from detecting screenshots and suppresses all detection warnings or chat notifications (WhatsApp, Snapchat, etc.).
  • πŸ”• Suppresses Screen Share Warnings β€” Hides the irritating "App content hidden from screen share" popup on Android 15/16.
  • πŸ› οΈ No Root or Framework Required (LSPatch Edition) β€” Non-root users can embed SFS directly into targeted APKs with zero root footprint.
  • πŸ› οΈ No Zygisk or LSPosed Required (Standalone Edition) β€” 100% standalone, zero extra frameworks or meta-modules needed.
  • πŸŽ›οΈ Interactive Privacy Mode (Action & Volume Menu) β€” Switch between ALLOWED and BLOCKED ([Vol +]) or run live diagnostics ([Vol -]) without rebooting.
  • πŸ”‹ Zero Battery Drain & RAM Friendly β€” Ultra-lightweight with zero background daemons or battery consumption.
  • πŸͺΆ Ultra-Compact Footprint β€” Down to just ~19 KB (Zygisk), ~172 KB (Standalone), and ~16.5 KB (LSPatch APK) with zero bloat.
  • 🩺 Built-in Auto Diagnostics β€” Saves unified diagnostic log (sfs.log) directly to your Downloads folder for 1-click troubleshooting.
  • ⭐ Modern Root Manager Support β€” Works seamlessly with Magisk, KernelSU, APatch, and all their forks.
  • πŸ”„ In-App Manager Updates β€” Native one-click updates directly inside root managers via updateJson.
  • πŸ“± Broad OEM & OS Compatibility β€” Supports Android 8 through Android 16 on HyperOS, MIUI, OxygenOS, ColorOS, Realme UI, and One UI.

πŸ† Why Simple Flag Secure?

How does Simple Flag Secure compare to tools like LSPosed (Disable-FLAG_SECURE) and Zygisk ih8SecureLock?

Comparison ⚑ Simple Flag Secure πŸ”’ Zygisk ih8SecureLock 🧩 LSPosed
No Extra Framework Needed βœ… Yes (Lightweight & clean) βœ… Yes ❌ Requires LSPosed framework
Works with Unmount / DenyList βœ… Yes (Screenshots work even with DenyList!) ❌ No (Forces you to unmount apps) ❌ No
Banking App Safe βœ… Zero traces in protected apps ⚠️ Requires unmounting, exposing root ❌ Easily detected
Screenshot Detection Blocking βœ… Yes (Prevents alerts & toasts) βœ… Yes ⚠️ Depends on module
Interactive Privacy Mode Toggle βœ… Yes (Switch Allowed/Blocked anytime) ❌ No ❌ No
Standalone (No Zygisk) Option βœ… Yes ❌ No ❌ No
Non-Root (LSPatch) Option βœ… Yes (Patch any target APK) ❌ No ❌ No
Action Button Toggle & Logs βœ… Yes ❌ No ❌ No

Tip

Freedom of Choice: Simple Flag Secure gives you complete freedom and flexibility! You aren't forced into any single framework or root method. Whether you prefer Zygisk (RAM-only), Standalone (framework overlay without Zygisk), or LSPatch / LSPosed (per-app without system modification or root), you can choose the exact variant tailored to your personal device setup and security preferences.


πŸš€ Choose Your Variant

Simple Flag Secure is available in three distinct variants:

Variant ⚑ Zygisk Edition πŸ›‘οΈ Standalone Edition πŸ“± LSPatch & LSPosed Edition
Target User Rooted users using Zygisk Rooted users wanting zero Zygisk overhead Non-root users or LSPosed framework users
Requirements Any Zygisk implementation Magisk, KernelSU, or APatch JingMatrix LSPatch or LSPosed
Filesystem Mounts Zero mounts (all hooks in RAM) Clean on-device framework mount None (Embedded inside target APK or hooked via LSPosed)
Size ~19 KB (Ultra-compact) ~172 KB (Includes dex patcher) ~16.5 KB (Compact helper APK)
Privacy Toggle βœ… Action button / Volume key βœ… Action button / Volume key N/A (Always active in patched app / LSPosed scope)

πŸ“± Non-Root Users: LSPatch Setup Guide

If your device is not rooted (or you prefer not to touch root hooks), you can use the LSPatch variant (Simple_Flag_Secure_LSPatch_v10.1.apk) to patch any restricted app directly on your phone:

Note

Using LSPosed instead? This exact same APK is a fully compliant standard Xposed module! If you have root with LSPosed, you can simply install Simple_Flag_Secure_LSPatch_v10.1.apk, enable it in the LSPosed Manager, check your target apps in its scope, and you are good to go!

Recommended Tool

Step-by-Step Instructions:

  1. Download & Install:
  2. Open LSPatch:
    • Open LSPatch and grant the requested storage permissions.
    • Go to the Manage tab β†’ Tap the + button β†’ Select New Patch.
  3. Select Target App:
    • Choose the application where screenshots are blocked (either from installed apps or by picking an APK file directly).
  4. Embed Simple Flag Secure:
    • Choose Portable Mode (embeds module directly so LSPatch app isn't needed later).
    • Under Embed modules, tap + and choose the downloaded Simple_Flag_Secure_LSPatch_v10.1.apk.
  5. Start Patching:
    • Tap Start Patching. LSPatch will recompile and resign the target APK.
  6. Install the Patched App:
    • Uninstall the original target app from your device (backup your data first!).
    • Install the patched APK produced by LSPatch.
  7. Done! Screenshots and screen recordings are now permanently unlocked inside that app without requiring root access.

⚑ Rooted Users: Zygisk Edition Setup

Recommended Zygisk Providers:

Setup & Troubleshooting for Zygisk Edition:

  • Recommended Setup: Use the latest Zygisk Next or ReZygisk CI. They hook into apps properly even when modules or Zygisk are hidden or unmounted for that app!
  • If Screenshots Aren't Unlocking (Standard Magisk Zygisk):
    • Magisk's built-in Zygisk completely unloads modules for any app checked in the DenyList.
    • To allow screenshots in a target app, turn OFF DenyList (Magisk), Umount (KernelSU), or Exclude Modifications (APatch) for that app so the in-app hook can load.
  • If Detected by Banking Apps:
    • Simply add those sensitive apps to DenyList (Magisk), Umount (KernelSU), or Exclude Modifications (APatch) to hide root and Zygisk traces from them completely.

πŸ›‘οΈ Rooted Users: Standalone Edition Setup

The Standalone Edition patches screenshot restrictions directly at boot without needing Zygisk, LSPosed, or any meta-modules (like NoMount or Hybrid Mount).

It operates completely standalone and hides itself well on most systems. However, on some stock ROMs with strict kernel protections (such as Samsung Knox / One UI), the kernel does not allow mounting from in-memory staging, forcing the module to fall back to legacy direct bind-mounting to ensure it still functions. On these devices, the fallback mount path may be detected unless:

  • You have a kernel with SusFS support, or
  • You use a meta-module like NoMount to hide the mount detection.

Tip

If you are on Samsung Knox or a strict ROM and do not have SusFS or NoMount, simply use the ⚑ Zygisk Edition with the latest Zygisk Next or ReZygisk, which runs 100% in RAM with zero filesystem mounts.


πŸŽ›οΈ Privacy Mode (Instant Toggle)

Need to temporarily block screenshots and screen recordings for extra privacy? Simple Flag Secure includes a built-in Privacy Mode that lets you toggle states on the fly without rebooting your phone:

  • βœ… ALLOWED: Screenshots & recordings work everywhere.
  • ❌ BLOCKED (Privacy Mode): Screenshots & recordings are blocked system-wide.

How to use:

  1. Tap the Action button in your root manager (Magisk, KernelSU, or APatch).
  2. Press Volume Up [Vol +] within 30 seconds to instantly switch modes.
  3. (Bonus) Press Volume Down [Vol -] if you ever need to record a quick diagnostic log.

Tip

You can also toggle it from a terminal (Termux) anytime:

  • Turn Privacy Mode ON (Blocked): su -c "/data/adb/modules/simple_flag_secure*/action.sh block"
  • Turn Privacy Mode OFF (Allowed): su -c "/data/adb/modules/simple_flag_secure*/action.sh allow"

πŸ“₯ Installation Summary

  1. Download your preferred edition from Releases:
    • ⚑ Simple_Flag_Secure_Zygisk_v10.1.zip (for Zygisk users)
    • πŸ›‘οΈ Simple_Flag_Secure_v10.1.zip (for Standalone users)
    • πŸ“± Simple_Flag_Secure_LSPatch_v10.1.apk (for Non-Root LSPatch / LSPosed users)
  2. Installation by Variant:
    • For Zygisk & Standalone: Flash the ZIP inside Magisk, KernelSU, or APatch manager β†’ Modules β†’ Install from storage β†’ Reboot.
    • For Non-Root (LSPatch) & LSPosed: Follow the dedicated πŸ“± LSPatch & LSPosed Setup Guide above to patch your target apps with zero root, or install and enable it inside your LSPosed manager!
  3. Test: Try taking a screenshot in an app that normally blocks it (e.g., Chrome Incognito).

πŸ“’ Important Note for Future Updates & Support

Important

A message from the developer: Due to current personal financial constraints, I cannot dedicate as much time to active daily maintenance or immediate personal support for this module.

How you can help keep Simple Flag Secure alive:

  1. Support via Donation: If the module has helped you, even a small donation goes a long way toward keeping the project maintained.
  2. Self-Debug with AI & Community Contribution:
    • Simple Flag Secure has built-in comprehensive diagnostic logging ([Vol -] in the Action menu creates sfs.log + sfs_report.tar.gz in your Downloads folder).
    • If you encounter an issue on your device, feed your diagnostic logs directly into modern AI models (like Gemini, Claude, or ChatGPT) to pinpoint why your ROM blocked screenshots or failed to mount!
    • If you or an AI find a fix or optimization, please open a Pull Request (PR) so the entire community benefits!
  3. Telegram Discussion: If you cannot resolve it yourself, report it with your sfs.log in our group: @BuildBytesDiscussion. Please understand that immediate individual support cannot be guaranteed.

πŸ™ Support & Donations

If you find Simple Flag Secure useful and would like to support its development:


πŸ™Œ Credits

  • j-hc (ih8SecureLock) β€” For the in-app per-process IPCThreadState hook implementation concept.
  • Varun Date (Disable-FLAG_SECURE) β€” For the original Xposed hook implementation concept used in the LSPatch / LSPosed edition.
  • @dkvodao β€” Tested the Zygisk edition.
  • @PParker110 β€” Tested the Standalone edition with fixes on OxygenOS / ColorOS 14 (OnePlus 9 Pro).
  • @ShastikXD (Dev) β€” Tested the Non-Root LSPatch edition.
  • ShirigiriPatil β€” Tested the module on KernelSU.
  • LazyMeao & @Black_luciferS β€” Tested on Realme UI 2.0 for compatibility and Toggle Action.
  • ShishirThakur β€” Tested screenshot detection functionality on Android 14+.
  • Marmot β€” Tested on MIUI Android 11 using SukiSU.
  • @nyxnrv β€” Tested on HyperOS Android 17 KernelSU.
  • @Vikrant_R_Rajput β€” Tested on Samsung OneUI Port Magisk.
  • @idral β€” Tested standalone mounting.
  • @pocexa β€” Tested on Poco X6 Pro for screenshot timeout issues.

About

πŸ‘€ Lightweight root module that disables FLAG_SECURE, enabling screenshots & screen recording in restricted apps. Hides screenshot detection. Includes a toggleable privacy mode to block screenshots system-wide. Supports Magisk, KernelSU, APatch & forks with no extra dependencies.

Topics

Resources

Stars

169 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages