Snap for 9348344 from 0cdf324421 to tm-qpr2-release

Change-Id: I01c196749fbf5913ce3b918fbcd4163816c53c2d
This commit is contained in:
Android Build Coastguard Worker 2022-11-30 00:03:26 +00:00
commit 6af93ac85a

View file

@ -617,7 +617,10 @@ void Dumpstate::dumpTouchSection(int fd) {
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) { // ftm5
snprintf(cmd, sizeof(cmd), "%s", stm_cmd_path[i]);
if (!access(cmd, R_OK))
continue;
snprintf(cmd, sizeof(cmd), "%s", stm_cmd_path[i + 1]);
if (!access(cmd, R_OK)) {
snprintf(cmd, sizeof(cmd), "echo A0 01 01 > %s", stm_cmd_path[i + 1]);