我需要在Android应用程序中使用带有我自己的参数的java函数,函数如下:
private String targetFunc(int a1,int a2,int a3) {
-----(some math things)
return result;
}
我需要能够使用我自己的参数来使用这个函数,当它调用etc时我可以解析这个函数的参数,但我不知道如何使用/调用它。
据我了解,您指的是使用 frida 进行函数挂钩。使用以下步骤:
var c = Java.use('<your_class_name>')
var c_ins = c.$new()
c.method_name.implementation = function(arg1, arg2, arg3) {
// do your stuff with arg1, arg2, arg3
// return if necessary.
有关详细信息,请查看此链接。