You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| .. | ||
| include/minadbd | 3 years ago | |
| Android.bp | 3 years ago | |
| AndroidTest.xml | 3 years ago | |
| README.md | 3 years ago | |
| fuse_adb_provider.cpp | 3 years ago | |
| fuse_adb_provider.h | 3 years ago | |
| fuse_adb_provider_test.cpp | 3 years ago | |
| minadbd.cpp | 3 years ago | |
| minadbd_services.cpp | 3 years ago | |
| minadbd_services.h | 3 years ago | |
| minadbd_services_test.cpp | 3 years ago | |
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
adbdis managed via system propertysys.usb.config, when setting toadbornonerespectively. Upon starting recovery mode,adbdis started in debuggable builds by default; otherwiseadbdwill stay off at all times in user builds. See the triggers inbootable/recovery/etc/init.rc. -
minadbdis started byrecoveryas needed.- When requested to start
minadbd,recoverystopsadbdfirst, if it's running; it then forks and execsminadbdin a separate process. minadbdtalks to host-sideadbserver to get user requests.minadbdhandles some requests directly, e.g. querying device properties for rescue service.minadbdcommunicates withrecoveryto fulfill requests regarding package installation. See the comments inbootable/recovery/install/adb_install.cppfor the IPC protocol betweenrecoveryandminadbd.
- Upon exiting
minadbd,recoveryrestartsadbdif it was previously running.
- When requested to start