Remove cheetah's touch setting
Bug: 256521567 Test: adb bugreport Change-Id: I8b112dfd3bccb6d73030ec6759476944e5785c9a
This commit is contained in:
parent
68e21ac894
commit
b812453669
1 changed files with 0 additions and 30 deletions
|
@ -545,7 +545,6 @@ void Dumpstate::dumpTouchSection(int fd) {
|
||||||
"/proc/fts/driver_test",
|
"/proc/fts/driver_test",
|
||||||
"/sys/class/spi_master/spi6/spi6.0",
|
"/sys/class/spi_master/spi6/spi6.0",
|
||||||
"/proc/fts_ext/driver_test"};
|
"/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 focaltech_cmd_path[] = "/proc/focaltech_touch";
|
||||||
const char gti0_cmd_path[] = "/sys/devices/virtual/goog_touch_interface/gti.0";
|
const char gti0_cmd_path[] = "/sys/devices/virtual/goog_touch_interface/gti.0";
|
||||||
char cmd[256];
|
char cmd[256];
|
||||||
|
@ -604,35 +603,6 @@ void Dumpstate::dumpTouchSection(int fd) {
|
||||||
RunCommandToFd(fd, "Disable Force Touch Active", {"/vendor/bin/sh", "-c", cmd});
|
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) {
|
for (int i = 0; i < 4; i+=2) {
|
||||||
snprintf(cmd, sizeof(cmd), "%s", stm_cmd_path[i + 1]);
|
snprintf(cmd, sizeof(cmd), "%s", stm_cmd_path[i + 1]);
|
||||||
if (!access(cmd, R_OK)) {
|
if (!access(cmd, R_OK)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue