discovery

package
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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KnownServiceNames map[string]string

KnownServiceNames maps AIDL descriptors to well-known Android ServiceManager names, allowing fast lookup without enumeration. Populated by generated code via SetKnownServiceNames.

Functions

func FindServiceByDescriptor

func FindServiceByDescriptor(
	ctx context.Context,
	c *conn.Conn,
	descriptor string,
) (binder.IBinder, error)

FindServiceByDescriptor locates a binder service by its AIDL descriptor. It first tries the static map of well-known service names to avoid slow enumeration, then falls back to listing all services.

func QueryDescriptor

func QueryDescriptor(
	ctx context.Context,
	svc binder.IBinder,
) string

QueryDescriptor sends an InterfaceTransaction to the binder service and reads back the interface descriptor string. Returns "(unknown)" if the query fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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