diff options
author | Hridya Valsaraju <hridya@google.com> | 2018-09-05 16:57:24 -0700 |
---|---|---|
committer | Hridya Valsaraju <hridya@google.com> | 2018-09-07 12:22:00 -0700 |
commit | bf9f8d1a643b7586af009ec65b1358859e3aea64 (patch) | |
tree | 451481ca3b94e3a109cd557f0f391311982b54e9 /fastboot/device/fastboot_device.cpp | |
parent | 33dcdb808b7d60107d527c22815d586b51836836 (diff) | |
download | system_core-bf9f8d1a643b7586af009ec65b1358859e3aea64.tar.gz system_core-bf9f8d1a643b7586af009ec65b1358859e3aea64.tar.bz2 system_core-bf9f8d1a643b7586af009ec65b1358859e3aea64.zip |
Integrate with fastboot HAL to get partition type
Bug: 79480454
Bug: 78793464
Test: fastboot getvar partition-type:userdata
Change-Id: Ib096ee8061568b8503f3a3f2dbb7e19a932162c4
Diffstat (limited to 'fastboot/device/fastboot_device.cpp')
-rw-r--r-- | fastboot/device/fastboot_device.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fastboot/device/fastboot_device.cpp b/fastboot/device/fastboot_device.cpp index 55aca9ccd..ae2e7a607 100644 --- a/fastboot/device/fastboot_device.cpp +++ b/fastboot/device/fastboot_device.cpp @@ -19,7 +19,7 @@ #include <android-base/logging.h> #include <android-base/strings.h> #include <android/hardware/boot/1.0/IBootControl.h> - +#include <android/hardware/fastboot/1.0/IFastboot.h> #include <algorithm> #include "constants.h" @@ -29,6 +29,7 @@ using ::android::hardware::hidl_string; using ::android::hardware::boot::V1_0::IBootControl; using ::android::hardware::boot::V1_0::Slot; +using ::android::hardware::fastboot::V1_0::IFastboot; namespace sph = std::placeholders; FastbootDevice::FastbootDevice() @@ -49,7 +50,8 @@ FastbootDevice::FastbootDevice() {FB_CMD_UPDATE_SUPER, UpdateSuperHandler}, }), transport_(std::make_unique<ClientUsbTransport>()), - boot_control_hal_(IBootControl::getService()) {} + boot_control_hal_(IBootControl::getService()), + fastboot_hal_(IFastboot::getService()) {} FastbootDevice::~FastbootDevice() { CloseDevice(); |