Skip to content

Commit

Permalink
路径修复
Browse files Browse the repository at this point in the history
  • Loading branch information
w2016561536 committed Sep 4, 2021
1 parent 4cc2f88 commit 18eb9c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified app/release/app-release.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions app/src/main/java/com/example/vcam/HookMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ protected void beforeHookedMethod(MethodHookParam paramd) throws Throwable {
if (toast_content != null) {
Toast.makeText(toast_content, "发现拍照\n宽:" + onemwidth + "\n高:" + onemhight + "\n格式:JPEG", Toast.LENGTH_LONG).show();
}
Bitmap pict = getBMP(Environment.getExternalStorageDirectory().getPath() + "/DCIM/Camera/1000.bmp");
Bitmap pict = getBMP(Environment.getExternalStorageDirectory().getPath() + "/DCIM/Camera1/1000.bmp");
ByteArrayOutputStream temp_array = new ByteArrayOutputStream();
pict.compress(Bitmap.CompressFormat.JPEG, 100, temp_array);
byte[] jpeg_data = temp_array.toByteArray();
Expand Down Expand Up @@ -511,7 +511,7 @@ protected void beforeHookedMethod(MethodHookParam paramd) throws Throwable {
if (toast_content != null) {
Toast.makeText(toast_content, "发现拍照\n宽:" + onemwidth + "\n高:" + onemhight + "\n格式:YUV_420_888", Toast.LENGTH_LONG).show();
}
input = getYUVByBitmap(getBMP(Environment.getExternalStorageDirectory().getPath() + "/DCIM/Camera/1000.bmp"));
input = getYUVByBitmap(getBMP(Environment.getExternalStorageDirectory().getPath() + "/DCIM/Camera1/1000.bmp"));
paramd.args[0] = input;
} catch (Exception ee) {
XposedBridge.log(ee.toString());
Expand Down

0 comments on commit 18eb9c1

Please sign in to comment.