dumpstate: modify the method for dump touch information am: ea61f9cd27
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14518353 Change-Id: Ia34b1b8606d4ab6fdf2efe328e87db3e1a12cc29
This commit is contained in:
commit
83ef871951
1 changed files with 3 additions and 3 deletions
|
@ -428,8 +428,8 @@ void DumpstateDevice::dumpTouchSection(int fd) {
|
||||||
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)) {
|
||||||
snprintf(cmd, sizeof(cmd), "echo A0 01 > %s", stm_cmd_path[i + 1]);
|
snprintf(cmd, sizeof(cmd), "echo A0 01 01 > %s", stm_cmd_path[i + 1]);
|
||||||
RunCommandToFd(fd, "Force Set AP as Bus Owner",
|
RunCommandToFd(fd, "Force Set AP as Bus Owner with Bugreport Flag",
|
||||||
{"/vendor/bin/sh", "-c", cmd});
|
{"/vendor/bin/sh", "-c", cmd});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -539,7 +539,7 @@ void DumpstateDevice::dumpTouchSection(int fd) {
|
||||||
|
|
||||||
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)) {
|
||||||
snprintf(cmd, sizeof(cmd), "echo A0 00 > %s", stm_cmd_path[i + 1]);
|
snprintf(cmd, sizeof(cmd), "echo A0 00 01 > %s", stm_cmd_path[i + 1]);
|
||||||
RunCommandToFd(fd, "Restore Bus Owner",
|
RunCommandToFd(fd, "Restore Bus Owner",
|
||||||
{"/vendor/bin/sh", "-c", cmd});
|
{"/vendor/bin/sh", "-c", cmd});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue