summaryrefslogtreecommitdiff
path: root/META-INF/com/google/android/update-binary
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2020-02-03 17:07:08 -0400
committerosm0sis <osm0sis@outlook.com>2020-02-03 17:07:08 -0400
commit3e5c6ba7399980dd694496384e3a2ecc9f5324df (patch)
treef9313f4407666fb403b93fca8ab5025f8cddd6b3 /META-INF/com/google/android/update-binary
parentccb19a8337a13dfadae2b42bf0a01fda61d65c74 (diff)
Backend: fix /system/bin/* execution on recoveries using LD_CONFIG_FILE
Diffstat (limited to 'META-INF/com/google/android/update-binary')
-rwxr-xr-xMETA-INF/com/google/android/update-binary4
1 files changed, 3 insertions, 1 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary
index 21435dd..ae806a5 100755
--- a/META-INF/com/google/android/update-binary
+++ b/META-INF/com/google/android/update-binary
@@ -145,7 +145,8 @@ setup_env() {
mount_all;
OLD_LD_PATH=$LD_LIBRARY_PATH;
OLD_LD_PRE=$LD_PRELOAD;
- unset LD_LIBRARY_PATH LD_PRELOAD;
+ OLD_LD_CFG=$LD_CONFIG_FILE;
+ unset LD_LIBRARY_PATH LD_PRELOAD LD_CONFIG_FILE;
if [ ! "$(getprop 2>/dev/null)" ]; then
getprop() {
local propdir propfile propval;
@@ -167,6 +168,7 @@ restore_env() {
unset -f getprop;
test "$OLD_LD_PATH" && export LD_LIBRARY_PATH=$OLD_LD_PATH;
test "$OLD_LD_PRE" && export LD_PRELOAD=$OLD_LD_PRE;
+ test "$OLD_LD_CFG" && export LD_CONFIG_FILE=$OLD_LD_CFG;
umount_all;
(for dir in /apex /system /system_root; do
if [ -L "${dir}_link" ]; then