mock_service

command
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: CC0-1.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL