server_service

command
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Overview

Register a Go service with the ServiceManager and call it back.

Demonstrates implementing binder.TransactionReceiver — the server-side binder interface — and registering it via AddService. When running in a restricted SELinux context (e.g. shell), AddService will be denied; in that case the example falls back to an in-process self-test that exercises the same OnTransaction code path.

Build:

GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/server_service ./examples/server_service/
adb push build/server_service /data/local/tmp/ && adb shell /data/local/tmp/server_service

Jump to

Keyboard shortcuts

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