Xposed: How to hook Constructors with parameters in Nested Class

707 Views Asked by At

In order to analyse app, I need to hook

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) {
                     ……
                }
            }
      }
 }

I want to hook 2 Constructors -- ReceiverDispatcherArgs, and get the value of their parameters.

when I using findAndHookConstructor,

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

There are 0 best solutions below