Revert "dumpstate: Fix P10 touch can't work after bugreport." am: e8c9a801ab

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/17767830

Change-Id: I3ce1a2e622a733b1652bdde30e487b0b9e5fb963
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Mason Wang 2022-04-19 06:34:51 +00:00 committed by Automerger Merge Worker
commit 577f8cd4d7

View file

@ -575,6 +575,10 @@ void Dumpstate::dumpTouchSection(int fd) {
snprintf(cmd, sizeof(cmd), "%s/selftest/Short", focaltech_cmd_path);
DumpFileToFd(fd, "Get Short Test", cmd);
// Get HeatMap(ms,ss)
snprintf(cmd, sizeof(cmd), "%s/selftest/Strength", focaltech_cmd_path);
DumpFileToFd(fd, "Get HeatMap(ms,ss)", cmd);
// Disable: force touch active
snprintf(cmd, sizeof(cmd), "echo 20 > %s/force_active", focaltech_cmd_path);
RunCommandToFd(fd, "Disable Force Touch Active", {"/vendor/bin/sh", "-c", cmd});