Expand description
NDK binder primitives for querying Android system services.
Uses dlopen on libbinder_ndk.so to avoid hard-linking against a library
absent from older NDK toolchains or non-Android targets.
§Transaction code resolution
Transaction codes are resolved fresh from framework.jar DEX on each
startup; no persistent cache.
§Observer mode
ActivityManagerBinder::open_with_observer registers this process as an
IProcessObserver with ActivityManager. Callbacks fire when foreground
activities change and signal an eventfd that callers can poll via epoll.
After the eventfd fires, call get_focused_package to read the new value.