From 27b9fc8a36757235ac3386d66db7d35820c2eb04 Mon Sep 17 00:00:00 2001 From: Tianjie Xu Date: Mon, 11 Jul 2016 14:04:08 -0700 Subject: Skip update-on-boot for bootreason in blacklist Skip the OTA installation when bootreason is 'kernel_panic', 'Panic' etc. Change-Id: Ic1202492bffefa1a9d8d0e691b5af979285e552c Test: On angler, ota installation skips for one bootreason in the blacklist. Bug: 29978689 --- error_code.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'error_code.h') diff --git a/error_code.h b/error_code.h index 259319ab4..fe38ba476 100644 --- a/error_code.h +++ b/error_code.h @@ -21,7 +21,8 @@ enum ErrorCode { kNoError = -1, kLowBattery = 20, kZipVerificationFailure, - kZipOpenFailure + kZipOpenFailure, + kBootreasonInBlacklist }; enum CauseCode { -- cgit v1.2.3