screenshot-protection
4 views
6f772397...
Description
Frida script to bypass Android’s FLAG_SECURE protection, allowing screenshots and screen recording in apps that normally block them. #Android, #Frida, #FLAG_SECURE, #screenshot, #screen_recording, #bypass
How to Use
Download the script and run it with Frida CLI:
Download ScriptThen run with Frida:
frida -U -f YOUR_PACKAGE_NAME -l screenshot-protection.js
Replace YOUR_PACKAGE_NAME with the target app's package name.
Source Code
JavaScript
Java.perform(function() {
var Window = Java.use("android.view.Window");
Window.setFlags.implementation = function(flags, mask) {
var FLAG_SECURE = 0x2000;
flags = flags & ~FLAG_SECURE;
mask = mask & ~FLAG_SECURE;
console.log("Bypassed FLAG_SECURE");
return this.setFlags(flags, mask);
};
});
Comments