dumpstate: force touch active by using bugreport specific flag am: 11e1288f86 am: 94d45a15b7

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15344530

Change-Id: Ic6093d379cf756a927d70463437b46d09cf38db4
This commit is contained in:
Super Liu 2021-07-21 14:16:46 +00:00 committed by Automerger Merge Worker
commit 2f3f5eacc7

View file

@ -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});
}