Directories
¶
| Path | Synopsis |
|---|---|
|
bluetooth
|
|
|
Package camera provides a high-level API for capturing frames from an Android camera via binder.
|
Package camera provides a high-level API for capturing frames from an Android camera via binder. |
|
cmd
|
|
|
binder-mcp
command
binder-mcp is an MCP server that exposes Android binder services as tools for AI agents.
|
binder-mcp is an MCP server that exposes Android binder services as tools for AI agents. |
|
binder-proxyd
command
Binder proxy daemon — runs on an Android device, listens on TCP, and forwards binder transactions from host-side clients.
|
Binder proxy daemon — runs on an Android device, listens on TCP, and forwards binder transactions from host-side clients. |
|
bindercli
command
|
|
|
codec2
|
|
|
hidlcodec2
Package hidlcodec2 implements a HIDL Codec2 client for hardware video encoding via hwbinder.
|
Package hidlcodec2 implements a HIDL Codec2 client for hardware video encoding via hwbinder. |
|
com
|
|
|
examples
|
|
|
account_manager
command
List accounts on the device via AccountManager.
|
List accounts on the device via AccountManager. |
|
activity_manager
command
Query the Activity Manager: process limits, permissions, running state.
|
Query the Activity Manager: process limits, permissions, running state. |
|
aidl_bridge
command
Expose a bridge service that forwards calls to another binder service.
|
Expose a bridge service that forwards calls to another binder service. |
|
aidl_explorer
command
Introspect methods on binder services.
|
Introspect methods on binder services. |
|
alarm_auditor
command
Audit pending alarms via AlarmManager.
|
Audit pending alarms via AlarmManager. |
|
app_hibernation
command
Query app hibernation status via the AppHibernationService.
|
Query app hibernation status via the AppHibernationService. |
|
attention_monitor
command
Monitor user presence via PowerManager and display state.
|
Monitor user presence via PowerManager and display state. |
|
attestation_verify
command
Query attestation verification and related security services.
|
Query attestation verification and related security services. |
|
audio_focus
command
Query current audio focus state via AudioService.
|
Query current audio focus state via AudioService. |
|
audio_recording_monitor
command
Detect which apps are currently recording audio.
|
Detect which apps are currently recording audio. |
|
audio_status
command
Query audio state: volume levels, mute status, audio mode.
|
Query audio state: volume levels, mute status, audio mode. |
|
battery_health
command
Query battery health from the system battery properties service.
|
Query battery health from the system battery properties service. |
|
binder_fuzzer
command
Send randomized parcel data to services to test robustness.
|
Send randomized parcel data to services to test robustness. |
|
binder_latency
command
Measure round-trip binder transaction times.
|
Measure round-trip binder transaction times. |
|
ble_sensor_collector
command
BLE sensor collector: scan for BLE devices and register a GATT client.
|
BLE sensor collector: scan for BLE devices and register a GATT client. |
|
bluetooth_audio_routing
command
Manage Bluetooth A2DP audio connections via binder.
|
Manage Bluetooth A2DP audio connections via binder. |
|
bluetooth_inventory
command
Enumerate paired/bonded Bluetooth devices and query adapter info.
|
Enumerate paired/bonded Bluetooth devices and query adapter info. |
|
bluetooth_status
command
Query Bluetooth adapter status and scan for BLE devices via binder.
|
Query Bluetooth adapter status and scan for BLE devices via binder. |
|
camera_capture
command
Camera frame capture using gralloc-allocated buffers.
|
Camera frame capture using gralloc-allocated buffers. |
|
camera_connect
command
Test camera ConnectDevice with a local callback stub.
|
Test camera ConnectDevice with a local callback stub. |
|
carrier_config
command
Query carrier configuration: default carrier service package, configuration for subscriptions.
|
Query carrier configuration: default carrier service package, configuration for subscriptions. |
|
charge_monitor
command
Monitor charging status and battery health via the Health HAL.
|
Monitor charging status and battery health via the Health HAL. |
|
clipboard_monitor
command
Set and read clipboard text via the Android clipboard binder service.
|
Set and read clipboard text via the Android clipboard binder service. |
|
codec2_encode
command
Codec2 H.264 encoding via HIDL hwbinder.
|
Codec2 H.264 encoding via HIDL hwbinder. |
|
compliance_checker
command
Verify device compliance: encryption, security state, OTA update status.
|
Verify device compliance: encryption, security state, OTA update status. |
|
credential_manager
command
Query the CredentialManager service for availability.
|
Query the CredentialManager service for availability. |
|
device_info
command
Query device information: thermal status, GNSS hardware, input devices, network interfaces, vibrator capabilities, screensaver state.
|
Query device information: thermal status, GNSS hardware, input devices, network interfaces, vibrator capabilities, screensaver state. |
|
device_policy
command
Query DevicePolicyManager for device administration state.
|
Query DevicePolicyManager for device administration state. |
|
display_info
command
Query display configuration: IDs, brightness, night mode, color mode.
|
Query display configuration: IDs, brightness, night mode, color mode. |
|
dnd_controller
command
Query and display Do Not Disturb (Zen) mode via NotificationManager.
|
Query and display Do Not Disturb (Zen) mode via NotificationManager. |
|
dns_config
command
Query network configuration via the netd system service.
|
Query network configuration via the netd system service. |
|
dream_manager
command
Query screensaver/daydream state via DreamManager.
|
Query screensaver/daydream state via DreamManager. |
|
dual_sim
command
Monitor SIM slots: query active subscription count, slot info, and per-slot ICC card presence.
|
Monitor SIM slots: query active subscription count, slot info, and per-slot ICC card presence. |
|
error_handling
command
Graceful error handling: service availability, permissions, typed errors.
|
Graceful error handling: service availability, permissions, typed errors. |
|
esim_manager
command
Query eSIM/eUICC profile management: OTA status, supported countries, available memory.
|
Query eSIM/eUICC profile management: OTA status, supported countries, available memory. |
|
factory_reset
command
Factory reset demonstration via DevicePolicyManager.
|
Factory reset demonstration via DevicePolicyManager. |
|
flashlight_torch
command
Toggle the Android flashlight/torch on and off via the camera service binder.
|
Toggle the Android flashlight/torch on and off via the camera service binder. |
|
geofence
command
Query location provider availability for geofencing use cases.
|
Query location provider availability for geofencing use cases. |
|
getservice_vs_checkservice
command
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. |
|
gnss_diagnostics
command
Query GNSS hardware model name, year, and capabilities via LocationManager.
|
Query GNSS hardware model name, year, and capabilities via LocationManager. |
|
gps_location
command
Live GPS location via binder IPC: register a callback, receive a fix, print coordinates.
|
Live GPS location via binder IPC: register a callback, receive a fix, print coordinates. |
|
headless_controller
command
Headless device orchestration: query power, display, and process state.
|
Headless device orchestration: query power, display, and process state. |
|
ims_monitor
command
Monitor IMS registration state via ITelephony proxy.
|
Monitor IMS registration state via ITelephony proxy. |
|
input_injector
command
Inject input events via InputManager's binder interface.
|
Inject input events via InputManager's binder interface. |
|
job_scheduler_monitor
command
Query JobScheduler state from the "jobscheduler" service.
|
Query JobScheduler state from the "jobscheduler" service. |
|
keymint_delete_test
command
Binary keymint_delete_test calls DeleteAllKeys on the KeyMint HAL via binder IPC.
|
Binary keymint_delete_test calls DeleteAllKeys on the KeyMint HAL via binder IPC. |
|
keystore_ops
command
Query Keystore2 service for key entries and counts (read-only).
|
Query Keystore2 service for key entries and counts (read-only). |
|
kiosk_lockdown
command
Query activity/window manager for kiosk lockdown information.
|
Query activity/window manager for kiosk lockdown information. |
|
last_location
command
Retrieve the last known fused location without registering a listener.
|
Retrieve the last known fused location without registering a listener. |
|
list_packages
command
List all installed packages on the device.
|
List all installed packages on the device. |
|
list_services
command
List all registered Android binder services and ping each one.
|
List all registered Android binder services and ping each one. |
|
location_benchmark
command
Compare location providers by querying all providers and their properties.
|
Compare location providers by querying all providers and their properties. |
|
mdm_agent
command
Lightweight MDM agent querying device policies via DevicePolicyManager.
|
Lightweight MDM agent querying device policies via DevicePolicyManager. |
|
media_session_control
command
Enumerate active media sessions and query global priority.
|
Enumerate active media sessions and query global priority. |
|
media_transcoding
command
Query media transcoding service status and media metrics session IDs.
|
Query media transcoding service status and media metrics session IDs. |
|
memory_pressure
command
Read memory pressure info from ActivityManager.
|
Read memory pressure info from ActivityManager. |
|
mock_service
command
Create a mock binder service for testing.
|
Create a mock binder service for testing. |
|
network_monitor
command
Check network connectivity status via NetworkManagementService.
|
Check network connectivity status via NetworkManagementService. |
|
network_policy
command
Query network policy settings via the INetworkPolicyManager system service.
|
Query network policy settings via the INetworkPolicyManager system service. |
|
notification_listener
command
Query notification state via NotificationManager: zen mode, active notifications.
|
Query notification state via NotificationManager: zen mode, active notifications. |
|
oem_lock_status
command
Query OemLockService for bootloader lock state and OEM unlock status.
|
Query OemLockService for bootloader lock state and OEM unlock status. |
|
ota_status
command
Query update engine for OTA update status.
|
Query update engine for OTA update status. |
|
package_monitor
command
Monitor installed packages by polling the PackageManager.
|
Monitor installed packages by polling the PackageManager. |
|
package_query
command
Query installed packages: check availability, get installer, SDK target.
|
Query installed packages: check availability, get installer, SDK target. |
|
permission_audit
command
Audit permissions for installed apps via the ActivityManager.
|
Audit permissions for installed apps via the ActivityManager. |
|
permission_boundary
command
Test which binder calls succeed or fail from the current security context.
|
Test which binder calls succeed or fail from the current security context. |
|
permission_checker
command
Check permissions for UIDs/PIDs via ActivityManager.
|
Check permissions for UIDs/PIDs via ActivityManager. |
|
power_profiling
command
Measure battery current draw over time via the Health HAL.
|
Measure battery current draw over time via the Health HAL. |
|
power_save_auto
command
Query power save mode status and related settings via PowerManager.
|
Query power save mode status and related settings via PowerManager. |
|
power_status
command
Query Android power state: interactive, power save mode, battery saver, idle.
|
Query Android power state: interactive, power save mode, battery saver, idle. |
|
process_watchdog
command
List running processes via ActivityManager and check resource usage.
|
List running processes via ActivityManager and check resource usage. |
|
qr_scanner_daemon
command
QR/barcode scanner daemon that captures camera frames for processing.
|
QR/barcode scanner daemon that captures camera frames for processing. |
|
remote_diagnostics
command
Collect comprehensive device state for remote diagnostics.
|
Collect comprehensive device state for remote diagnostics. |
|
rkp_monitor
command
Monitor remote key provisioning (RKP) and device security state.
|
Monitor remote key provisioning (RKP) and device security state. |
|
rotation_resolver
command
Query device rotation and display state via WindowManager and DisplayManager.
|
Query device rotation and display state via WindowManager and DisplayManager. |
|
satellite_check
command
Check satellite telephony readiness by querying the telephony service.
|
Check satellite telephony readiness by querying the telephony service. |
|
screen_control
command
Check screen on/off state and display interactivity via PowerManager.
|
Check screen on/off state and display interactivity via PowerManager. |
|
secure_element
command
Query OMAPI SecureElementService for available readers.
|
Query OMAPI SecureElementService for available readers. |
|
security_test_apk
command
Binary security_test_apk probes whether an app-sandboxed process can reach critical HAL binder services.
|
Binary security_test_apk probes whether an app-sandboxed process can reach critical HAL binder services. |
|
sensor_gateway
command
Stream live sensor events via the SensorManager event queue callback.
|
Stream live sensor events via the SensorManager event queue callback. |
|
sensor_reader
command
Read sensor data from the SensorManager HAL.
|
Read sensor data from the SensorManager HAL. |
|
server_service
command
Register a Go service with the ServiceManager and call it back.
|
Register a Go service with the ServiceManager and call it back. |
|
server_service_aidl
command
Register a Go binder service using a generated AIDL stub.
|
Register a Go binder service using a generated AIDL stub. |
|
signage_controller
command
Display brightness and power control for digital signage.
|
Display brightness and power control for digital signage. |
|
sim_status
command
Query telephony service for SIM state: radio, ICC card, data state.
|
Query telephony service for SIM state: radio, ICC card, data state. |
|
sms_monitor
command
Query SMS service: preferred subscription, IMS SMS support.
|
Query SMS service: preferred subscription, IMS SMS support. |
|
softap_manage
command
Query network management status via the INetworkManagementService system service.
|
Query network management status via the INetworkManagementService system service. |
|
softap_tether_offload
command
Query tethering and network interface status via INetworkManagementService.
|
Query tethering and network interface status via INetworkManagementService. |
|
softap_wifi_hal
command
Query WiFi information from the wificond system service.
|
Query WiFi information from the wificond system service. |
|
sound_trigger
command
List sound trigger modules via SoundTriggerMiddlewareService.
|
List sound trigger modules via SoundTriggerMiddlewareService. |
|
statusbar_control
command
Query status bar state: navigation bar mode, tracing, last system key.
|
Query status bar state: navigation bar mode, tracing, last system key. |
|
storage_info
command
Query storage and USB state: last fstrim, USB functions, USB speed.
|
Query storage and USB state: last fstrim, USB functions, USB speed. |
|
suspend_logger
command
Acquire and release a wake lock via the PowerManager binder service.
|
Acquire and release a wake lock via the PowerManager binder service. |
|
system_app_classifier
command
Classify installed packages as system or user apps.
|
Classify installed packages as system or user apps. |
|
thermal_monitor
command
Poll thermal service for CPU/GPU temperatures, throttling status, and cooling devices.
|
Poll thermal service for CPU/GPU temperatures, throttling status, and cooling devices. |
|
timelapse_capture
command
Periodic timelapse camera capture via binder.
|
Periodic timelapse camera capture via binder. |
|
transaction_resolver
command
Resolve AIDL method names to transaction codes for binder services.
|
Resolve AIDL method names to transaction codes for binder services. |
|
usage_stats
command
Query app usage statistics via the UsageStatsManager.
|
Query app usage statistics via the UsageStatsManager. |
|
usb_tracker
command
Query USB device state: ports, functions, speed, and HAL versions.
|
Query USB device state: ports, functions, speed, and HAL versions. |
|
user_manager
command
Query user profiles from the UserManager service.
|
Query user profiles from the UserManager service. |
|
vehicle_telematics
command
Collect GPS, battery, and device diagnostics for vehicle telematics.
|
Collect GPS, battery, and device diagnostics for vehicle telematics. |
|
version_compat
command
Validate proxy compatibility across API levels.
|
Validate proxy compatibility across API levels. |
|
volume_control
command
Get and set stream volumes via AudioService.
|
Get and set stream volumes via AudioService. |
|
vpn_monitor
command
Check VPN status via the IVpnManager system service.
|
Check VPN status via the IVpnManager system service. |
|
wakelock_audit
command
Enumerate supported wake lock levels via PowerManager.
|
Enumerate supported wake lock levels via PowerManager. |
|
wifi_scanner
command
Scan available WiFi networks via the wificond system service.
|
Scan available WiFi networks via the wificond system service. |
|
google
|
|
|
Package gralloc provides gralloc buffer allocation and CPU mapping via the Android IAllocator/IMapper HAL services.
|
Package gralloc provides gralloc buffer allocation and CPU mapping via the Android IAllocator/IMapper HAL services. |
|
bridge
Package bridge provides typed Go wrappers around the gralloc_bridge.so C functions.
|
Package bridge provides typed Go wrappers around the gralloc_bridge.so C functions. |
|
dmaheap
Package dmaheap provides buffer allocation via Linux dma-buf heaps (/dev/dma_heap/system).
|
Package dmaheap provides buffer allocation via Linux dma-buf heaps (/dev/dma_heap/system). |
|
hidlalloc
Package hidlalloc implements the HIDL gralloc 3.0 IAllocator client for buffer allocation via hwbinder.
|
Package hidlalloc implements the HIDL gralloc 3.0 IAllocator client for buffer allocation via hwbinder. |
|
Package hwparcel implements the HIDL HwParcel wire format for hwbinder transactions.
|
Package hwparcel implements the HIDL HwParcel wire format for hwbinder transactions. |
|
Package hwservicemanager provides a client for Android's HIDL hwservicemanager, which runs on /dev/hwbinder at handle 0.
|
Package hwservicemanager provides a client for Android's HIDL hwservicemanager, which runs on /dev/hwbinder at handle 0. |
|
Package igbp defines shared constants for IGraphicBufferProducer interactions used by multiple camera-related commands.
|
Package igbp defines shared constants for IGraphicBufferProducer interactions used by multiple camera-related commands. |
|
interop
|
|
|
Package logger provides logging utilities for the binder project.
|
Package logger provides logging utilities for the binder project. |
|
native_impls
|
|
|
src
|
|
|
tools
|
|
|
cmd/aidl2spec
command
|
|
|
cmd/java2spec
command
java2spec extracts information from Java source files and merges it into YAML spec files previously generated by aidl2spec.
|
java2spec extracts information from Java source files and merges it into YAML spec files previously generated by aidl2spec. |
|
cmd/spec2cli
command
Command spec2cli reads YAML spec files (produced by aidl2spec) and generates registry_gen.go and commands_gen.go for the bindercli tool.
|
Command spec2cli reads YAML spec files (produced by aidl2spec) and generates registry_gen.go and commands_gen.go for the bindercli tool. |
|
cmd/spec2go
command
Command spec2go generates Go source code from YAML spec files.
|
Command spec2go generates Go source code from YAML spec files. |
|
cmd/spec2readme
command
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. |
|
pkg/spec
Package spec defines the intermediate representation for AIDL and Java source extraction.
|
Package spec defines the intermediate representation for AIDL and Java source extraction. |
Click to show internal directories.
Click to hide internal directories.