Add avb.vbmeta-version to CompatibilityMatrix and RuntimeInfo
RuntimeInfo fetch avb vbmeta version by reading the following two sysprops:
- ro.boot.vbmeta.avb_version
- ro.boot.avb_version
If the sysprop does not exist, 0.0 is set.
Test: libvintf_test
Test: adb shell vintf (shows 0.0 because CLs
for sysprops are not merged yet)
Bug: 35322304
Change-Id: I345bc792d1a7ceb585d246ec657707814b42ceff
diff --git a/parse_string.cpp b/parse_string.cpp
index f053f43..e6a24d1 100644
--- a/parse_string.cpp
+++ b/parse_string.cpp
@@ -380,6 +380,8 @@
<< ki.osRelease() << "/"
<< ki.osVersion() << "/"
<< ki.hardwareId() << ";"
+ << ki.mAvbBootVersion << "/"
+ << ki.mAvbInitVersion << ";"
<< "kernelSepolicyVersion = " << ki.kernelSepolicyVersion() << ";"
<< "#CONFIG's loaded = " << ki.mKernelConfigs.size() << ";\n";
for (const auto &pair : ki.mKernelConfigs) {