From b3ddb534c3c89b02d3000ffcc77bceaadeb0689b Mon Sep 17 00:00:00 2001 From: Ramji Jiyani Date: Mon, 6 Dec 2021 02:28:28 +0000 Subject: [PATCH] fastboot: Add system_dlkm flashing support Bug: 200082547 Test: TreeHugger Signed-off-by: Ramji Jiyani Change-Id: I35e081bbe8674c102324d22d440dcc38493ec25b --- 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 f5a3384cf..53974554d 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 odm_dlkm oem product pvmfw radio recovery system vbmeta vendor vendor_dlkm" + partitions="boot bootloader dtbo modem odm odm_dlkm oem product pvmfw radio recovery system system_dlkm 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 532b52490..c8ef94f1d 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -152,6 +152,10 @@ static Image images[] = { { "recovery", "recovery.img", "recovery.sig", "recovery", true, ImageType::BootCritical }, { "super", "super.img", "super.sig", "super", true, ImageType::Extra }, { "system", "system.img", "system.sig", "system", false, ImageType::Normal }, + { "system_dlkm", + "system_dlkm.img", "system_dlkm.sig", + "system_dlkm", + true, ImageType::Normal }, { "system_ext", "system_ext.img", "system_ext.sig", "system_ext",