Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
include/minadbd/ | 06-Sep-2024 | - | 65 | 38 | ||
Android.bp | D | 06-Sep-2024 | 3.2 KiB | 152 | 127 | |
AndroidTest.xml | D | 06-Sep-2024 | 1.3 KiB | 28 | 13 | |
OWNERS | D | 06-Sep-2024 | 36 | 3 | 2 | |
README.md | D | 06-Sep-2024 | 1.3 KiB | 25 | 20 | |
fuse_adb_provider.cpp | D | 06-Sep-2024 | 1.2 KiB | 40 | 18 | |
fuse_adb_provider.h | D | 06-Sep-2024 | 1.2 KiB | 40 | 15 | |
fuse_adb_provider_test.cpp | D | 06-Sep-2024 | 2.8 KiB | 86 | 45 | |
minadbd.cpp | D | 06-Sep-2024 | 2 KiB | 76 | 45 | |
minadbd_services.cpp | D | 06-Sep-2024 | 12.7 KiB | 360 | 268 | |
minadbd_services.h | D | 06-Sep-2024 | 782 | 26 | 5 | |
minadbd_services_test.cpp | D | 06-Sep-2024 | 7.4 KiB | 214 | 155 |
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