From 4c46bf699faeaedbf946da06b7471bb5686a2be3 Mon Sep 17 00:00:00 2001 From: Tai Kuo Date: Tue, 30 Mar 2021 16:53:26 +0800 Subject: [PATCH] dumpstate: check the correct bus force active command path Bug: 183557468 Bug: 181833046 Bug: 182976988 Test: adb shell "lshal debug \ android.hardware.dumpstate@1.0::IDumpstateDevice/default touch" Signed-off-by: Tai Kuo Change-Id: I447a267451f80ff0e5cdca321e08a2f8119e51ca --- dumpstate/DumpstateDevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 2b736175..0be7a1d3 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -502,6 +502,7 @@ void DumpstateDevice::dumpTouchSection(int fd) { RunCommandToFd(fd, "ITO Raw", {"/vendor/bin/sh", "-c", cmd}); } + snprintf(cmd, sizeof(cmd), "%s", stm_cmd_path[i + 1]); if (!access(cmd, R_OK)) { snprintf(cmd, sizeof(cmd), "echo A0 00 > %s", stm_cmd_path[i + 1]); RunCommandToFd(fd, "Restore Bus Owner",