Category : reverse-engineering

I want to overload following method that I found by decompiling Android app with apktool: invoke-virtual {v0, v4, v3}, Lokhttp3/aa$a;->b(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/aa$a; Here is my Frida script: Java.perform(function() { var targetClass = Java.use("okhttp3.aa$a"); targetClass.b.overload("java.lang.String", "java.lang.String").implementation = function(a, b) { console.log("str1:" + a); console.log("str2:" + b); return this.b(a, b); } }); Hook fails with: [ERROR] Error: expected a ..

Read more