Skip to content

Commit

Permalink
根据 @bad-copy 的建议,做出了NULL的判断
Browse files Browse the repository at this point in the history
  • Loading branch information
w2016561536 committed Aug 23, 2021
1 parent 2ed8118 commit a73a786
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Binary file modified app/release/app-release.apk
Binary file not shown.
3 changes: 3 additions & 0 deletions app/src/main/java/com/example/vcam/HookMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public void handleLoadPackage(final XC_LoadPackage.LoadPackageParam lpparam) thr
@SuppressLint("SdCardPath")
@Override
protected void beforeHookedMethod(MethodHookParam param) {
if (param.args[0] == null){
return;
}

if (reallycamera != null && reallycamera.equals((Camera) param.thisObject)) {
param.args[0] = HookMain.virtual_st;
Expand Down

0 comments on commit a73a786

Please sign in to comment.