From fa2457e1cda7a0fa0e618542db052ca60c9b365a Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 10 Jul 2020 17:53:18 +0000 Subject: [PATCH] init README: document AIDL service interface There is documentation for how AIDL works with ctl commands or interface_start commands, however it seems we were missing documentation on declaration of interfaces. Bug: N/A Test: N/A Change-Id: I0e5d2350b6b847a870eafbc69828e75f1f6ca4f0 --- init/README.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/init/README.md b/init/README.md index 188f19b29..c3b64f60b 100644 --- a/init/README.md +++ b/init/README.md @@ -197,11 +197,14 @@ runs the service. Currently defaults to root. (??? probably should default to nobody) `interface ` -> Associates this service with a list of the HIDL services that it provides. The interface name - must be a fully-qualified name and not a value name. For instance, this is used to allow - hwservicemanager to lazily start services. When multiple interfaces are served, this tag should - be used multiple times. - For example: interface vendor.foo.bar@1.0::IBaz default +> Associates this service with a list of the AIDL or HIDL services that it provides. The interface + name must be a fully-qualified name and not a value name. For instance, this is used to allow + servicemanager or hwservicemanager to lazily start services. When multiple interfaces are served, + this tag should be used multiple times. An example of an entry for a HIDL + interface is `interface vendor.foo.bar@1.0::IBaz default`. For an AIDL interface, use + `interface aidl `. The instance name for an AIDL interface is + whatever is registered with servicemanager, and these can be listed with `adb + shell dumpsys -l`. `ioprio ` > Sets the IO priority and IO priority class for this service via the SYS_ioprio_set syscall.