From 20ef986715caafbef05c745fb5dc99832f387f19 Mon Sep 17 00:00:00 2001 From: Vineeta Srivastava Date: Fri, 31 Mar 2017 13:22:34 -0700 Subject: [PATCH] Add vbmeta image support for verified boot --- fastboot/fastboot.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 2927b16ca..7dfb44549 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -115,6 +115,7 @@ static struct { {"system_other.img", "system.sig", "system", true, true}, {"vendor.img", "vendor.sig", "vendor", true, false}, {"vendor_other.img", "vendor.sig", "vendor", true, true}, + {"vbmeta.img", "vbmeta.sig", "vbmeta", true, false}, }; static std::string find_item_given_name(const char* img_name, const char* product) { @@ -144,6 +145,8 @@ std::string find_item(const char* item, const char* product) { fn = "system.img"; } else if(!strcmp(item,"vendor")) { fn = "vendor.img"; + } else if(!strcmp(item,"vbmeta")) { + fn = "vbmeta.img"; } else if(!strcmp(item,"userdata")) { fn = "userdata.img"; } else if(!strcmp(item,"cache")) {