Call Android system services from pure Go. Provides ~14,000 type-safe Go methods across 1,500+ Android interfaces — ActivityManager, PowerManager, SurfaceFlinger, PackageManager, audio, camera and sensor HALs, and more — by speaking the Binder IPC wire protocol directly via /dev/binder ioctl syscalls. No Java, no NDK, no cgo required.
Includes a complete AIDL compiler that parses Android Interface Definition Language files and generates the Go proxies, a version-aware runtime that adapts transaction codes across Android API levels, and a CLI tool (bindercli) for interactive service discovery and invocation.
This project is part of a family of three Go libraries that cover the major Android interface surfaces. Each wraps a different layer of the Android platform:
graph TD
subgraph "Go application"
GO["Go code"]
end
subgraph "Interface libraries"
NDK["<b>ndk</b><br/>C API bindings via cgo"]
JNI["<b>jni</b><br/>Java API bindings via JNI+cgo"]
AIDL["<b>binder</b><br/>Binder IPC, pure Go"]
end
subgraph "Android platform"
CAPI["NDK C libraries<br/>(libcamera2ndk, libaaudio,<br/>libEGL, libvulkan, ...)"]
JAVA["Java SDK<br/>(android.bluetooth,<br/>android.location, ...)"]
BINDER["/dev/binder<br/>kernel driver"]
SYSSVCS["System services<br/>(ActivityManager,<br/>PowerManager, ...)"]
end
GO --> NDK
GO --> JNI
GO --> AIDL
NDK -- "cgo / #include" --> CAPI
JNI -- "cgo / JNIEnv*" --> JAVA
AIDL -- "ioctl syscalls" --> BINDER
BINDER --> SYSSVCS
JAVA -. "internally uses" .-> BINDER
CAPI -. "some use" .-> BINDER
Direct system service calls without Java: works on non-Android Linux with binder, minimal footprint
When to use which
Start with ndk when the NDK provides a C API for what you need (camera, audio, sensors, EGL/Vulkan, media codecs). These are the lowest-latency, lowest-overhead bindings since they go straight from Go to the C library via cgo.
Use jni when you need a Java Android SDK API that the NDK does not expose. Examples: Bluetooth discovery, WiFi P2P, NFC tag reading, location services, telephony, content providers, notifications. JNI is also the right choice when you need to interact with Java components (Activities, Services, BroadcastReceivers) or when you need the gRPC remote-access layer.
Use binder when you want pure-Go access to Android system services without any cgo dependency. This is ideal for lightweight tools, CLI programs, or scenarios where you want to talk to the binder driver from a non-Android Linux system. AIDL covers the same system services that Java SDK wraps (ActivityManager, PowerManager, etc.) but at the wire-protocol level.
Combine them when your application needs multiple layers. For example, a streaming app might use ndk for camera capture and audio encoding, jni for Bluetooth controller discovery, and binder for querying battery status from a companion daemon.
How they relate to each other
All three libraries talk to the same Android system services, but through different paths:
The NDK C APIs are provided by Google as stable C interfaces to Android platform features. Some (camera, sensors, audio) internally use binder IPC to talk to system services; others (EGL, Vulkan, OpenGL) talk directly to kernel drivers. The ndk library wraps these C APIs via cgo.
The Java SDK uses binder IPC internally for system service access (BluetoothManager, LocationManager, etc.), routing calls through the Android Runtime (ART/Dalvik). The jni library calls into these Java APIs via the JNI C interface and cgo.
The AIDL binder protocol is the underlying IPC mechanism that system-facing NDK and Java SDK APIs use. The binder library implements this protocol directly in pure Go, bypassing both C and Java layers entirely.
The examples above cover specific subsystems, but the library supports all Android binder services — over 1,500 interfaces. To work with a service not shown above:
Find the service name. Run bindercli service list on the device, or check servicemanager/service_names_gen.go for well-known constants.
Find the generated proxy. Browse the android/ and com/ packages on pkg.go.dev or use grep:
# Find the proxy for a known AIDL interface
grep -r 'DescriptorI.*= "android.hardware.vibrator.IVibrator"' android/
Regenerates the package table in this README from spec files
bindercli
bindercli is a unified command-line tool for interacting with Android Binder services and the AIDL compiler. It auto-generates subcommands for every AIDL interface in the project (1,500+ interfaces, 14,000+ methods), so you can call any Android system service method directly from the command line with typed flags.
List all registered binder services with alive/dead status
bindercli service inspect <name>
Show a service's handle, descriptor, and alive status
bindercli service methods <name>
List all methods with their transaction codes
bindercli service transact <name> <code-or-method> [hex]
Send a raw binder transaction (code or method name)
bindercli service resolve <name> <method-or-code>
Resolve between method names and transaction codes
bindercli aidl compile [-I path] <files>
Compile .aidl files to Go
bindercli aidl parse <file>
Dump parsed AIDL AST as JSON
bindercli aidl check <files>
Validate AIDL files without generating
bindercli <descriptor> <method> [--flags]
Call any AIDL method with typed parameters
Global flags: --format json|text|auto, --binder-device, --map-size.
Examples
Note: Transaction codes are resolved dynamically from the device's framework JARs
(/system/framework/*.jar) at runtime. Compiled version tables are used as a fallback
when JARs are not readable. The service subcommands and ServiceManager-level lookups
work across all versions.
List and inspect services
# List all registered binder services with alive/dead status
bindercli service list
# Inspect a specific service (show handle, descriptor, alive status)
bindercli service inspect SurfaceFlinger
# List methods available on a service with transaction codes
bindercli service methods activity
# Resolve a method name to its transaction code (or vice versa)
bindercli service resolve activity is-user-a-monkey
# Send a raw binder transaction by method name or numeric code
bindercli service transact activity is-user-a-monkey
bindercli service transact SurfaceFlinger 64
Query power and battery state
# Check if screen is on
bindercli android.os.IPowerManager is-interactive
# Example output: {"result":true}
# Check power save mode
bindercli android.os.IPowerManager is-power-save-mode
# Example output: {"result":false}
# Check if device is in Doze mode
bindercli android.os.IPowerManager is-device-idle-mode
# Example output: {"result":false}
# Get battery health info
bindercli android.hardware.health.IHealth get-health-info
Connect to a WiFi AP with SSID "MyNetwork" and PSK "secret123"
# Step 1: Add a new network via the supplicant
bindercli android.hardware.wifi.supplicant.ISupplicantStaIface add-network
# Step 2: Set the SSID (pass as hex-encoded bytes; "MyNetwork" = 4d794e6574776f726b)
bindercli android.hardware.wifi.supplicant.ISupplicantStaNetwork set-ssid \
--ssid 4d794e6574776f726b
# Step 3: Set the WPA passphrase
bindercli android.hardware.wifi.supplicant.ISupplicantStaNetwork set-psk-passphrase \
--psk secret123
# Step 4: Set key management to WPA-PSK (bit 1 = 0x02)
bindercli android.hardware.wifi.supplicant.ISupplicantStaNetwork set-key-mgmt \
--keyMgmtMask 2
# Step 5: Enable the network to trigger connection
bindercli android.hardware.wifi.supplicant.ISupplicantStaNetwork enable \
--noConnect false
# Disconnect from current network
bindercli android.hardware.wifi.supplicant.ISupplicantStaIface disconnect
# List saved networks
bindercli android.hardware.wifi.supplicant.ISupplicantStaIface list-networks
Take a picture from the camera
# List available camera devices
bindercli android.hardware.camera.provider.ICameraProvider get-camera-id-list
# Get camera characteristics (resolution, capabilities, etc.)
bindercli android.hardware.camera.device.ICameraDevice get-camera-characteristics
# Toggle flashlight/torch mode
bindercli android.hardware.camera.provider.ICameraProvider set-torch-mode \
--cameraDeviceName "0" --enabled true
Note: Full camera capture requires a callback-driven session flow (open -> configure streams -> capture request -> receive frames). The individual steps are available as commands, but the session orchestration needs a script or the Go API directly.
Record from microphone
# Get active microphones on an input stream
bindercli android.hardware.audio.core.IStreamIn get-active-microphones
# Set microphone field dimension (for directional recording)
bindercli android.hardware.audio.core.IStreamIn set-microphone-field-dimension \
--zoom 1.0
# Set microphone direction
# 0=UNSPECIFIED, 1=FRONT, 2=BACK, 3=EXTERNAL
bindercli android.hardware.audio.core.IStreamIn set-microphone-direction \
--direction 1
Note: Actual audio capture requires opening an input stream via IModule.openInputStream() with an audio configuration, then reading PCM data from the returned stream handle. Use the Go API for the full recording flow.
Query battery, power, and thermal status
# Get current thermal status (0=none, 1=light, 2=moderate, ...)
bindercli android.os.IThermalService get-current-thermal-status
# Example output: {"result":0}
# Check if device is in power save mode
bindercli android.os.IPowerManager is-power-save-mode
# Example output: {"result":false}
# Check if device is interactive (screen on)
bindercli android.os.IPowerManager is-interactive
# Reboot the device
bindercli android.os.IPowerManager reboot \
--confirm false --reason "cli-reboot" --wait true
Query packages and app info
# Check if a package is installed
bindercli android.content.pm.IPackageManager is-package-available \
--packageName com.android.settings --userId 0
# Example output: {"result":true}
# Check a permission
bindercli android.content.pm.IPackageManager check-permission \
--permName android.permission.INTERNET \
--pkgName com.android.settings --userId 0
# Get the installer of a package
bindercli android.content.pm.IPackageManager get-installer-package-name \
--packageName com.android.chrome
Display info
# Get display IDs
bindercli android.hardware.display.IDisplayManager get-display-ids \
--includeDisabled false
# Example output: {"result":[0]}
Clipboard operations
# Check if clipboard has text
bindercli android.content.IClipboard has-clipboard-text \
--callingPackage com.android.shell \
--attributionTag "" --userId 0 --deviceId 0
# Example output: {"result":false}
Bluetooth operations
# Initialize Bluetooth HCI
bindercli android.hardware.bluetooth.IBluetoothHci initialize \
--callback <callback_service>
# Send raw HCI command (hex bytes)
bindercli android.hardware.bluetooth.IBluetoothHci send-hci-command \
--command 01030c00
# Close Bluetooth HCI
bindercli android.hardware.bluetooth.IBluetoothHci close
ActivityManager queries
# Check if user is a monkey (automated test)
bindercli android.app.IActivityManager is-user-a-monkey
# Get process memory limit
bindercli android.app.IActivityManager get-process-limit
# Check a permission for a process
bindercli android.app.IActivityManager check-permission \
--permission android.permission.INTERNET --pid 1 --uid 0
# Force stop a package
bindercli android.app.IActivityManager force-stop-package \
--packageName com.example.app --userId 0
# Check if app freezer is supported
bindercli android.app.IActivityManager is-app-freezer-supported
Telephony
# Get active phone type (0=NONE, 1=GSM, 2=CDMA)
bindercli com.android.internal.telephony.ITelephony get-active-phone-type
# Get network country ISO
bindercli com.android.internal.telephony.ITelephony get-network-country-iso-for-phone \
--phoneId 0
Verified Devices
Commands are tested against the following devices. The runtime uses version-aware transaction code resolution (binder/versionaware) that dynamically extracts codes from the device's framework JARs, with compiled tables as a fallback. "SM" = ServiceManager-level lookup, "Proxy" = generated proxy method with version-aware code resolution.
Verification matrix
Command
Type
Pixel 8a (API 36)
Emulator (API 35)
service list
SM
PASS
PASS
service inspect
SM
PASS
PASS
location get-all-providers
Proxy
PASS
PASS
location is-provider-enabled-for-user
Proxy
PASS
PASS
location get-gnss-hardware-model-name
Proxy
PASS
PASS
location get-gnss-year-of-hardware
Proxy
PASS
PASS
thermal get-current-thermal-status
Proxy
PASS
PASS
power is-power-save-mode
Proxy
PASS
PASS
power is-interactive
Proxy
PASS
PASS
pm is-package-available
Proxy
PASS
PASS
display get-display-ids
Proxy
PASS
PASS
clipboard has-clipboard-text
Proxy
PASS
PASS
am check-permission
Proxy
PASS
PASS
am is-user-a-monkey
Proxy
FLAKY*
PASS
am get-process-limit
Proxy
FLAKY*
PASS
* Some IActivityManager methods return empty replies intermittently on the Pixel 8a, likely due to the device's firmware AIDL revision having additional methods beyond the android-16.0.0_r1 snapshot. The transaction code offset may be off by 1-2 for some methods.
Architecture
The project has two major parts: a compiler that turns .aidl files into Go source code, and a runtime that implements the Binder IPC protocol for communicating with Android services.
flowchart TD
AIDL[".aidl files"]
AOSP["AOSP tools/pkg/3rdparty/"]
subgraph COMPILER["Compiler Pipeline"]
direction TB
LEX["Lexer<br/><i>tokenizes AIDL syntax</i>"]
PARSE["Parser<br/><i>recursive-descent → AST</i>"]
RESOLVE["Resolver<br/><i>import resolution + type registry</i>"]
GRAPH["Import Graph<br/><i>SCC-based cycle detection</i>"]
GEN["Code Generator"]
end
subgraph GENOUT["Generated Output"]
direction LR
PROXY["Interface → Proxy struct<br/>+ transaction methods"]
PARCEL_GEN["Parcelable → Go struct<br/>+ Marshal/Unmarshal"]
ENUM["Enum → typed constants"]
UNION["Union → tagged variant"]
end
subgraph RUNTIME["Binder Runtime"]
direction TB
KBIND["kernelbinder<br/><i>/dev/binder ioctl</i>"]
PARCELF["parcel<br/><i>wire format serialization</i>"]
BIND["binder<br/><i>IBinder + Transact</i>"]
SM["servicemanager<br/><i>GetService / ListServices</i>"]
end
ANDROID["Android System Services<br/><i>ActivityManager, SurfaceFlinger, ...</i>"]
AIDL --> LEX
AOSP --> LEX
LEX --> PARSE
PARSE --> RESOLVE
RESOLVE --> GRAPH
GRAPH --> GEN
GEN --> GENOUT
PROXY --> BIND
BIND --> PARCELF
BIND --> KBIND
SM --> BIND
KBIND --> ANDROID
style AIDL fill:#fff3cd,color:#000
style AOSP fill:#fff3cd,color:#000
style COMPILER fill:#e8eaf6,color:#000
style GENOUT fill:#d4edda,color:#000
style RUNTIME fill:#cce5ff,color:#000
style ANDROID fill:#e0e0e0,color:#000
Compiler Pipeline
The compiler transforms AIDL source files into Go code through four stages:
flowchart LR
subgraph S1["1. Lex"]
L1["Keywords, identifiers,<br/>operators, literals"]
end
subgraph S2["2. Parse"]
P1["Document AST:<br/>interfaces, parcelables,<br/>enums, unions, constants"]
end
subgraph S3["3. Resolve"]
R1["Transitive imports<br/>Type registry<br/>Circular import detection"]
end
subgraph S4["4. Generate"]
G1["Go source files:<br/>proxies, structs,<br/>marshal/unmarshal"]
end
S1 --> S2 --> S3 --> S4
Stage 1 — Lexer (tools/pkg/parser/lexer.go): Tokenizes AIDL source into keywords (interface, parcelable, oneway, ...), identifiers, operators, and literals. Handles >> splitting for nested generics like List<List<String>>.
Stage 2 — Parser (tools/pkg/parser/parser.go): Recursive-descent parser builds a typed AST. Supports the full AIDL grammar: interfaces with methods and transaction codes, parcelables with typed fields and defaults, enums with explicit or implicit values, unions, nested types, generics (List<T>, Map<K,V>), annotations (@nullable, @Backing, @utf8InCpp), and constant expressions with arithmetic/bitwise operators.
Stage 3 — Resolver (tools/pkg/resolver/resolver.go): Given search paths (-I flags), resolves AIDL imports transitively. Converts qualified names like android.os.IServiceManager to file paths, parses each imported file, and registers all definitions in a shared TypeRegistry. Detects circular imports. Supports skip-unresolved mode for bulk AOSP processing where some imports reference unavailable files.
Stage 4 — Code Generator (tools/pkg/codegen/): Produces Go source for each AIDL definition:
AIDL Type
Generated Go Code
Interface
Go interface + proxy struct with Transact()-based methods, descriptor constant, transaction code constants
Parcelable
Go struct with MarshalParcel(*parcel.Parcel) error and UnmarshalParcel(*parcel.Parcel) error
Enum
Type alias on backing type (int32, int64, byte) + typed const block
Union
Struct with tag field + typed variant accessors
The code generator includes an import graph (tools/pkg/codegen/import_graph.go) that computes strongly-connected components (Tarjan's SCC algorithm) to detect and break import cycles between generated packages.
Binder Runtime
The runtime implements the Android Binder IPC protocol in pure Go:
kernelbinder.Driver: Opens /dev/binder, verifies the protocol version via ioctl, memory-maps the kernel buffer, and implements Transact() as a write-read ioctl. Handles transaction replies, error codes, and death notifications.
parcel.Parcel: 4-byte aligned, little-endian byte buffer implementing the Binder wire format. Writes/reads all AIDL primitive types (int32, int64, float, double, bool, byte, String as UTF-16), arrays, binder handles (flat_binder_object), and file descriptors.
binder.ProxyBinder: Client-side handle wrapping a kernel binder reference. Provides Transact(), IsAlive() (ping), and death notification registration (LinkToDeath/UnlinkToDeath).
servicemanager: Client for Android's ServiceManager, the registry of all system services. Implements GetService(), CheckService(), ListServices(), and AddService() as typed binder transactions.
Generated Code
For an AIDL interface like:
// android/app/IActivityManager.aidl
package android.app;
interface IActivityManager {
int getProcessLimit();
int checkPermission(in String permission, int pid, int uid);
boolean isUserAMonkey();
// ... 200+ more methods
}
# Compile AIDL files to Go via bindercli:
bindercli aidl compile -I path/to/search/root --output gen file1.aidl file2.aidl
From AOSP (Bulk Generation)
With the AOSP submodules in tools/pkg/3rdparty/:
git submodule update --init --depth 1
go run ./tools/cmd/aidl2spec -3rdparty tools/pkg/3rdparty -output specs/
go run ./tools/cmd/spec2go -specs specs/ -output . -smoke-tests
This discovers all AIDL files across frameworks-base, frameworks-native, hardware-interfaces, and system-hardware-interfaces, infers search roots from package declarations, and generates Go proxies for all AOSP services. The current AOSP snapshot produces 5,174 Go files across 407 packages.
Transaction Code Resolution
Each binder method has a numeric transaction code that can differ between Android versions. The generated proxies call ResolveCode() at runtime to get the correct code for the device, using a multi-layer detection strategy:
DEX bytecode extraction (primary) — scans /system/framework/*.jar and APEX module JARs, parses DEX bytecode, and reads TRANSACTION_* constants from $Stub classes. Individual interfaces are extracted on demand (lazy), and results are cached to avoid re-scanning. This gives definitive codes for the exact firmware running on the device. This method is expected to work on all Android devices. If it fails on your platform, please open an issue.
Compiled version tables + ELF filtering (fallback) — pre-compiled tables from AOSP revision tags, narrowed by API level and exported symbols in libbinder.so. Used when framework JARs are not readable (e.g. non-Android host, restricted SELinux context).
Live transaction probing (last resort) — sends a test transaction (isUserAMonkey() on ActivityManager) with each candidate code and picks the one that returns a valid response. Used only to distinguish between AOSP revisions when ELF inspection is ambiguous.
Methods 2 and 3 exist only for environments where framework JARs are unavailable. On a standard Android device, all transaction codes are resolved dynamically from the device's own JARs.
Testing and Verification
The project is verified at four levels:
1. Unit Tests
The compiler packages (parser, codegen, resolver, binder, parcel, typesys) and tools/pkg/testutil have unit tests that run without any Android device or special environment:
go test ./tools/pkg/... ./binder/ ./parcel/
These test:
Parser correctness: Lexing/parsing of all AIDL constructs against testdata fixtures (interfaces, parcelables, enums, unions, generics, constants, annotations)
Code generation: Each generator (GenerateInterface, GenerateParcelable, GenerateEnum, GenerateUnion) is tested by parsing AIDL input, generating Go, and verifying the output is valid gofmt-compliant Go source that contains expected identifiers (descriptors, transaction codes, type names, method signatures)
Import cycle detection: Verifies the SCC algorithm correctly identifies and breaks cross-package import cycles
Marshal/unmarshal naming: Maps from AIDL types to parcel read/write expressions
Parcel serialization: Round-trip encoding/decoding of all primitive types
Binder status: Exception code marshaling
2. AOSP Codegen Test
Tests that code generation succeeds for the entire AOSP AIDL surface (requires tools/pkg/3rdparty/ submodules):
go test -tags aosp_codegen -v -run TestCodegenAllAOSP ./tools/pkg/codegen/
Walks all ~11,000 AIDL files, parses each, generates Go code, and verifies the output parses as valid Go. Reports per-file success/failure statistics.
3. Generated Smoke Tests
Auto-generated tests that instantiate every proxy type with a mock binder and call every method with zero-value arguments:
go run ./tools/cmd/spec2go -specs specs/ -output . -smoke-tests
go test ./tests/e2e/... # requires /dev/binder OR mock mode
4. End-to-End Tests on Android
Full integration tests that open /dev/binder and transact with real Android system services:
# Run on Android device or emulator
go test -tags e2e -v ./tests/e2e/...
These verify:
ServiceManager: ListServices, GetService, CheckService, service handle aliveness
Typed transactions: Call ActivityManager.GetProcessLimit(), SurfaceFlinger.GetPhysicalDisplayIds(), etc. and validate returned types
Exception handling: AIDL security exceptions, status codes
Parcelable round-trip: Real service data deserialized through generated UnmarshalParcel
Concurrency: Multiple goroutines with isolated binder drivers
Death notifications: Registration/unregistration lifecycle
Oneway transactions: Fire-and-forget calls
Error handling: Invalid handles, dead processes
CI
Unit tests run automatically on every push and pull request via GitHub Actions. E2E tests require an Android device and must be run manually.
A weekly workflow checks for new AOSP revision tags, regenerates version tables and proxy code, and opens a PR automatically if anything changed.
binder-mcp
AI agents can interact with Android devices through binder-mcp, a Model Context Protocol server that exposes binder services as tools.
Device mode
# Build and push
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/binder-mcp ./cmd/binder-mcp/
adb push build/binder-mcp /data/local/tmp/
# Use with Claude Code (or any MCP client)
# In your MCP config, add:
# {
# "mcpServers": {
# "android": {
# "command": "adb",
# "args": ["shell", "/data/local/tmp/binder-mcp"]
# }
# }
# }
Remote mode (runs on host)
go run ./cmd/binder-mcp/ --mode remote
# Auto-discovers device via ADB, pushes daemon, serves MCP on stdio
Available tools
Tool
Description
list_services
Enumerate all binder services
get_service_info
Descriptor, handle, liveness for a service
call_method
Invoke raw binder transactions
get_device_info
Power, display, thermal status
get_location
GPS/fused location
check_permissions
SELinux context and service accessibility
Using binder-mcp with AI Agents
Installation
# Via go install
go install github.com/AndroidGoLab/binder/cmd/binder-mcp@latest
# Via GitHub releases (pre-built binaries)
# Download from https://github.com/AndroidGoLab/binder/releases
# Via Docker (host mode)
docker run ghcr.io/androidgolab/binder-mcp
Claude Code
claude mcp add --transport stdio binder-mcp -- binder-mcp --mode remote
# Build for Android
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o binder-mcp ./cmd/binder-mcp/
adb push binder-mcp /data/local/tmp/
# Configure agent to use adb transport
claude mcp add --transport stdio binder-mcp -- adb shell /data/local/tmp/binder-mcp
Interoperability
gadb — Pure Go ADB for CI/CD
The interop/gadb/runner/ package provides pure-Go ADB device control
without requiring the adb binary. Discover devices, push binaries,
and run commands programmatically:
For remote binder access from a host machine, interop/gadb/proxy/
sets up a forwarded session:
sess, _ := proxy.NewSession(ctx, "SERIAL")
defer sess.Close(ctx)
// Session manages the daemon lifecycle and port forwarding;
// binder calls are routed through the remote transport.
gomobile — Android AAR
interop/gomobile/client/ wraps binder calls in a Java-friendly API
via gomobile. Build the AAR:
Binary getservice_vs_checkservice compares GetService vs CheckService for HAL binder services to investigate the discrepancy where CheckService returns NOT FOUND for services that GetService can retrieve.
Binary getservice_vs_checkservice compares GetService vs CheckService for HAL binder services to investigate the discrepancy where CheckService returns NOT FOUND for services that GetService can retrieve.
Command spec2readme reads YAML spec files (produced by aidl2spec) and updates a README.md with generated sections: package listing, quick-start example, usage examples, generated-code documentation, and examples table.
Command spec2readme reads YAML spec files (produced by aidl2spec) and updates a README.md with generated sections: package listing, quick-start example, usage examples, generated-code documentation, and examples table.