为了分析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