From 16271d99ae50293b7c28e958a1a07f6be16154a3 Mon Sep 17 00:00:00 2001 From: Devin Moore Date: Thu, 22 Sep 2022 18:28:48 +0000 Subject: 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 --- cmds/dumpstate/dumpstate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmds/dumpstate/dumpstate.cpp') diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index 6dea91bc2b..dc23fa3cc1 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -1402,7 +1402,9 @@ static void DumpHals(int out_fd = STDOUT_FILENO) { // 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) { -- cgit v1.2.3-59-g8ed1b