能力值:
( LV1,RANK:0 )
|
-
-
[求助] frida hook精度丢失解决办法
感谢飞虫兄弟,虽然回帖并不是我原本需求,不过思路已经解释清楚,后面这类情况知道解决办法了,附上我修改后的代码,问题已解决 alterText.call(this, Java.use('java.lang.Long').parseLong.overload('java.lang.String').call(Java.use('java.lang.Long'), "4891443766394045000"));
最后于 2020-2-22 15:48
被mrmoney编辑
,原因:
|
能力值:
( LV1,RANK:0 )
|
-
-
|
能力值:
( LV1,RANK:0 )
|
-
-
[求助] frida hook精度丢失解决办法
安卓部分代码 // 安卓部分代码。hook alterText方法修改num,frida输入参数为6791443766394045000,出现精度丢失现象
private void alterText(long num)
{
textView.setText(String.valueOf(num));
} frida部分代码 my_class.alterText.overload('long').implementation = function () {
//打印替换前的参数
console.log("args:", arguments[0]);
var ret_value = this.alterText(7791443766394045000);
return ret_value;
}
最后于 2020-2-21 18:10
被mrmoney编辑
,原因:
|