为了分析应用程序,我需要挂钩
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、<strong>Args,并获取它们的参数值。
当我使用 findAndHookConstructor 时,
java.lang.NoSuchMethodError: android.app.LoadedApk$ReceiverDispatcher()#exact