From 08787dda12b5ffd7be689e16fcb138bb0246a978 Mon Sep 17 00:00:00 2001 From: Jami Kettunen Date: Fri, 24 Apr 2020 15:13:52 +0300 Subject: [PATCH] Increase blocksize of dd imaging to 4 MiB for nearly 3x speedup --- boot-switcher/META-INF/com/google/android/update-binary | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot-switcher/META-INF/com/google/android/update-binary b/boot-switcher/META-INF/com/google/android/update-binary index 8c64f75..3d17bb3 100755 --- a/boot-switcher/META-INF/com/google/android/update-binary +++ b/boot-switcher/META-INF/com/google/android/update-binary @@ -190,7 +190,7 @@ log "New boot target: '$TARGET_PRETTY'" # Start log "Writing $TARGET-boot image..." -dd if=$ROOT/boot/$TARGET-boot.img of=/dev/block/bootdevice/by-name/boot || abort 5 "Writing new boot image failed." +dd if=$ROOT/boot/$TARGET-boot.img of=/dev/block/bootdevice/by-name/boot bs=4m || abort 5 "Writing new boot image failed." # <<< Script <<<