summaryrefslogtreecommitdiff
path: root/dumpstate
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2021-07-21 01:37:49 +0000
committerSuper Liu <supercjliu@google.com>2021-07-21 02:35:34 +0000
commit4ee5627c1160329dafab62b03663cf94fe7fd38c (patch)
treed525592bc40395b215aac3eb01d368ffcbdf3cae /dumpstate
parentb653411208221ec9bb935c240d09b566630b0164 (diff)
downloadgs101-4ee5627c1160329dafab62b03663cf94fe7fd38c.tar.gz
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
Diffstat (limited to 'dumpstate')
-rw-r--r--dumpstate/DumpstateDevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp
index e5d53785..d566bb15 100644
--- a/dumpstate/DumpstateDevice.cpp
+++ b/dumpstate/DumpstateDevice.cpp
@@ -611,7 +611,7 @@ void DumpstateDevice::dumpTouchSection(int fd) {
// Enable: force touch active
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
- "force_touch_active,1",
+ "force_touch_active,2,1",
lsi_spi_path, lsi_spi_path);
RunCommandToFd(fd, "Force Touch Active", {"/vendor/bin/sh", "-c", cmd});
@@ -696,7 +696,7 @@ void DumpstateDevice::dumpTouchSection(int fd) {
// Disable: force touch active
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
- "force_touch_active,0",
+ "force_touch_active,2,0",
lsi_spi_path, lsi_spi_path);
RunCommandToFd(fd, "Force Touch Active", {"/vendor/bin/sh", "-c", cmd});
}