AK3: add option to skip vbmeta patching while avb is enabled (#90)

Signed-off-by: engstk <eng.stk@sapo.pt>
This commit is contained in:
engstk authored and GitHub committed 2024-10-14 13:02:49 -03:00
1 parent 075e6ff32b
commit fdf4603a40
3 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -3,4 +3,4 @@
# Dummy file; update-binary is a shell script (DO NOT CHANGE)
#
#
# AK_BASE_VERSION=20241012
# AK_BASE_VERSION=20241014
+2
View File
@@ -61,6 +61,8 @@ __supported.patchlevels=__ and __supported.vendorpatchlevels=__ will match again
`NO_MAGISK_CHECK=1` may be added to disable detection of Magisk and related kernel/dtb repatching for special zips which don't require that.
`NO_VBMETA_PARTITION_PATCH=1` may be added to skip vbmeta processing using httools, since GKI is bootable with verity/verification ON, as long as AVB is not enforced for boot stage partitions.
## // Command Methods ##
```
ui_print "<text>" [...]
+1 -1
View File
@@ -483,7 +483,7 @@ flash_generic() {
if [ "$path" == "/dev/block/mapper" ]; then
avb=$(httools_static avb $1);
[ $? == 0 ] || abort "Failed to parse fstab entry for $1. Aborting...";
if [ "$avb" ]; then
if [ "$avb" ] && [ ! "$NO_VBMETA_PARTITION_PATCH" ]; then
flags=$(httools_static disable-flags);
[ $? == 0 ] || abort "Failed to parse top-level vbmeta. Aborting...";
if [ "$flags" == "enabled" ]; then