Skip to main content

Module binder

Module binder 

Source
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.

All public types are gated on #[cfg(target_os = "android")]. On other targets every entry point returns CoreError::Binder.

§Transaction code resolution

IActivityManager transaction codes are AIDL-generated and shift with each AOSP release. Resolution order (no subprocess required):

  1. Parse /data/local/tmp/tx_code.txt if present (written by fgw).
  2. Look up a known code from the ro.build.version.sdk property table.
  3. Linear probe codes in a narrow SDK-version-dependent window.

Structs§

ActivityManagerBinder