diff options
Diffstat (limited to 'fastboot/device/fastboot_device.cpp')
-rw-r--r-- | fastboot/device/fastboot_device.cpp | 6 |
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(); |