• Home
Name Date Size #Lines LOC

..--

include/minadbd/03-May-2024-6538

Android.bpD03-May-20243 KiB149124

AndroidTest.xmlD03-May-20241.3 KiB2813

README.mdD03-May-20241.3 KiB2520

fuse_adb_provider.cppD03-May-20241.2 KiB4018

fuse_adb_provider.hD03-May-20241.2 KiB4015

fuse_adb_provider_test.cppD03-May-20242.8 KiB8645

minadbd.cppD03-May-20242 KiB7645

minadbd_services.cppD03-May-202412.7 KiB360268

minadbd_services.hD03-May-2024782 265

minadbd_services_test.cppD03-May-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