Skip to content
Permalink
Browse files

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
  • Loading branch information
osm0sis committed Aug 27, 2019
1 parent abc56fc commit c6ccb4fa4e2117d618486b821d5cfe32632598c3
Showing with 3 additions and 1 deletion.
  1. +3 −1 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

0 comments on commit c6ccb4f

Please sign in to comment.
You can’t perform that action at this time.