0

假设我有以下钩子:

Java.perform(function() {
     var test = Java.use('hello.world');
     test.test2.overload('int').implementation = function(arg0) {
          console.log(this);
     return this.test(arg0);
}

它给了我

{$handle: '0x2345', '$weakRef': 283}

但我知道它有一个我想访问的字段。

我如何访问这个?

4

1 回答 1

0

Java.cast(this, Java.use('com.whatever.class')).fieldName.value

您还可以从.$className

于 2019-07-31T15:46:12.457 回答