Skip to content

Commit ec5a005

Browse files
committed
Backend+AK2: misc fixes
- fix fallback broken unzip detection now that we create a subdirectory prior - probably best to execute the bump/loki/whatever script using our included ash shell instead of the recovery sh.
1 parent 811ff3b commit ec5a005

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

META-INF/com/google/android/update-binary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ui_print " ";
3030
mkdir -p /tmp/anykernel/bin;
3131
cd /tmp/anykernel;
3232
unzip -o "$ZIP";
33-
if [ $? != 0 -o -z "$(ls /tmp/anykernel)" ]; then
33+
if [ $? != 0 -o -z "$(ls /tmp/anykernel/tools)" ]; then
3434
abort "Unzip failed. Aborting...";
3535
fi;
3636

anykernel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ write_boot() {
9090
ui_print " "; ui_print "New image larger than boot partition. Aborting..."; exit 1;
9191
fi;
9292
if [ -f "/data/custom_boot_image_patch.sh" ]; then
93-
sh /data/custom_boot_image_patch.sh /tmp/anykernel/boot-new.img;
93+
ash /data/custom_boot_image_patch.sh /tmp/anykernel/boot-new.img;
9494
if [ $? != 0 ]; then
9595
ui_print " "; ui_print "User script execution failed. Aborting..."; exit 1;
9696
fi;

0 commit comments

Comments
 (0)