summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-12-14 09:34:22 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-12-14 09:34:22 +0100
commita19e8620bfef03bd683c13f2919ccde2c60c346d (patch)
tree3a140ad86b3fe20a83e4f8ad09aabe6cd3195abb
parentSnap for 4496165 from 7153b24dd767200ab154fee5751e2493cd9ad4e6 to pi-release (diff)
parentMerge "Let update_verifier work on non-AB update devices" am: 3fe230a1e4 am: 4b7ed5a71b (diff)
downloadandroid_bootable_recovery-a19e8620bfef03bd683c13f2919ccde2c60c346d.tar
android_bootable_recovery-a19e8620bfef03bd683c13f2919ccde2c60c346d.tar.gz
android_bootable_recovery-a19e8620bfef03bd683c13f2919ccde2c60c346d.tar.bz2
android_bootable_recovery-a19e8620bfef03bd683c13f2919ccde2c60c346d.tar.lz
android_bootable_recovery-a19e8620bfef03bd683c13f2919ccde2c60c346d.tar.xz
android_bootable_recovery-a19e8620bfef03bd683c13f2919ccde2c60c346d.tar.zst
android_bootable_recovery-a19e8620bfef03bd683c13f2919ccde2c60c346d.zip
-rw-r--r--update_verifier/update_verifier_main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/update_verifier/update_verifier_main.cpp b/update_verifier/update_verifier_main.cpp
index 9dd5a0cc4..a86203bfb 100644
--- a/update_verifier/update_verifier_main.cpp
+++ b/update_verifier/update_verifier_main.cpp
@@ -16,11 +16,20 @@
// See the comments in update_verifier.cpp.
+#include <string>
+
#include <android-base/logging.h>
+#include <android-base/properties.h>
#include "update_verifier/update_verifier.h"
int main(int argc, char** argv) {
+ std::string s = android::base::GetProperty("ro.boot.slot_suffix", "");
+
+ if (s.empty()) {
+ return 0; // non-A/B update device, so we quit
+ }
+
// Set up update_verifier logging to be written to kmsg; because we may not have Logd during
// boot time.
android::base::InitLogging(argv, &android::base::KernelLogger);