Xposed:如何使用嵌套类中的参数挂钩构造函数

时间:2018-01-14 13:46:51

标签: android hook xposed xposed-framework

为了分析app,我需要挂钩

public final class LoadedApk {
   ……
      static final class ReceiverDispatcher {

            ReceiverDispatcher(BroadcastReceiver receiver, Context context,
            Handler activityThread, Instrumentation instrumentation,
            boolean registered) {
                  ……
            }

            final class Args extends BroadcastReceiver.PendingResult implements Runnable {

                public Args(Intent intent, int resultCode, String resultData, Bundle resultExtras,
                      boolean ordered, boolean sticky, int sendingUser) {
                     ……
                }
            }
      }
 }

我想挂钩2个构造函数 - ReceiverDispatcher Args ,并获取其参数的值。

当我使用findAndHookConstructor时,

java.lang.NoSuchMethodError: android.app.LoadedApk$ReceiverDispatcher()#exact

0 个答案:

没有答案