AK3: fix repack return check with magiskboot
This commit is contained in:
2 files changed
+5
-3
No files matched your search
@@ -3,4 +3,4 @@
|
|||||||
# Dummy file; update-binary is a shell script (DO NOT CHANGE)
|
# Dummy file; update-binary is a shell script (DO NOT CHANGE)
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# AK_BASE_VERSION=20230822
|
# AK_BASE_VERSION=20230828
|
||||||
+4
-2
@@ -386,12 +386,14 @@ flash_boot() {
|
|||||||
*) export PATCHVBMETAFLAG=false;;
|
*) export PATCHVBMETAFLAG=false;;
|
||||||
esac;
|
esac;
|
||||||
$bin/magiskboot repack $nocompflag $bootimg $home/boot-new.img;
|
$bin/magiskboot repack $nocompflag $bootimg $home/boot-new.img;
|
||||||
unset PATCHVBMETAFLAG;
|
|
||||||
fi;
|
fi;
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
abort "Repacking image failed. Aborting...";
|
abort "Repacking image failed. Aborting...";
|
||||||
fi;
|
fi;
|
||||||
[ -f .magisk ] && touch $home/magisk_patched;
|
if [ -f .magisk ]; then
|
||||||
|
touch $home/magisk_patched;
|
||||||
|
unset PATCHVBMETAFLAG;
|
||||||
|
fi;
|
||||||
|
|
||||||
cd $home;
|
cd $home;
|
||||||
if [ -f "$bin/futility" -a -d "$bin/chromeos" ]; then
|
if [ -f "$bin/futility" -a -d "$bin/chromeos" ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user