mirror of
https://github.com/LSPosed/DisableFlagSecure.git
synced 2025-05-05 01:59: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) {
|
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)
|
// Screenshot detection (U)
|
||||||
try {
|
try {
|
||||||
hookActivityTaskManagerService(classLoader);
|
hookActivityTaskManagerService(classLoader);
|
||||||
@ -72,6 +65,13 @@ public class DisableFlagSecure extends XposedModule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
|
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) {
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
|
||||||
// Blackout permission check (S~T)
|
// Blackout permission check (S~T)
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user