Skip to content

Commit f224868

Browse files
committed
Android 12: Fix listenWithEventList
Signed-off-by: tiann <[email protected]>
1 parent c38673a commit f224868

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

VirtualApp/lib/src/main/java/com/lody/virtual/client/hook/proxies/telephony/TelephonyRegistryStub.java

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.lody.virtual.client.hook.base.BinderInvocationProxy;
66
import com.lody.virtual.client.hook.base.ReplaceCallingPkgMethodProxy;
77
import com.lody.virtual.client.hook.base.ReplaceSequencePkgMethodProxy;
8+
import com.lody.virtual.helper.compat.BuildCompat;
89

910
import java.lang.reflect.Method;
1011

@@ -39,5 +40,9 @@ public boolean beforeCall(Object who, Method method, Object... args) {
3940
return super.beforeCall(who, method, args);
4041
}
4142
});
43+
44+
if (BuildCompat.isS()) {
45+
addMethodProxy(new ReplaceCallingPkgMethodProxy("listenWithEventList"));
46+
}
4247
}
4348
}

0 commit comments

Comments
 (0)