Snap for 7881892 from 82343a1489 to tm-release

Change-Id: I55381a66f600cf8b5d8c964109ea3467015676eb
This commit is contained in:
Android Build Coastguard Worker 2021-11-04 01:04:27 +00:00
commit d3061399f2

View file

@ -544,6 +544,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",
@ -609,7 +615,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});