redfin: dumpstate: adjust touch snapshoots sequence

Bug: 144538796
Test: check bugreport for touch snapshots
Change-Id: If72c659349895146bf0b7d37ab5616f372552788
Signed-off-by: Super Liu <supercjliu@google.com>
This commit is contained in:
Super Liu
2019-11-22 11:37:24 +08:00
committed by Cyan_Hsieh
parent 467876afbb
commit 6efd6a14e1

View File

@@ -274,12 +274,19 @@ static void DumpTouch(int fd) {
snprintf(cmd, sizeof(cmd), "%s/status", touch_spi_path);
DumpFileToFd(fd, "LSI touch status", cmd);
//Raw data
//Mutual strength
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
"run_rawdata_read_all",
"run_delta_read_all",
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "Mutual Raw Data", {"/vendor/bin/sh", "-c", cmd});
RunCommandToFd(fd, "Mutual Strength", {"/vendor/bin/sh", "-c", cmd});
//Self strength
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
"run_self_delta_read_all",
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "Self Strength", {"/vendor/bin/sh", "-c", cmd});
//Raw cap
snprintf(cmd, sizeof(cmd),
@@ -288,26 +295,19 @@ static void DumpTouch(int fd) {
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "Mutual Raw Cap", {"/vendor/bin/sh", "-c", cmd});
//Mutual strength
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
"run_delta_read_all",
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "Mutual Strength", {"/vendor/bin/sh", "-c", cmd});
//Self raw
//Self raw cap
snprintf(cmd, sizeof(cmd),
"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});
//Self strength
//Raw data
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
"run_self_delta_read_all",
"run_rawdata_read_all",
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "Self Strength", {"/vendor/bin/sh", "-c", cmd});
RunCommandToFd(fd, "Mutual Raw Data", {"/vendor/bin/sh", "-c", cmd});
//Disable: force touch active
snprintf(cmd, sizeof(cmd),