2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > android 如何重载函数 android - 如何在Frida中使用“ int”重载函数 - 堆栈内存溢出...

android 如何重载函数 android - 如何在Frida中使用“ int”重载函数 - 堆栈内存溢出...

时间:2018-09-07 05:41:44

相关推荐

android 如何重载函数 android - 如何在Frida中使用“ int”重载函数 - 堆栈内存溢出...

我有以下功能:

public final int getState(@NotNull String str, int i) {

Intrinsics.checkParameterIsNotNull(str, "key");

return PreferenceManager.getDefaultSharedPreferences(this).getInt(str, i);

}

我不知道谁在重载时使用int参数。 这是我尝试的:

var myapp= Java.use('com.myapp.AppActivity');

myapp.cleanUi.overload().implementation = function () {

console.log('! Intercepted cleanUi');

}

它抛出异常:

{'type': 'error', 'description': "Error: getState(): specified argument types do not match any of:

.overload('java.lang.String', 'java.lang.String')

.overload('java.lang.String', 'float')

.overload('java.lang.String', 'int')", 'stack': "Error: getState(): specified argument types do not match any of:

.overload('java.lang.String', 'java.lang.String')

.overload('java.lang.String', 'float')

.overload('java.lang.String', 'int')

at throwOverloadError (frida/node_modules/frida-java/lib/class-factory.js:2233)

at frida/node_modules/frida-java/lib/class-factory.js:1422

at [anon] (/script1.js:25)

at frida/node_modules/frida-java/lib/vm.js:42

at M (frida/node_modules/frida-java/index.js:347)

at frida/node_modules/frida-java/index.js:299

at frida/node_modules/frida-java/lib/vm.js:42

at frida/node_modules/frida-java/index.js:279

at /script1.js:82", 'fileName': 'frida/node_modules/frida-java/lib/class-factory.js', 'lineNumber': 2233, 'columnNumber': 1}

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。