support scrcpy

This commit is contained in:
tehcneko 2025-03-04 19:46:18 +08:00
parent aa56f32b6a
commit a5461af177

View File

@ -384,7 +384,7 @@ public class DisableFlagSecure extends XposedModule {
@BeforeInvocation @BeforeInvocation
public static void before(@NonNull BeforeHookCallback callback) { public static void before(@NonNull BeforeHookCallback callback) {
var caller = (int) callback.getArgs()[2]; var caller = (int) callback.getArgs()[2];
if (caller != 1000 && callback.getArgs()[1] == null) { if (caller >= 10000 && callback.getArgs()[1] == null) {
// not os and not media projection // not os and not media projection
return; return;
} }