Documentation
¶
Overview ¶
Register a Go binder service using a generated AIDL stub.
Same functionality as server_service (ping + echo), but uses the generated IPingService proxy and stub from com/example/ipingservice.go instead of raw OnTransaction + WriteString16. The AIDL source is at tools/pkg/3rdparty/examples/aidl/com/example/IPingService.aidl.
Build:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/server_service_aidl ./examples/server_service_aidl/ adb push build/server_service_aidl /data/local/tmp/ && adb shell /data/local/tmp/server_service_aidl
Click to show internal directories.
Click to hide internal directories.