mirror of
https://github.com/LSPosed/DisableFlagSecure.git
synced 2025-05-04 22:29:43 +08:00
hook screen capture in system_server on S to U
This commit is contained in:
parent
4df65a68c3
commit
e8c1d9335b
@ -48,13 +48,6 @@ public class DisableFlagSecure extends XposedModule {
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||
// ScreenCapture in WindowManagerService (U)
|
||||
try {
|
||||
hookScreenCapture(classLoader);
|
||||
} catch (Throwable t) {
|
||||
log("hook ScreenCapture failed", t);
|
||||
}
|
||||
|
||||
// Screenshot detection (U)
|
||||
try {
|
||||
hookActivityTaskManagerService(classLoader);
|
||||
@ -72,6 +65,13 @@ public class DisableFlagSecure extends XposedModule {
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
||||
// ScreenCapture in WindowManagerService (S~U)
|
||||
try {
|
||||
hookScreenCapture(classLoader);
|
||||
} catch (Throwable t) {
|
||||
log("hook ScreenCapture failed", t);
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||
// Blackout permission check (S~T)
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user