summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiyong Park2018-05-29 02:41:30 -0500
committerJiyong Park2018-06-09 18:32:24 -0500
commit011ee12b1def041d71621da7740bf5784a5e6488 (patch)
tree5ff7a6883fd51d6a5e0a245cb085c6f3239282ad /toolbox
parent7881135fa938fde4286a38b2304787ac070e6423 (diff)
downloadplatform-system-core-011ee12b1def041d71621da7740bf5784a5e6488.tar.gz
platform-system-core-011ee12b1def041d71621da7740bf5784a5e6488.tar.xz
platform-system-core-011ee12b1def041d71621da7740bf5784a5e6488.zip
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
Diffstat (limited to 'toolbox')
-rw-r--r--toolbox/Android.bp1
1 files changed, 1 insertions, 0 deletions
diff --git a/toolbox/Android.bp b/toolbox/Android.bp
index 077f5423d..f12c810cd 100644
--- a/toolbox/Android.bp
+++ b/toolbox/Android.bp
@@ -46,6 +46,7 @@ cc_defaults {
46cc_binary { 46cc_binary {
47 name: "toolbox", 47 name: "toolbox",
48 defaults: ["toolbox_binary_defaults"], 48 defaults: ["toolbox_binary_defaults"],
49 recovery_available: true,
49} 50}
50 51
51cc_binary { 52cc_binary {