shadowhook is an open-source native code hooking library for Android — designed to let developers intercept and override native (C/C++) functions inside Android apps at runtime. It supports both ARM32 and ARM64 architectures (and the respective “thumb” instruction set) and works across a wide range of Android OS versions. The library allows you to specify hook targets either by function address or by library name + function name, and it automatically handles newly loaded shared libraries (ELFs), ensuring hooks remain effective even when code is dynamically loaded at runtime. ShadowHook strives to be stable and safe for production use: it automatically avoids circular-call recursion between original and proxy functions, and supports unwind/unwind-safe proxy functions (CFI/FP unwind) so that backtraces, debugging, and stack unwinding remain correct. It also offers optional intercept and logging capabilities, letting developers record hooked calls.

Features

  • Support for ARM32 and ARM64, including “thumb” instruction mode, enabling hooking on broad Android devices
  • Function hooking by address or by “library name + symbol name,” giving flexibility in how hooks are specified
  • Automatic hooking of newly loaded shared libraries (ELFs), ensuring dynamic libs are also intercepted
  • Prevention of recursive or circular calls between proxy and original functions to avoid infinite loops or crashes
  • Prevention of recursive or circular calls between proxy and original functions to avoid infinite loops or crashes
  • MIT-licensed and stable enough for production use (used internally by large apps), enabling embedding or integration into other tools

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow shadowhook

shadowhook Web Site

Other Useful Business Software
Paessler: Easy to Use With Enterprise Power. Free Trial Icon
Paessler: Easy to Use With Enterprise Power. Free Trial

A low-code dashboard makes monitoring intuitive for any admin, while scripting and custom sensors give experts full control.

You shouldn't have to choose between a monitoring tool that's easy to use and one that's powerful enough for a complex environment. PRTG's low-code interface lets any admin build dashboards, set alerts and monitor devices without scripting, while custom sensors and full API access are there when your team needs deeper control. One platform, no compromise. Download a free 30-day trial now.
Get Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of shadowhook!

Additional Project Details

Operating Systems

Android

Programming Language

C

Related Categories

C Artificial Intelligence Software

Registered

2025-12-01