// 获得Toast组件
var Toast = Java.use("android.widget.Toast");
var makeText = Toast.makeText;
var String = Java.use("java.lang.String");
// 函数重载, 设置参数类型
makeText.overload("android.content.Context", "java.lang.CharSequence", "int").implementation = function (
context,
content,
time
) {
var hookContent = String.$new(content);
printStack();
return this.makeText(context, hookContent, time);
};
标签:Toast,hookContent,String,content,hook,makeText,var,frida
From: https://www.cnblogs.com/c-x-a/p/17551166.html