• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

include/minadbd/23-Mar-2024-6538

Android.bpD23-Mar-20242.7 KiB139115

AndroidTest.xmlD23-Mar-20241.2 KiB2612

README.mdD23-Mar-20241.3 KiB2520

fuse_adb_provider.cppD23-Mar-20241.2 KiB4018

fuse_adb_provider.hD23-Mar-20241.2 KiB4015

fuse_adb_provider_test.cppD23-Mar-20242.8 KiB8645

minadbd.cppD23-Mar-20242 KiB7645

minadbd_services.cppD23-Mar-202411.1 KiB321241

minadbd_services.hD23-Mar-2024782 265

minadbd_services_test.cppD23-Mar-20247.4 KiB214155

README.md

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