diff options
author | Isaac Chen <ycchen@google.com> | 2017-12-14 05:36:26 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-12-14 05:36:26 +0100 |
commit | 50a4171030d3b7df6a6925f5da0b463d7f1420eb (patch) | |
tree | dee784a7b5433f0988fe31a97fbb5310940dbf45 | |
parent | Merge "applypatch: Remove the 'st' field from FileContents." am: 9203e77e7d (diff) | |
parent | Merge "Let update_verifier work on non-AB update devices" (diff) | |
download | android_bootable_recovery-50a4171030d3b7df6a6925f5da0b463d7f1420eb.tar android_bootable_recovery-50a4171030d3b7df6a6925f5da0b463d7f1420eb.tar.gz android_bootable_recovery-50a4171030d3b7df6a6925f5da0b463d7f1420eb.tar.bz2 android_bootable_recovery-50a4171030d3b7df6a6925f5da0b463d7f1420eb.tar.lz android_bootable_recovery-50a4171030d3b7df6a6925f5da0b463d7f1420eb.tar.xz android_bootable_recovery-50a4171030d3b7df6a6925f5da0b463d7f1420eb.tar.zst android_bootable_recovery-50a4171030d3b7df6a6925f5da0b463d7f1420eb.zip |
-rw-r--r-- | update_verifier/update_verifier_main.cpp | 9 |
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); |