Add sepolicyFilePaths() to RuntimeInfo.
Test: adb shell vintf
Bug: 28656227
Change-Id: If8c28eff7a057fafda88384c92498f0f21121b97
diff --git a/parse_string.cpp b/parse_string.cpp
index e6a24d1..8bf66c5 100644
--- a/parse_string.cpp
+++ b/parse_string.cpp
@@ -382,8 +382,12 @@
<< ki.hardwareId() << ";"
<< ki.mAvbBootVersion << "/"
<< ki.mAvbInitVersion << ";"
- << "kernelSepolicyVersion = " << ki.kernelSepolicyVersion() << ";"
- << "#CONFIG's loaded = " << ki.mKernelConfigs.size() << ";\n";
+ << "kernelSepolicyVersion = " << ki.kernelSepolicyVersion() << ";\n"
+ << "sepolicy files:\n";
+ for (const auto &file : ki.sepolicyFilePaths()) {
+ oss << " " << file << "\n";
+ }
+ oss << "\n#CONFIG's loaded = " << ki.mKernelConfigs.size() << ";\n";
for (const auto &pair : ki.mKernelConfigs) {
oss << pair.first << "=" << pair.second << "\n";
}