Build and use minadbd as a shared library.

The former `minadbd` module is now built as a shared library
(`libminadbd_services.so`) that serves sideloading under recovery, with
a dynamic dependency on `libadbd.so`.

This allows sharing and reusing libadbd code on device (both of `adbd`
and `recovery` now uses `libadbd.so`). As a result, it reduces the size
of `recovery` binary from 1407360-byte to (1272880 + 33032)-byte
(aosp_marlin-userdebug).

Bug: 78793464
Test: `m -j bootimage` with aosp_marlin-userdebug
Test: Run minadbd_test on marlin.
Test: Boot into recovery and verify that sideloading still works.
Change-Id: I6c2bc3d351d5af71220a9b9f956c8c039e52c781
This commit is contained in:
Tao Bao
2018-08-06 17:06:43 -07:00
parent 9cf9b689d9
commit 4fd4f89591
4 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ librecovery_static_libraries := \
librecovery \
libbootloader_message \
libfusesideload \
libminadbd \
libminadbd_services \
librecovery_ui_default \
librecovery_ui \
libminui \