From e67da71dc18849e8b850abde51d12d453441e3be Mon Sep 17 00:00:00 2001 From: Yueyao Zhu Date: Wed, 3 May 2017 14:33:32 -0700 Subject: [PATCH] Add dtbo image support for device tree overlay Test: Used the built fastboot tool to run flashall on a device Bug: 32969430 Bug: 36813951 Change-Id: If2db3055bb7250a57d9a78b0534df491b68b6224 --- fastboot/fastboot.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 982545ca6..dc6e6981d 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -124,6 +124,7 @@ static struct { {"vendor.img", "vendor.sig", "vendor", true, false}, {"vendor_other.img", "vendor.sig", "vendor", true, true}, {"vbmeta.img", "vbmeta.sig", "vbmeta", true, false}, + {"dtbo.img", "dtbo.sig", "dtbo", true, false}, }; static std::string find_item_given_name(const char* img_name, const char* product) { @@ -155,6 +156,8 @@ std::string find_item(const char* item, const char* product) { fn = "vendor.img"; } else if(!strcmp(item,"vbmeta")) { fn = "vbmeta.img"; + } else if(!strcmp(item,"dtbo")) { + fn = "dtbo.img"; } else if(!strcmp(item,"userdata")) { fn = "userdata.img"; } else if(!strcmp(item,"cache")) {