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:
parent
ab130cecb4
commit
4c46bf699f
1 changed files with 1 additions and 0 deletions
|
@ -502,6 +502,7 @@ void DumpstateDevice::dumpTouchSection(int fd) {
|
||||||
RunCommandToFd(fd, "ITO Raw", {"/vendor/bin/sh", "-c", cmd});
|
RunCommandToFd(fd, "ITO Raw", {"/vendor/bin/sh", "-c", cmd});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
snprintf(cmd, sizeof(cmd), "%s", stm_cmd_path[i + 1]);
|
||||||
if (!access(cmd, R_OK)) {
|
if (!access(cmd, R_OK)) {
|
||||||
snprintf(cmd, sizeof(cmd), "echo A0 00 > %s", stm_cmd_path[i + 1]);
|
snprintf(cmd, sizeof(cmd), "echo A0 00 > %s", stm_cmd_path[i + 1]);
|
||||||
RunCommandToFd(fd, "Restore Bus Owner",
|
RunCommandToFd(fd, "Restore Bus Owner",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue