1.直接上代码自己领悟
代码语言:txt
复制Java.perform(function () {
var xx = Java.use("xxx");
//其中a为方法名,overload为重加载 ,"android.content.Context", "java.util.Map"为方法入参的数据类型
xxx.b.overload('java.util.Map').implementation = function (args1) {
var result = "";
var keyset = args1.keySet();
var it = keyset.iterator();
while (it.hasNext()) {
var keystr = it.next().toString();
var valuestr = args1.get(keystr).toString();
console.log(keystr)
console.log(valuestr)
result = valuestr;
}
var args = this.b(args1)
console.log("出参--", args)
return args
}
}