From 1ccdefab7926520dec4934bf4f3a1176cf5953f6 Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 25 Jul 2018 12:04:51 -0500 Subject: Fix ld.config.txt errors on Android 8.1 system root devices Change-Id: I17dcb8a2d77519799292d1c0fb5d94de21d7e6cb --- etc/init.recovery.service22.rc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'etc/init.recovery.service22.rc') diff --git a/etc/init.recovery.service22.rc b/etc/init.recovery.service22.rc index bb2853c1a..43a3374b4 100644 --- a/etc/init.recovery.service22.rc +++ b/etc/init.recovery.service22.rc @@ -1,5 +1,11 @@ on boot + export LD_CONFIG_FILE /sbin/ld.config.txt # For starting recovery on 5.0 and newer service recovery /sbin/recovery seclabel u:r:recovery:s0 + +# This helps fix ld.config.txt errors from the linker on Android 8.1 +service ldconfigtxt /sbin/touch /sbin/ld.config.txt + oneshot + seclabel u:r:recovery:s0 -- cgit v1.2.3