1minadbd 2======= 3 4`minadbd` is analogous to the regular `adbd`, but providing the minimal services to support 5recovery-specific use cases. Generally speaking, `adbd` = `libadbd` + `libadbd_services`, whereas 6`minadbd` = `libadbd` + `libminadbd_services`. 7 8Although both modules may be installed into the recovery image, only one of them, or none, can be 9active at any given time. 10 11- The start / stop of `adbd` is managed via system property `sys.usb.config`, when setting to `adb` 12 or `none` respectively. Upon starting recovery mode, `adbd` is started in debuggable builds by 13 default; otherwise `adbd` will stay off at all times in user builds. See the triggers in 14 `bootable/recovery/etc/init.rc`. 15 16- `minadbd` is started by `recovery` as needed. 17 - When requested to start `minadbd`, `recovery` stops `adbd` first, if it's running; it then forks 18 and execs `minadbd` in a separate process. 19 - `minadbd` talks to host-side `adb` server to get user requests. 20 - `minadbd` handles some requests directly, e.g. querying device properties for rescue service. 21 - `minadbd` communicates with `recovery` to fulfill requests regarding package installation. See 22 the comments in `bootable/recovery/install/adb_install.cpp` for the IPC protocol between 23 `recovery` and `minadbd`. 24 - Upon exiting `minadbd`, `recovery` restarts `adbd` if it was previously running. 25