move cheetah touch dump to gs-common
Bug: 256521567 Test: adb bugreport Change-Id: I87f223d78b64bd69a092299fe41c96820e5ce446
This commit is contained in:
parent
3a2abe3626
commit
96e1ee4f25
1 changed files with 0 additions and 30 deletions
|
@ -546,7 +546,6 @@ void Dumpstate::dumpTouchSection(int fd) {
|
|||
"/proc/fts/driver_test",
|
||||
"/sys/class/spi_master/spi6/spi6.0",
|
||||
"/proc/fts_ext/driver_test"};
|
||||
const char syna_cmd_path[] = "/sys/class/spi_master/spi0/spi0.0/synaptics_tcm.0/sysfs";
|
||||
const char focaltech_cmd_path[] = "/proc/focaltech_touch";
|
||||
const char gti0_cmd_path[] = "/sys/devices/virtual/goog_touch_interface/gti.0";
|
||||
char cmd[256];
|
||||
|
@ -605,35 +604,6 @@ void Dumpstate::dumpTouchSection(int fd) {
|
|||
RunCommandToFd(fd, "Disable Force Touch Active", {"/vendor/bin/sh", "-c", cmd});
|
||||
}
|
||||
|
||||
if (!access(syna_cmd_path, R_OK)) {
|
||||
// Enable: force touch active
|
||||
snprintf(cmd, sizeof(cmd), "echo 21 > %s/force_active", syna_cmd_path);
|
||||
RunCommandToFd(fd, "Enable Force Touch Active", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Touch Firmware Information
|
||||
snprintf(cmd, sizeof(cmd), "%s/info", syna_cmd_path);
|
||||
DumpFileToFd(fd, "Touch Firmware Information", cmd);
|
||||
|
||||
// Get Raw Data - Delta
|
||||
snprintf(cmd, sizeof(cmd),
|
||||
"echo 12 > %s/get_raw_data && cat %s/get_raw_data", syna_cmd_path, syna_cmd_path);
|
||||
RunCommandToFd(fd, "Get Raw Data - Delta", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Get Raw Data - Raw
|
||||
snprintf(cmd, sizeof(cmd),
|
||||
"echo 13 > %s/get_raw_data && cat %s/get_raw_data", syna_cmd_path, syna_cmd_path);
|
||||
RunCommandToFd(fd, "Get Raw Data - Raw", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Get Raw Data - Baseline
|
||||
snprintf(cmd, sizeof(cmd),
|
||||
"echo 14 > %s/get_raw_data && cat %s/get_raw_data", syna_cmd_path, syna_cmd_path);
|
||||
RunCommandToFd(fd, "Get Raw Data - Baseline", {"/vendor/bin/sh", "-c", cmd});
|
||||
|
||||
// Disable: force touch active
|
||||
snprintf(cmd, sizeof(cmd), "echo 20 > %s/force_active", syna_cmd_path);
|
||||
RunCommandToFd(fd, "Disable Force Touch Active", {"/vendor/bin/sh", "-c", cmd});
|
||||
}
|
||||
|
||||
for (int i = 0; i < 4; i+=2) {
|
||||
snprintf(cmd, sizeof(cmd), "%s", stm_cmd_path[i + 1]);
|
||||
if (!access(cmd, R_OK)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue