Expose hook framework capabilities to modules, for various reasons. One reason is to avoid memory allocations, JNI reflections etc to improve performance.
@hide
interface RawHook {
RawHookHandle hookRaw(
@NonNull Method target,
@NonNull Method hook,
@NonNull Method original
);
}
interface RawHookHandle {
Method getExecutable();
void unhook();
}
Expose hook framework capabilities to modules, for various reasons. One reason is to avoid memory allocations, JNI reflections etc to improve performance.