Merge "dumpstate: add #19(TYPE_OFFSET_DATA_SEC) touch raw data" into rvc-qpr-dev

This commit is contained in:
TreeHugger Robot 2020-10-12 08:20:09 +00:00 committed by Android (Google) Code Review
commit cae4a6d8ee
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",