Skip to content

Commit

Permalink
Fix TWRP test on recent magiskboot
Browse files Browse the repository at this point in the history
- changes to magiskboot broke the recovery check by trying to replace the extraction target, resulting in the /dev/null byte device getting removed and thus breakage of the install and device until a reboot, so use an actual temporary location instead
  • Loading branch information
osm0sis committed Dec 8, 2018
1 parent 52695aa commit 8421599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion META-INF/com/google/android/update-binary
Expand Up @@ -105,7 +105,7 @@ $MAGISKBIN/magiskboot --unpack "$BOOTIMAGE" || abort "! Unable to unpack boot im
eval $BOOTSIGNER -verify < $BOOTIMAGE && BOOTSIGNED=true
$BOOTSIGNED && ui_print "- Boot image is signed with AVB 1.0"

$MAGISKBIN/magiskboot --cpio ramdisk.cpio "extract twres /dev/null" 2>/dev/null || abort "! TWRP ramdisk not found!"
$MAGISKBIN/magiskboot --cpio ramdisk.cpio "extract twres $TMPDIR" 2>/dev/null || abort "! TWRP ramdisk not found!"

ui_print "- Backing up TWRP ramdisk"
cp -f ramdisk.cpio ramdisk.cpio.orig
Expand Down

0 comments on commit 8421599

Please sign in to comment.