summaryrefslogtreecommitdiff
path: root/fastboot/device/fastboot_device.cpp
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2019-11-19 00:49:44 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-11-19 00:49:44 +0000
commitbf55a76fd9ce15b288d8cfa5425fb889bd069d51 (patch)
treee0d004d0184c2839c9f7b7bb65a5a7d09e9c322d /fastboot/device/fastboot_device.cpp
parent7d16aedc47552bbb67563ef6754a77c88b5821ea (diff)
parent220ddb1f0fb9d0e47f7c812c93da174ea3a8c037 (diff)
Merge "fastbootd: Disallow certain operations during snapshot updates."
Diffstat (limited to 'fastboot/device/fastboot_device.cpp')
-rw-r--r--fastboot/device/fastboot_device.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/fastboot/device/fastboot_device.cpp b/fastboot/device/fastboot_device.cpp
index d3c2bdaeb..31fc35937 100644
--- a/fastboot/device/fastboot_device.cpp
+++ b/fastboot/device/fastboot_device.cpp
@@ -60,7 +60,11 @@ FastbootDevice::FastbootDevice()
boot_control_hal_(IBootControl::getService()),
health_hal_(get_health_service()),
fastboot_hal_(IFastboot::getService()),
- active_slot_("") {}
+ active_slot_("") {
+ if (boot_control_hal_) {
+ boot1_1_ = android::hardware::boot::V1_1::IBootControl::castFrom(boot_control_hal_);
+ }
+}
FastbootDevice::~FastbootDevice() {
CloseDevice();