platform_bootable_recovery/minadbd
Tao Bao 7d2a63afe1 Reland "Build and use minadbd as a shared library."
This relands the previously reverted CL in commit
c70446ce7b ("Build and use minadbd as a
shared library."). `recovery` has been built with Soong, so the previous
concern (unintentionally installing `libminadbd_services.so` to normal
system image) no longer holds.

Note that `reocvery` can't use `libminadbd_services.a`, as functions
like `daemon_service_to_fd()` (needed by `libadbd.so`) won't be linked
into `recovery`.

This CL moves the dependency of `libminadbd_services` from `librecovery`
into `recovery`, as only the latter actually relies on it (via
`recovery_main.cpp`). Note that we no longer need to list the transitive
dependency on `libadbd` or `libasyncio`.

Bug: 112494634
Test: `mmma -j bootable/recovery`
Test: Build and boot into recovery with aosp_taimen-userdebug. Verify that
      sideloading keeps working.
Test: `build/soong/build_test.bash --dist`
Change-Id: Ic086470b86d6770bede317e0f5534f608fa7b7d2
2018-08-13 14:09:58 -07:00
..
Android.bp Reland "Build and use minadbd as a shared library." 2018-08-13 14:09:58 -07:00
AndroidTest.xml Add test config to minadbd_test 2017-03-28 22:13:38 -07:00
fuse_adb_provider.cpp Clean up fuse_sideload and add a testcase. 2017-11-03 18:30:41 -07:00
fuse_adb_provider.h Clean up fuse_sideload and add a testcase. 2017-11-03 18:30:41 -07:00
fuse_adb_provider_test.cpp Clean up fuse_sideload and add a testcase. 2017-11-03 18:30:41 -07:00
minadbd.cpp minadbd: rename adb_server_main to minadbd_main. 2016-08-30 13:15:12 -07:00
minadbd.h minadbd: rename adb_server_main to minadbd_main. 2016-08-30 13:15:12 -07:00
minadbd_services.cpp minadbd: avoid overrriding services_to_fd. 2018-07-27 11:18:30 -07:00
README.md Address review comment. 2017-01-09 14:28:42 -08:00

minadbd is now mostly built from libadbd. The fuse features are unique to minadbd, and services.c has been modified as follows:

  • all services removed
  • all host mode support removed
  • sideload_service() added; this is the only service supported. It receives a single blob of data, writes it to a fixed filename, and makes the process exit.