frida框架hook获取方法输出参数(常用于简单的so输出参数获取,快速开发)
一.模板
function douyinencode(data) {
var result = {};
Java.perform(function () {
try {
var Test = Java.use("类名");
result = Test.方法名(入参);
result = {"code": 0, "value":result};
} catch (e) {
result = {"code": 1, "value": e.toString()};
}
});
return result
};