Get the current hardware sku for the vintf files
This allows us to collect only the specific vintf manifest files from
/odm/etc.
Bug: 247036514
Test: Add a fake manifest file to /odm/etc/ and set sku prop & check
Test: m && adb bugreportz && adb logcat | grep avc
Change-Id: Idfd590084a75bb2942f158f5e33d074b41f81587
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 6dea91b..dc23fa3 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -1402,7 +1402,9 @@
// Dump all of the files that make up the vendor interface.
// See the files listed in dumpFileList() for the latest list of files.
static void DumpVintf() {
- const auto vintfFiles = android::vintf::details::dumpFileList();
+
+ const std::string sku = android::base::GetProperty("ro.boot.product.hardware.sku", "");
+ const auto vintfFiles = android::vintf::details::dumpFileList(sku);
for (const auto vintfFile : vintfFiles) {
struct stat st;
if (stat(vintfFile.c_str(), &st) == 0) {