diff options
author | davidycchen <davidycchen@google.com> | 2021-11-03 05:23:23 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-11-03 05:23:23 +0000 |
commit | 82343a1489617a4b6b075cc75c793dc296773a2f (patch) | |
tree | 145a82d011e00bcb00966ecbb2f240ffdfe985ce /dumpstate | |
parent | 4e18aa73ea1e44758731b6c113438833e05d36bd (diff) | |
parent | 7a68c3cc43a4673a695d6f9a261d2980a5a2ca22 (diff) | |
download | gs101-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.cpp | 8 |
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}); |