From 6b1c15c0637cc47cd4bb65a91bc70479e1abe1c8 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Tue, 12 May 2020 10:38:53 -0700 Subject: [PATCH] fastboot: Add vendor_dlkm Test: add vendor_dlkm partition and flash Bug: 156020364 Change-Id: If6794ca5a76613a1a3337a4637edd1d364eff5dd --- fastboot/fastboot.bash | 2 +- fastboot/fastboot.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fastboot/fastboot.bash b/fastboot/fastboot.bash index cb1d3541c..cc1366cf4 100644 --- a/fastboot/fastboot.bash +++ b/fastboot/fastboot.bash @@ -109,7 +109,7 @@ _fastboot_cmd_flash() { cur="${COMP_WORDS[COMP_CWORD]}" if [[ $i -eq $COMP_CWORD ]]; then - partitions="boot bootloader dtbo modem odm oem product radio recovery system vbmeta vendor" + partitions="boot bootloader dtbo modem odm oem product radio recovery system vbmeta vendor vendor_dlkm" COMPREPLY=( $(compgen -W "$partitions" -- $cur) ) else _fastboot_util_complete_local_file "${cur}" '!*.img' diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 86cf30df2..4ca6a6a69 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -166,6 +166,10 @@ static Image images[] = { "vendor_boot.img", "vendor_boot.sig", "vendor_boot", true, ImageType::BootCritical }, + { "vendor_dlkm", + "vendor_dlkm.img", "vendor_dlkm.sig", + "vendor_dlkm", + true, ImageType::Normal }, { nullptr, "vendor_other.img", "vendor.sig", "vendor", true, ImageType::Normal }, // clang-format on };