Merge "Generate linker config from recovery init" am: 17090d7f53 am: c3b430d816 am: b0f5432a16
Change-Id: I5537fbb4a8887e343f17c88c24c27d8a0d4ae0e3
diff --git a/etc/init.rc b/etc/init.rc
index 12411ac..395e627 100644
--- a/etc/init.rc
+++ b/etc/init.rc
@@ -4,6 +4,10 @@
# 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