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 <taikuo@google.com>
Change-Id: I447a267451f80ff0e5cdca321e08a2f8119e51ca
This commit is contained in:
Tai Kuo 2021-03-30 16:53:26 +08:00 committed by TreeHugger Robot
parent ab130cecb4
commit 4c46bf699f

View file

@ -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",