Chacolate

↑ ↓ Select · Enter Open · Esc Close

BinderLab

Device experiments for Android Binder with reproducible setups and observations.

Device experiment · Android 16 / API 36 · AIDL · JDK 21 · MIT

For Android systems developers studying Binder. Fixed experiment modes and request IDs distinguish client, server Binder thread and Handler timing.

Question and environment

After a Binder call arrives, where does latency accumulate: in the Binder thread or in the Handler queue? The comparison uses published v1.3 traces from an Android 16 / API 36 device.

Android 16 device trace run-01 · v1.3
  1. ClientSend request
  2. H0BPost to queue
  3. H1Start handler
Handler wait · baseline
4.72 ms
Handler wait · injected block
1,501.21 ms
Read the underlying evidence

These timings come from a specific trace and an injected block. Compute H0B → H1 from the corresponding traces when evaluating other devices or workloads.

Verify and use

  1. Start with the pinned v1.3 evidence release. The device runs Android 16, API 36, with SDK 36.1 used for the build.
  2. Follow the repository README to build and check the device. Capture the baseline and blocked mode separately, and compare markers for the same request ID.
  3. Compare H0B and H1 for the same request ID to isolate time spent waiting in the Handler queue.
.\run-experiment.ps1 -Mode handler-latency-baseline
.\run-experiment.ps1 -Mode handler-latency-blocked

Browse desktop apps