Skip to content

Commit f991970

Browse files
authored
Create README.md
1 parent 2fd8832 commit f991970

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

README.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Disable FLAG_SECURE (Xposed / LSPosed / LSPatch)
2+
3+
An **Xposed / LSPosed compatible module** that disables `FLAG_SECURE` for Android applications, allowing screenshots, screen recording, and mirroring in apps that normally block them.
4+
5+
---
6+
7+
## ✨ Features
8+
9+
- Removes `FLAG_SECURE` from app windows
10+
- Allows screenshots & screen recording
11+
- Works with:
12+
- **LSPosed**
13+
- **LSPatch (non-root)**
14+
15+
16+
---
17+
18+
## 🛠 How It Works
19+
20+
This module hooks into Android window APIs and removes `FLAG_SECURE` flags at runtime:
21+
22+
- `Window.setFlags(...)`
23+
- `SurfaceView.setSecure(false)`
24+
- `WindowManagerGlobal.addView(...)`
25+
- `WindowManagerGlobal.updateViewLayout(...)`
26+
27+
This ensures apps cannot enforce secure display restrictions.
28+
29+
---
30+
31+
## 📦 Installation
32+
33+
### 🔹 LSPosed (Root)
34+
35+
1. Install the APK
36+
2. Open **LSPosed Manager**
37+
3. Enable the module
38+
4. Select target apps (scope)
39+
5. Reboot or force-stop the target app
40+
41+
---
42+
43+
### 🔹 LSPatch (Non-Root)
44+
45+
1. Patch the target app using **LSPatch**
46+
2. Enable **Disable FLAG_SECURE** in module list
47+
3. Launch the patched app
48+
49+
> ⚠️ Some apps may show a black screen if they use DRM or hardware-secure rendering.
50+
51+
---
52+
53+
## 📋 Requirements
54+
55+
- Android 5.0+ (API 21+)
56+
- LSPosed / LSPatch
57+
- Xposed API ≥ 93
58+
59+
---
60+
61+
## 🧩 Module Info
62+
63+
- **Package:** `com.flag.secure`
64+
- **Entry Class:** `com.flag.secure.DisableFlagSecure`
65+
- **Type:** Xposed module (no launcher UI)
66+
67+
---
68+
69+
## ⚠️ Limitations
70+
71+
- DRM-based apps may still show black screen
72+
- Some apps actively detect screen capture
73+
- This module cannot bypass hardware-level DRM
74+
75+
---
76+
77+
## ⚠️ Disclaimer (Yes, This Is About Privacy)
78+
79+
This module disables `FLAG_SECURE` **only at the system UI level**.
80+
It does not give you permission, rights, or moral superiority.
81+
82+
That’s not “testing” — that’s **your responsibility**.
83+
84+
The developer does **not** encourage:
85+
- Privacy invasion
86+
- Harassment
87+
- Misuse of captured content
88+
89+
This module is intended for **personal experimentation, debugging, and learning**.
90+
91+
Respect people’s privacy.
92+
Use your brain before using the screenshot button.
93+
94+
---
95+
96+
## 📜 License
97+
98+
MIT License

0 commit comments

Comments
 (0)