logos icon indicating copy to clipboard operation
logos copied to clipboard

Add basic libhooker API support

Open ren7995 opened this issue 4 years ago • 1 comments

DISCLAIMER: This is not in any way finished, I don't even know perl. It is my hopes this can be a good starting point that other, smarter people can use to build from This pull request adds support for using the libhooker APIs directly if available, and falling back to MobileSubstrate

Does this provide any real benefit for end users? No, not really, the shims for MobileSubstrate functions on libhooker still work fine; the only case the shim could really be less efficient than directly supporting the libhooker API is when hooking C functions.

Quite simply, I made this pull request because Coolstar said "why don't you make a PR for logos then if it's that easy". It was that easy.

What needs to be done before merging:

  • Actually batch hooking for C functions as to not dlsym and call LHHookFunctions for every one (this probably would require a lot of work, but this would allow Logos hookf to utilize the benefits of libhooker's API)
  • Perhaps clean up the code

ren7995 avatar Jun 12 '21 16:06 ren7995

Now that libhooker support has been merged for some time, do we want to close this?

L1ghtmann avatar Nov 23 '24 19:11 L1ghtmann