Create libvintf_common

This is a static lib excluding utils.cpp. This
is originally libvintftest, but modified to
include RuntimeInfo and KernelConfigParser as well
for better generalization.

This lib can be used instead of libvintf when different
FileFetcher / PropertyFetcher / PartitionMounter
are needed, for example.

Test: builds
Test: libvintf_test
Test: vintf_object_test
Bug: 72722951

Change-Id: I3e4400bfb00bf0434a90a5fca9709bc76d5026c2
diff --git a/RuntimeInfo-target.cpp b/RuntimeInfo-target.cpp
index 1bdf2c3..6f2e9e8 100644
--- a/RuntimeInfo-target.cpp
+++ b/RuntimeInfo-target.cpp
@@ -33,7 +33,7 @@
 #include <iostream>
 #include <sstream>
 
-#include <cutils/properties.h>
+#include <android-base/properties.h>
 #include <selinux/selinux.h>
 #include <zlib.h>
 
@@ -148,12 +148,11 @@
 }
 
 status_t RuntimeInfoFetcher::fetchAvb() {
-    char prop[PROPERTY_VALUE_MAX];
-    property_get("ro.boot.vbmeta.avb_version", prop, "0.0");
+    std::string prop = android::base::GetProperty("ro.boot.vbmeta.avb_version", "0.0");
     if (!parse(prop, &mRuntimeInfo->mBootVbmetaAvbVersion)) {
         return UNKNOWN_ERROR;
     }
-    property_get("ro.boot.avb_version", prop, "0.0");
+    prop = android::base::GetProperty("ro.boot.avb_version", "0.0");
     if (!parse(prop, &mRuntimeInfo->mBootAvbVersion)) {
         return UNKNOWN_ERROR;
     }