summaryrefslogtreecommitdiff
path: root/dumpstate
diff options
context:
space:
mode:
authordavidycchen <davidycchen@google.com>2021-11-03 05:23:23 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-11-03 05:23:23 +0000
commit82343a1489617a4b6b075cc75c793dc296773a2f (patch)
tree145a82d011e00bcb00966ecbb2f240ffdfe985ce /dumpstate
parent4e18aa73ea1e44758731b6c113438833e05d36bd (diff)
parent7a68c3cc43a4673a695d6f9a261d2980a5a2ca22 (diff)
downloadgs101-82343a1489617a4b6b075cc75c793dc296773a2f.tar.gz
dumpstate: dump touch HDM debug information am: 87c912336a am: 7a68c3cc43
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16169685 Change-Id: I6ead244615b425084ff208b7e525de2c6de75804
Diffstat (limited to 'dumpstate')
-rw-r--r--dumpstate/DumpstateDevice.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp
index 4a4def45..5ffb6303 100644
--- a/dumpstate/DumpstateDevice.cpp
+++ b/dumpstate/DumpstateDevice.cpp
@@ -544,6 +544,12 @@ void DumpstateDevice::dumpTouchSection(int fd) {
snprintf(cmd, sizeof(cmd), "%s", stm_cmd_path[i + 1]);
if (!access(cmd, R_OK)) {
+ snprintf(cmd, sizeof(cmd),
+ "echo 01 A4 06 C3 > %s; echo 02 A7 00 00 00 40 00 > %s && cat %s",
+ stm_cmd_path[i + 1], stm_cmd_path[i + 1], stm_cmd_path[i + 1]);
+ RunCommandToFd(fd, "HDM debug information (32 bytes)",
+ {"/vendor/bin/sh", "-c", cmd});
+
snprintf(cmd, sizeof(cmd), "echo 23 00 > %s && cat %s",
stm_cmd_path[i + 1], stm_cmd_path[i + 1]);
RunCommandToFd(fd, "Mutual Raw Data",
@@ -609,7 +615,7 @@ void DumpstateDevice::dumpTouchSection(int fd) {
{"/vendor/bin/sh", "-c", cmd});
snprintf(cmd, sizeof(cmd),
- "echo 01 A4 06 C3 > %s; echo 02 A7 00 00 00 20 00 > %s && cat %s",
+ "echo 01 A4 06 C3 > %s; echo 02 A7 00 00 00 40 00 > %s && cat %s",
stm_cmd_path[i + 1], stm_cmd_path[i + 1], stm_cmd_path[i + 1]);
RunCommandToFd(fd, "HDM debug information (32 bytes)",
{"/vendor/bin/sh", "-c", cmd});