dumpstate: add #19(TYPE_OFFSET_DATA_SEC) touch raw data

Bug: 169197851
Test: adb bugreport to check touch data
Signed-off-by: Super Liu <supercjliu@google.com>
Change-Id: I4835058cdad7c90a154d97dde55c4f7e9c2f0d57
This commit is contained in:
Super Liu 2020-09-23 10:47:44 +08:00
parent 6702dbf6b6
commit 0f80e463b4
1 changed files with 7 additions and 0 deletions

View File

@ -454,6 +454,13 @@ static void DumpTouch(int fd) {
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "Self Raw Cap", {"/vendor/bin/sh", "-c", cmd});
//TYPE_OFFSET_DATA_SEC
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
"run_rawdata_read_type,19",
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "TYPE_OFFSET_DATA_SEC", {"/vendor/bin/sh", "-c", cmd});
//TYPE_AMBIENT_DATA
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",