Loading fastboot/device/commands.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ struct VariableHandlers { }; static bool IsSnapshotUpdateInProgress(FastbootDevice* device) { auto hal = device->boot1_1(); auto hal = device->boot_control_hal(); if (!hal) { return false; } Loading Loading @@ -349,8 +349,8 @@ bool SetActiveHandler(FastbootDevice* device, const std::vector<std::string>& ar } // Check how to handle the current snapshot state. if (auto hal11 = device->boot1_1()) { auto merge_status = hal11->getSnapshotMergeStatus(); if (auto hal = device->boot_control_hal()) { auto merge_status = hal->getSnapshotMergeStatus(); if (merge_status == MergeStatus::MERGING) { return device->WriteFail("Cannot change slots while a snapshot update is in progress"); } Loading Loading @@ -693,7 +693,7 @@ bool GsiHandler(FastbootDevice* device, const std::vector<std::string>& args) { bool SnapshotUpdateHandler(FastbootDevice* device, const std::vector<std::string>& args) { // Note that we use the HAL rather than mounting /metadata, since we want // our results to match the bootloader. auto hal = device->boot1_1(); auto hal = device->boot_control_hal(); if (!hal) return device->WriteFail("Not supported"); // If no arguments, return the same thing as a getvar. Note that we get the Loading fastboot/device/fastboot_device.cpp +0 −8 Original line number Diff line number Diff line Loading @@ -150,14 +150,6 @@ std::string FastbootDevice::GetCurrentSlot() { return suffix; } BootControlClient* FastbootDevice::boot1_1() const { if (boot_control_hal_ && boot_control_hal_->GetVersion() >= android::hal::BootControlVersion::BOOTCTL_V1_1) { return boot_control_hal_.get(); } return nullptr; } bool FastbootDevice::WriteStatus(FastbootResult result, const std::string& message) { constexpr size_t kResponseReasonSize = 4; constexpr size_t kNumResponseTypes = 4; // "FAIL", "OKAY", "INFO", "DATA" Loading fastboot/device/fastboot_device.h +0 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,6 @@ class FastbootDevice { std::vector<char>& download_data() { return download_data_; } Transport* get_transport() { return transport_.get(); } BootControlClient* boot_control_hal() const { return boot_control_hal_.get(); } BootControlClient* boot1_1() const; std::shared_ptr<aidl::android::hardware::fastboot::IFastboot> fastboot_hal() { return fastboot_hal_; } Loading fastboot/device/variables.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -461,7 +461,7 @@ bool GetSnapshotUpdateStatus(FastbootDevice* device, const std::vector<std::stri std::string* message) { // Note that we use the HAL rather than mounting /metadata, since we want // our results to match the bootloader. auto hal = device->boot1_1(); auto hal = device->boot_control_hal(); if (!hal) { *message = "not supported"; return false; Loading fs_mgr/libsnapshot/device_info.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -86,10 +86,6 @@ bool DeviceInfo::EnsureBootHal() { LOG(ERROR) << "Could not find IBootControl HAL"; return false; } if (hal->GetVersion() < BootControlVersion::BOOTCTL_V1_1) { LOG(ERROR) << "Could not find IBootControl 1.1 HAL"; return false; } boot_control_ = std::move(hal); } return true; Loading Loading
fastboot/device/commands.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ struct VariableHandlers { }; static bool IsSnapshotUpdateInProgress(FastbootDevice* device) { auto hal = device->boot1_1(); auto hal = device->boot_control_hal(); if (!hal) { return false; } Loading Loading @@ -349,8 +349,8 @@ bool SetActiveHandler(FastbootDevice* device, const std::vector<std::string>& ar } // Check how to handle the current snapshot state. if (auto hal11 = device->boot1_1()) { auto merge_status = hal11->getSnapshotMergeStatus(); if (auto hal = device->boot_control_hal()) { auto merge_status = hal->getSnapshotMergeStatus(); if (merge_status == MergeStatus::MERGING) { return device->WriteFail("Cannot change slots while a snapshot update is in progress"); } Loading Loading @@ -693,7 +693,7 @@ bool GsiHandler(FastbootDevice* device, const std::vector<std::string>& args) { bool SnapshotUpdateHandler(FastbootDevice* device, const std::vector<std::string>& args) { // Note that we use the HAL rather than mounting /metadata, since we want // our results to match the bootloader. auto hal = device->boot1_1(); auto hal = device->boot_control_hal(); if (!hal) return device->WriteFail("Not supported"); // If no arguments, return the same thing as a getvar. Note that we get the Loading
fastboot/device/fastboot_device.cpp +0 −8 Original line number Diff line number Diff line Loading @@ -150,14 +150,6 @@ std::string FastbootDevice::GetCurrentSlot() { return suffix; } BootControlClient* FastbootDevice::boot1_1() const { if (boot_control_hal_ && boot_control_hal_->GetVersion() >= android::hal::BootControlVersion::BOOTCTL_V1_1) { return boot_control_hal_.get(); } return nullptr; } bool FastbootDevice::WriteStatus(FastbootResult result, const std::string& message) { constexpr size_t kResponseReasonSize = 4; constexpr size_t kNumResponseTypes = 4; // "FAIL", "OKAY", "INFO", "DATA" Loading
fastboot/device/fastboot_device.h +0 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,6 @@ class FastbootDevice { std::vector<char>& download_data() { return download_data_; } Transport* get_transport() { return transport_.get(); } BootControlClient* boot_control_hal() const { return boot_control_hal_.get(); } BootControlClient* boot1_1() const; std::shared_ptr<aidl::android::hardware::fastboot::IFastboot> fastboot_hal() { return fastboot_hal_; } Loading
fastboot/device/variables.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -461,7 +461,7 @@ bool GetSnapshotUpdateStatus(FastbootDevice* device, const std::vector<std::stri std::string* message) { // Note that we use the HAL rather than mounting /metadata, since we want // our results to match the bootloader. auto hal = device->boot1_1(); auto hal = device->boot_control_hal(); if (!hal) { *message = "not supported"; return false; Loading
fs_mgr/libsnapshot/device_info.cpp +0 −4 Original line number Diff line number Diff line Loading @@ -86,10 +86,6 @@ bool DeviceInfo::EnsureBootHal() { LOG(ERROR) << "Could not find IBootControl HAL"; return false; } if (hal->GetVersion() < BootControlVersion::BOOTCTL_V1_1) { LOG(ERROR) << "Could not find IBootControl 1.1 HAL"; return false; } boot_control_ = std::move(hal); } return true; Loading