redfin: dumpstate: add touch raw data types 3, 5, 30 and 31 to bugreport

Bug: 144538796
Test: check bugreport for touch snapshots
Change-Id: If683e4271fcee01f3db4c864a094ac795469106f
Signed-off-by: Super Liu <supercjliu@google.com>
This commit is contained in:
Super Liu
2020-01-15 15:52:12 +08:00
committed by Cyan_Hsieh
parent 633f2e912b
commit 9ddfb169a9

View File

@@ -307,14 +307,35 @@ static void DumpTouch(int fd) {
"echo %s > %s/cmd && cat %s/cmd_result",
"run_self_rawcap_read_all",
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "Self Raw", {"/vendor/bin/sh", "-c", cmd});
RunCommandToFd(fd, "Self Raw Cap", {"/vendor/bin/sh", "-c", cmd});
//Raw data
//TYPE_AMBIENT_DATA
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
"run_rawdata_read_all",
"run_rawdata_read_type,3",
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "Mutual Raw Data", {"/vendor/bin/sh", "-c", cmd});
RunCommandToFd(fd, "TYPE_AMBIENT_DATA", {"/vendor/bin/sh", "-c", cmd});
//TYPE_DECODED_DATA
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
"run_rawdata_read_type,5",
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "TYPE_DECODED_DATA", {"/vendor/bin/sh", "-c", cmd});
//TYPE_NOI_P2P_MIN
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
"run_rawdata_read_type,30",
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "TYPE_NOI_P2P_MIN", {"/vendor/bin/sh", "-c", cmd});
//TYPE_NOI_P2P_MAX
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
"run_rawdata_read_type,31",
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "TYPE_NOI_P2P_MAX", {"/vendor/bin/sh", "-c", cmd});
//Disable: force touch active
snprintf(cmd, sizeof(cmd),