fix hookOverloads
`overloads[i].hasOwnProperty('argumentTypes')` will return false even if it has argumentTypes property on android device.
This commit is contained in:
parent
03a26f73ca
commit
9baa12b04f
@ -1640,7 +1640,7 @@ function hookOverloads(className, func) {
|
|||||||
var clazz = Java.use(className);
|
var clazz = Java.use(className);
|
||||||
var overloads = clazz[func].overloads;
|
var overloads = clazz[func].overloads;
|
||||||
for (var i in overloads) {
|
for (var i in overloads) {
|
||||||
if (overloads[i].hasOwnProperty('argumentTypes')) {
|
if (overloads[i].hasOwnProperty('argumentTypes') || overloads[i]['argumentTypes'] != undefined) {
|
||||||
var parameters = [];
|
var parameters = [];
|
||||||
|
|
||||||
var curArgumentTypes = overloads[i].argumentTypes, args = [], argLog = '[';
|
var curArgumentTypes = overloads[i].argumentTypes, args = [], argLog = '[';
|
||||||
|
Loading…
Reference in New Issue
Block a user