29be3f6ef1
Added SPDX-license-identifier-Apache-2.0 to: applypatch/Android.bp bootloader_message/Android.bp edify/Android.bp fuse_sideload/Android.bp install/Android.bp minadbd/Android.bp minui/Android.bp otautil/Android.bp recovery_ui/Android.bp recovery_utils/Android.bp tests/Android.bp tools/image_generator/Android.bp tools/recovery_l10n/Android.bp uncrypt/Android.bp update_verifier/Android.bp updater/Android.bp updater/Android.mk updater_sample/Android.bp updater_sample/tests/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT SPDX-license-identifier-OFL to: Android.bp Android.mk Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I3da761b525452838977297f773974000d4de7bd6 |
||
---|---|---|
.. | ||
include/minadbd | ||
Android.bp | ||
AndroidTest.xml | ||
fuse_adb_provider.cpp | ||
fuse_adb_provider.h | ||
fuse_adb_provider_test.cpp | ||
minadbd.cpp | ||
minadbd_services.cpp | ||
minadbd_services.h | ||
minadbd_services_test.cpp | ||
README.md |
minadbd
minadbd
is analogous to the regular adbd
, but providing the minimal services to support
recovery-specific use cases. Generally speaking, adbd
= libadbd
+ libadbd_services
, whereas
minadbd
= libadbd
+ libminadbd_services
.
Although both modules may be installed into the recovery image, only one of them, or none, can be active at any given time.
-
The start / stop of
adbd
is managed via system propertysys.usb.config
, when setting toadb
ornone
respectively. Upon starting recovery mode,adbd
is started in debuggable builds by default; otherwiseadbd
will stay off at all times in user builds. See the triggers inbootable/recovery/etc/init.rc
. -
minadbd
is started byrecovery
as needed.- When requested to start
minadbd
,recovery
stopsadbd
first, if it's running; it then forks and execsminadbd
in a separate process. minadbd
talks to host-sideadb
server to get user requests.minadbd
handles some requests directly, e.g. querying device properties for rescue service.minadbd
communicates withrecovery
to fulfill requests regarding package installation. See the comments inbootable/recovery/install/adb_install.cpp
for the IPC protocol betweenrecovery
andminadbd
.
- Upon exiting
minadbd
,recovery
restartsadbd
if it was previously running.
- When requested to start