function traceClass(clazName) {
var hook
=
Java.use(clazName);
hook.pack.overload(
'[B'
,
'com.txxxxx.mm.pointers.PByteArray'
,
'[B'
,
'int'
,
'[B'
,
'java.lang.String'
,
'int'
,
'int'
,
'int'
,
'[B'
,
'[B'
,
'int'
,
'int'
,
'int'
).implementation
=
function () {
var args
=
arguments
for
(var i
in
args[
1
]){
send(args[
1
][i])
}
send(args[
1
][
'value'
].value)
var retval
=
this.pack.
apply
(this,arguments)
return
retval
}
}
function Main() {
Java.perform(function () {
traceClass(
'com.txxxxx.mm.protocal.MMProtocalJni'
)
})
}
Java.perform(Main);