From 011ee12b1def041d71621da7740bf5784a5e6488 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Tue, 29 May 2018 16:41:30 +0900 Subject: Shared libs are supported in recovery mode adbd has been built as a static executable since the same binary was copied to the recovery partition where shared library is not supported. However, since we now support shared library in the recovery partition, adbd is built as a dynamic executable. In addition, the dependency from adbd to libdebuggerd_handler is removed as debuggerd is handled by the dynamic linker. A few more modules in /system/core are marked as recovery_available: true as they are transitive dependencies of the dynamic linker. This change also includes ld.config.recovery.txt which is the linker config file for the recovery mode. It is installed to /etc/ld.config.txt and contains linker namespace config for the dynamic binaries under /sbin. Bug: 63673171 Test: `adb reboot recovery; adb devices` shows the device ID Test: Select 'mount /system' in the recovery mode, then `adb shell`. $ lsof -p `pidof adbd` shows that libm.so, libc.so, etc. are loaded from the /lib directory. Change-Id: I363d5a787863f1677ee40afb5d5841321ddaae77 --- CleanSpec.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'CleanSpec.mk') diff --git a/CleanSpec.mk b/CleanSpec.mk index e6f871652..0e43dae31 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -77,3 +77,4 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/vndksp.libraries.txt) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/ld.config.txt) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/llndk.libraries.txt) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/vndksp.libraries.txt) +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/recovery/root/) -- cgit v1.2.3