summaryrefslogtreecommitdiff
path: root/cmds/dumpstate/dumpstate.cpp
diff options
context:
space:
mode:
author Devin Moore <devinmoore@google.com> 2022-09-29 20:37:24 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-09-29 20:37:24 +0000
commit90d6f65f5552e4ac7bdb278c6ce5618bfe1c2f65 (patch)
treed168079602ee0839bbd76757aa9eb622329437ff /cmds/dumpstate/dumpstate.cpp
parentba0567443c03088d4ba0550e16a3423603c853cc (diff)
parent16271d99ae50293b7c28e958a1a07f6be16154a3 (diff)
Merge "Get the current hardware sku for the vintf files"
Diffstat (limited to 'cmds/dumpstate/dumpstate.cpp')
-rw-r--r--cmds/dumpstate/dumpstate.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 6f8654ed24..6e9747f4dd 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -1405,7 +1405,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) {