summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKiyoung Kim <kiyoungkim@google.com>2019-12-13 02:09:58 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-12-13 02:09:58 +0100
commit17090d7f53ef31b9a610f765cd9c260b89bebc25 (patch)
tree64897b6dd5f667a6405ae3169dd3eebce1d79845
parentMerge "Revert "Add mechanism for device-specific loop images"" (diff)
parentGenerate linker config from recovery init (diff)
downloadandroid_bootable_recovery-17090d7f53ef31b9a610f765cd9c260b89bebc25.tar
android_bootable_recovery-17090d7f53ef31b9a610f765cd9c260b89bebc25.tar.gz
android_bootable_recovery-17090d7f53ef31b9a610f765cd9c260b89bebc25.tar.bz2
android_bootable_recovery-17090d7f53ef31b9a610f765cd9c260b89bebc25.tar.lz
android_bootable_recovery-17090d7f53ef31b9a610f765cd9c260b89bebc25.tar.xz
android_bootable_recovery-17090d7f53ef31b9a610f765cd9c260b89bebc25.tar.zst
android_bootable_recovery-17090d7f53ef31b9a610f765cd9c260b89bebc25.zip
-rw-r--r--etc/init.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/init.rc b/etc/init.rc
index 12411ac14..395e627bf 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -4,6 +4,10 @@ on early-init
# Set the security context of /postinstall if present.
restorecon /postinstall
+ # Generate ld.config.txt for recovery processes
+ exec u:r:linkerconfig:s0 -- /system/bin/linkerconfig --target /linkerconfig/ld.config.txt
+ chmod 444 /linkerconfig/ld.config.txt
+
start ueventd
setprop sys.usb.configfs 0