dumpstate: force touch active by using bugreport specific flag

Bug: 194157915
Test: bugreport works normally for touch.
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: Ice27991a4cac9cca875b55241126bc6f88fb62b6
This commit is contained in:
Super Liu 2021-07-21 01:37:49 +00:00
parent b653411208
commit 4ee5627c11

View file

@ -611,7 +611,7 @@ void DumpstateDevice::dumpTouchSection(int fd) {
// Enable: force touch active // Enable: force touch active
snprintf(cmd, sizeof(cmd), snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result", "echo %s > %s/cmd && cat %s/cmd_result",
"force_touch_active,1", "force_touch_active,2,1",
lsi_spi_path, lsi_spi_path); lsi_spi_path, lsi_spi_path);
RunCommandToFd(fd, "Force Touch Active", {"/vendor/bin/sh", "-c", cmd}); RunCommandToFd(fd, "Force Touch Active", {"/vendor/bin/sh", "-c", cmd});
@ -696,7 +696,7 @@ void DumpstateDevice::dumpTouchSection(int fd) {
// Disable: force touch active // Disable: force touch active
snprintf(cmd, sizeof(cmd), snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result", "echo %s > %s/cmd && cat %s/cmd_result",
"force_touch_active,0", "force_touch_active,2,0",
lsi_spi_path, lsi_spi_path); lsi_spi_path, lsi_spi_path);
RunCommandToFd(fd, "Force Touch Active", {"/vendor/bin/sh", "-c", cmd}); RunCommandToFd(fd, "Force Touch Active", {"/vendor/bin/sh", "-c", cmd});
} }