summaryrefslogtreecommitdiff
path: root/dumpstate
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-01-07 15:12:59 +0000
committerCyan_Hsieh <cyanhsieh@google.com>2020-05-29 21:19:57 +0800
commitcffecd317396cdf2b22a175c408077656024f62b (patch)
treeb0932592e81056313936a6801eb5d6711759f5b4 /dumpstate
parent24e4646b1e6318e0afac44abf769aa824657a672 (diff)
parentd51bee0e1b4a68f32199bc2e005035303e4f6cdc (diff)
downloadredfin-cffecd317396cdf2b22a175c408077656024f62b.tar.gz
redfin: dumpstate: collect touch calibration info am: 85b2ca3003 am: 856fc81d80
Change-Id: I528160b0f8e552d4ac88aa7eda672ab91f0357a8
Diffstat (limited to 'dumpstate')
-rwxr-xr-xdumpstate/DumpstateDevice.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp
index 95377b9..193dfb4 100755
--- a/dumpstate/DumpstateDevice.cpp
+++ b/dumpstate/DumpstateDevice.cpp
@@ -277,7 +277,14 @@ static void DumpTouch(int fd) {
snprintf(cmd, sizeof(cmd), "%s/status", touch_spi_path);
DumpFileToFd(fd, "LSI touch status", cmd);
- //Mutual strength
+ //Calibration info
+ snprintf(cmd, sizeof(cmd),
+ "echo %s > %s/cmd && cat %s/cmd_result",
+ "get_mis_cal_info",
+ touch_spi_path, touch_spi_path);
+ RunCommandToFd(fd, "Calibration info", {"/vendor/bin/sh", "-c", cmd});
+
+ //Mutual strength
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
"run_delta_read_all",