Documentation
¶
Overview ¶
Expose a bridge service that forwards calls to another binder service.
Demonstrates using a generated AIDL stub to create a "bridge" service that wraps another binder service. The bridge intercepts ping/echo calls and can log, transform, or rate-limit them before forwarding.
This extends the server_service concept by showing how a Go binder service can act as an intermediary (proxy/bridge) between clients and an underlying service.
Build:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/aidl_bridge ./examples/aidl_bridge/ adb push build/aidl_bridge /data/local/tmp/ && adb shell /data/local/tmp/aidl_bridge
Click to show internal directories.
Click to hide internal directories.