Skip to content

Commit

Permalink
修改参数调用栈返回值不匹配的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
r0ysue authored Jun 21, 2021
1 parent af31d93 commit e62a340
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions r0tracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,10 @@ function traceMethod(targetClassMethod) {
for (var p = 0; p < 100; p++) {
output = output.concat("==");
}
console.Gray(output);
var output = "";
console.Gray(output);
//域值
output = inspectObject(this, output);
console.Blue(output);
var output = "";
console.Blue(output);
//进入函数
output = output.concat("\n*** entered " + targetClassMethod);
output = output.concat("\r\n")
Expand All @@ -119,8 +117,7 @@ function traceMethod(targetClassMethod) {
}
//调用栈
output = output.concat(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Throwable").$new()));
console.Green(output);
var output = "";
console.Green(output);
var retval = this[targetMethod].apply(this, arguments);
//返回值
output = output.concat("\nretval: " + retval + " => " + JSON.stringify(retval));
Expand Down

0 comments on commit e62a340

Please sign in to comment.