diff options
author | Sen Jiang <senj@google.com> | 2017-10-19 13:30:19 -0700 |
---|---|---|
committer | Ryan Longair <rlongair@google.com> | 2018-01-18 10:17:59 -0800 |
commit | 7cf48106ca8ef340ca0e1f15ea9587abb329afc6 (patch) | |
tree | 9a59dcb303486b18b9ce71f564bd443773f4d483 | |
parent | defdda6318415efec8440a1ba8af9ba1196daf71 (diff) | |
download | update_engine-android-security-8.1.0_r92.tar.gz |
Add SafetyNet logging for payload timestamp error.android-security-8.1.0_r93android-security-8.1.0_r92android-security-8.1.0_r91android-security-8.1.0_r90android-security-8.1.0_r89android-security-8.1.0_r88android-security-8.1.0_r87android-security-8.1.0_r86android-security-8.1.0_r85android-security-8.1.0_r84android-security-8.1.0_r83android-security-8.1.0_r82android-8.1.0_r81android-8.1.0_r80android-8.1.0_r79android-8.1.0_r78android-8.1.0_r77android-8.1.0_r76android-8.1.0_r75android-8.1.0_r74android-8.1.0_r73android-8.1.0_r72android-8.1.0_r71android-8.1.0_r70android-8.1.0_r69android-8.1.0_r68android-8.1.0_r66security-oc-mr1-releaseoreo-mr1-security-release
Bug: 36232423
Test: mma
Merged-In: Ica752e24e78e84350e13c66a2a0a56092f232d0b
Change-Id: Ica752e24e78e84350e13c66a2a0a56092f232d0b
(cherry picked from commit b75539b3ee05aa07b107fd711f010af54a80b0f2)
(cherry picked from commit c2edd69550306c42b8140ffe3035111fcbe52181)
-rw-r--r-- | update_attempter_android.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/update_attempter_android.cc b/update_attempter_android.cc index 57653297..6c992c84 100644 --- a/update_attempter_android.cc +++ b/update_attempter_android.cc @@ -27,6 +27,7 @@ #include <brillo/data_encoding.h> #include <brillo/message_loops/message_loop.h> #include <brillo/strings/string_utils.h> +#include <log/log.h> #include "update_engine/common/constants.h" #include "update_engine/common/file_fetcher.h" @@ -314,6 +315,11 @@ void UpdateAttempterAndroid::ProcessingDone(const ActionProcessor* processor, LOG(INFO) << "Resetting update progress."; break; + case ErrorCode::kPayloadTimestampError: + // SafetyNet logging, b/36232423 + android_errorWriteLog(0x534e4554, "36232423"); + break; + default: // Ignore all other error codes. break; |