From bcf76806144f8a9cfb8dea06fb3bc10826239f46 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Wed, 11 May 2022 22:24:40 +0300 Subject: [PATCH] fastboot: Print OemCmdHandler return message on success This allows OEM commands to print messages in fastboot output. Test: run fastboot oem getprop ro.boot.rf_version and observe property value being printed in console Change-Id: Id9bd5a107861a790cd02dc87057600de5bb94d42 --- fastboot/device/commands.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/fastboot/device/commands.cpp b/fastboot/device/commands.cpp index b9f6c973c..0f3a208f7 100644 --- a/fastboot/device/commands.cpp +++ b/fastboot/device/commands.cpp @@ -254,6 +254,7 @@ bool OemCmdHandler(FastbootDevice* device, const std::vector& args) return device->WriteStatus(FastbootResult::FAIL, ret.message); } + device->WriteInfo(ret.message); return device->WriteStatus(FastbootResult::OKAY, ret.message); }