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
This commit is contained in:
Michael Bestas 2022-05-11 22:24:40 +03:00 committed by Michael Bestas
parent e4200bac8d
commit bcf7680614
No known key found for this signature in database
GPG key ID: F2D6C348F85577F5

View file

@ -254,6 +254,7 @@ bool OemCmdHandler(FastbootDevice* device, const std::vector<std::string>& args)
return device->WriteStatus(FastbootResult::FAIL, ret.message);
}
device->WriteInfo(ret.message);
return device->WriteStatus(FastbootResult::OKAY, ret.message);
}