From c6ccb4fa4e2117d618486b821d5cfe32632598c3 Mon Sep 17 00:00:00 2001 From: Chris Renshaw Date: Tue, 27 Aug 2019 13:37:49 -0300 Subject: [PATCH] Backend: add /dev/random workaround for recovery - per Chainfire, "fix slow RNG on some devices, which may cause installation to take weeks" - it seems like this issue may have been triggered now in recovery on some devices by some of the changes from the new mounting rewrite --- META-INF/com/google/android/update-binary | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary index 74aa1f1..bef5b53 100755 --- a/META-INF/com/google/android/update-binary +++ b/META-INF/com/google/android/update-binary @@ -75,7 +75,8 @@ restore_env() { test "$savedpre" && export LD_PRELOAD="$savedpre"; umount_all; ($bb mv -f /system_link /system; - $bb mv -f /system_root_link /system_root) 2>/dev/null; + $bb mv -f /system_root_link /system_root; + $bb umount -l /dev/random) 2>/dev/null; } abort() { ui_print "$@"; @@ -128,6 +129,7 @@ if [ -f version ]; then fi; ui_print " " "AnyKernel3 by osm0sis @ xda-developers" " " " "; +$BOOTMODE || $bb mount -o bind /dev/urandom /dev/random; umount_all; setup_mountpoint $ANDROID_ROOT; if ! is_mounted $ANDROID_ROOT; then