chore: Separate extensions by app (#3905)

This commit is contained in:
oSumAtrIX 2024-12-05 12:12:48 +01:00 committed by GitHub
parent 69ec47cbef
commit cc40246e60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
314 changed files with 371 additions and 148 deletions

View file

@ -0,0 +1 @@
android.namespace = "app.revanced.extension"

View file

@ -0,0 +1,15 @@
package app.revanced.extension.all.screenshot.removerestriction;
import android.view.Window;
import android.view.WindowManager;
public class RemoveScreenshotRestrictionPatch {
public static void addFlags(Window window, int flags) {
window.addFlags(flags & ~WindowManager.LayoutParams.FLAG_SECURE);
}
public static void setFlags(Window window, int flags, int mask) {
window.setFlags(flags & ~WindowManager.LayoutParams.FLAG_SECURE, mask & ~WindowManager.LayoutParams.FLAG_SECURE);
}
}