Documentation
¶
Overview ¶
Create a mock binder service for testing.
Registers a mock service implementing TransactionReceiver and tests it with in-process calls. Falls back to in-process self-test when ServiceManager registration is denied by SELinux.
Build:
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/mock_service ./examples/mock_service/ adb push build/mock_service /data/local/tmp/ && adb shell /data/local/tmp/mock_service
Click to show internal directories.
Click to hide internal directories.