You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title says, it works in the simulator, but has no effect on-device. I came across this issue, but I don't really understand what might be going wrong. rebind_symbols returns 0 in both cases, and stepping through the code running on-device I can see that fishhook does indeed find the symbol and does replace it here from within __la_symbol_ptr:
When I set a breakpoint for the original function, I can see it's being called instead of my replacement. Here's a screenshot of the debugger:
Is _CFLogvEx3 just not using the lazy binding in this case? Does that mean I'll need to use another hooking library that uses trampolines?
The text was updated successfully, but these errors were encountered:
NSExceptional
changed the title
Hook works in iOS simulator but not on-device
Hook works in iOS simulator but not called on-device
Feb 19, 2020
NSExceptional
changed the title
Hook works in iOS simulator but not called on-device
Hook called in iOS simulator but not called on-device
Feb 19, 2020
I think calls to symbols in the shared cache just go through directly, since they're all linked together? Since the simulator doesn't use a shared cache (to my knowledge) it must go through a PLT stub, which fishhook can intercept.
I'm trying to hook
os_log_shim_enabled
, a private function in CoreFoundation that changes howNSLog()
behaves. Here's my code:As the title says, it works in the simulator, but has no effect on-device. I came across this issue, but I don't really understand what might be going wrong.
rebind_symbols
returns 0 in both cases, and stepping through the code running on-device I can see that fishhook does indeed find the symbol and does replace it here from within__la_symbol_ptr
:When I set a breakpoint for the original function, I can see it's being called instead of my replacement. Here's a screenshot of the debugger:
Is
_CFLogvEx3
just not using the lazy binding in this case? Does that mean I'll need to use another hooking library that uses trampolines?The text was updated successfully, but these errors were encountered: