Add getters to RuntimeInfo
They are used by Java API.
Test: pass
Bug: 28656227
Change-Id: I612692b96a9df69dca5cf4d1b15fc6ec45c86ee7
diff --git a/RuntimeInfo.cpp b/RuntimeInfo.cpp
index 9c277a9..cee5d89 100644
--- a/RuntimeInfo.cpp
+++ b/RuntimeInfo.cpp
@@ -45,10 +45,19 @@
return mHardwareId;
}
+const KernelVersion &RuntimeInfo::kernelVersion() const {
+ return mKernelVersion;
+}
+
+
const std::vector<std::string> &RuntimeInfo::sepolicyFilePaths() const {
return mSepolicyFilePaths;
}
+const std::map<std::string, std::string> &RuntimeInfo::kernelConfigs() const {
+ return mKernelConfigs;
+}
+
size_t RuntimeInfo::kernelSepolicyVersion() const {
return mKernelSepolicyVersion;
}
@@ -57,6 +66,14 @@
return mCpuInfo;
}
+const Version &RuntimeInfo::bootVbmetaAvbVersion() const {
+ return mBootVbmetaAvbVersion;
+}
+
+const Version &RuntimeInfo::bootAvbVersion() const {
+ return mBootAvbVersion;
+}
+
bool RuntimeInfo::checkCompatibility(const CompatibilityMatrix &mat,
std::string *error) const {
if (mat.mType != SchemaType::FRAMEWORK) {