cli/ota: Fine tune is_critical_to_avb() for odm partition

AOSP primarily cares about `odm` and `odm_dlkm`, so update the logic to
check for that specifically. This fixes patching some OTAs that include
an unprotected OEM-specific `odm_ext` image.

Issue: #218

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
This commit is contained in:
Andrew Gunnerson
2023-12-10 15:54:02 -05:00
parent 02fd92a640
commit dfed06dcf8
+2 -1
View File
@@ -271,11 +271,12 @@ fn load_vbmeta_images(
/// partitions may be equally important, but it's infeasible to list them all.
fn is_critical_to_avb(name: &str) -> bool {
name.ends_with("boot")
|| name.starts_with("odm")
|| name.ends_with("dlkm")
|| name.starts_with("system")
|| name.starts_with("vbmeta")
|| name.starts_with("vendor")
|| name == "dtbo"
|| name == "odm"
|| name == "product"
|| name == "pvmfw"
|| name == "recovery"