diff options
Diffstat (limited to 'META-INF/com/google')
-rwxr-xr-x | META-INF/com/google/android/update-binary | 4 |
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 |