canyie/pine

PendingHookHandler depends on default handler's internal behavior

canyie opened this issue · 0 comments

if (newMethod) recordMethodHooked(hookRecord.artMethod, PREVENT_ENTRY_UPDATE);
MethodHook.Unhook u = realHandler.handleHook(hookRecord, hook, modifiers, newMethod, canInitDeclaringClass);
if (newMethod) recordMethodHooked(hookRecord.artMethod, Pine.getArtMethod(hookRecord.backup));

recordMethodHooked(hookRecord.artMethod, PREVENT_ENTRY_UPDATE);
realHandler.handleHook(hookRecord, null, target.getModifiers(), true, false);
recordMethodHooked(hookRecord.artMethod, Pine.getArtMethod(hookRecord.backup));