From 18f371d814b26132aadf11de6cc305f02484535a Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Tue, 10 Mar 2015 19:25:11 -0700 Subject: updater: Check the return value from ApplyImagePatch / ApplyBSDiffPatch Return NULL to abort the update process. Note that returning "" won't stop the script. Change-Id: Ifd108c1356f7c92a905c8776247a8842c6445319 --- recovery.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'recovery.cpp') diff --git a/recovery.cpp b/recovery.cpp index 1d22b248a..6deeaaaed 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -1107,6 +1107,7 @@ main(int argc, char **argv) { } if (status != INSTALL_SUCCESS) { ui->Print("Installation aborted.\n"); + ui->Print("OTA failed! Please power off the device to keep it in this state and file a bug report!\n"); // If this is an eng or userdebug build, then automatically // turn the text display on if the script fails so the error -- cgit v1.2.3