dumpstate: dump touch HDM debug information am: 87c912336a
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/16169685 Change-Id: I66048ca063f0c1eda6685719b1852429014d41fe
This commit is contained in:
commit
7a68c3cc43
1 changed files with 7 additions and 1 deletions
|
@ -540,6 +540,12 @@ void DumpstateDevice::dumpTouchSection(int fd) {
|
||||||
|
|
||||||
snprintf(cmd, sizeof(cmd), "%s", stm_cmd_path[i + 1]);
|
snprintf(cmd, sizeof(cmd), "%s", stm_cmd_path[i + 1]);
|
||||||
if (!access(cmd, R_OK)) {
|
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",
|
snprintf(cmd, sizeof(cmd), "echo 23 00 > %s && cat %s",
|
||||||
stm_cmd_path[i + 1], stm_cmd_path[i + 1]);
|
stm_cmd_path[i + 1], stm_cmd_path[i + 1]);
|
||||||
RunCommandToFd(fd, "Mutual Raw Data",
|
RunCommandToFd(fd, "Mutual Raw Data",
|
||||||
|
@ -605,7 +611,7 @@ void DumpstateDevice::dumpTouchSection(int fd) {
|
||||||
{"/vendor/bin/sh", "-c", cmd});
|
{"/vendor/bin/sh", "-c", cmd});
|
||||||
|
|
||||||
snprintf(cmd, sizeof(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]);
|
stm_cmd_path[i + 1], stm_cmd_path[i + 1], stm_cmd_path[i + 1]);
|
||||||
RunCommandToFd(fd, "HDM debug information (32 bytes)",
|
RunCommandToFd(fd, "HDM debug information (32 bytes)",
|
||||||
{"/vendor/bin/sh", "-c", cmd});
|
{"/vendor/bin/sh", "-c", cmd});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue