From 101c17fc9593df2dbfa814209b402039e5549fb2 Mon Sep 17 00:00:00 2001 From: Mason Wang Date: Thu, 14 Apr 2022 12:34:22 +0800 Subject: [PATCH] dumpstate: Fix P10 touch can't work after bugreport. Do not dump the touch heatmap data to fix touch abnormally after bugreport. This is the WA. I will revert it after kernel includes the solution commit pa/2194708. Bug: 228928861 Test: touch works well after triggering bugreport. Change-Id: I43a92efa78d8b77e1616c8bf63800d5a93b99456 --- dumpstate/DumpstateDevice.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 1dc3636a..095559de 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -577,10 +577,6 @@ void DumpstateDevice::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});