Skip to content

Commit

Permalink
优化camera2
Browse files Browse the repository at this point in the history
optimize camera2 API
  • Loading branch information
w2016561536 committed Sep 25, 2021
1 parent 07970ff commit b75a128
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified app/release/app-release.apk
Binary file not shown.
1 change: 1 addition & 0 deletions app/src/main/java/com/example/vcam/HookMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ public void process_camera2_init(Class hooked_class) {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
need_recreate = true;
create_virtual_surface();
XposedHelpers.findAndHookMethod(param.args[0].getClass(), "createCaptureSession", List.class, CameraCaptureSession.StateCallback.class, Handler.class, new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam paramd) throws Throwable {
Expand Down

0 comments on commit b75a128

Please sign in to comment.