1 /*
2 * Copyright 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 #define LOG_TAG "dumpstate"
18
19 #include "DumpstateDevice.h"
20
21 #include <android-base/properties.h>
22 #include <android-base/unique_fd.h>
23 #include <cutils/properties.h>
24 #include <log/log.h>
25 #include <pthread.h>
26 #include <string.h>
27
28 #define _SVID_SOURCE
29 #include <dirent.h>
30
31 #include "DumpstateUtil.h"
32
33 #define MODEM_LOG_PREFIX_PROPERTY "ro.radio.log_prefix"
34 #define MODEM_LOG_LOC_PROPERTY "ro.radio.log_loc"
35
36 #define DIAG_MDLOG_PERSIST_PROPERTY "persist.vendor.sys.modem.diag.mdlog"
37 #define DIAG_MDLOG_PROPERTY "vendor.sys.modem.diag.mdlog"
38 #define DIAG_MDLOG_STATUS_PROPERTY "vendor.sys.modem.diag.mdlog_on"
39
40 #define DIAG_MDLOG_NUMBER_BUGREPORT "persist.vendor.sys.modem.diag.mdlog_br_num"
41
42 #define EMMC_BOOTDEVICE "ro.boot.bootdevice"
43
44 #define TCPDUMP_NUMBER_BUGREPORT "persist.vendor.tcpdump.log.br_num"
45 #define TCPDUMP_PERSIST_PROPERTY "persist.vendor.tcpdump.log.alwayson"
46
47 #define MODEM_EFS_DUMP_PROPERTY "vendor.sys.modem.diag.efsdump"
48
49 using android::os::dumpstate::CommandOptions;
50 using android::os::dumpstate::DumpFileToFd;
51 using android::os::dumpstate::PropertiesHelper;
52 using android::os::dumpstate::RunCommandToFd;
53
54 namespace android {
55 namespace hardware {
56 namespace dumpstate {
57 namespace V1_0 {
58 namespace implementation {
59
60 #define DIAG_LOG_PREFIX "diag_log_"
61 #define TCPDUMP_LOG_PREFIX "tcpdump"
62 #define EXTENDED_LOG_PREFIX "extended_log_"
63
dumpLogs(int fd,std::string srcDir,std::string destDir,int maxFileNum,const char * logPrefix)64 static void dumpLogs(int fd, std::string srcDir, std::string destDir,
65 int maxFileNum, const char *logPrefix) {
66 struct dirent **dirent_list = NULL;
67 int num_entries = scandir(srcDir.c_str(),
68 &dirent_list,
69 0,
70 (int (*)(const struct dirent **, const struct dirent **)) alphasort);
71 if (!dirent_list) {
72 return;
73 } else if (num_entries <= 0) {
74 return;
75 }
76
77 int copiedFiles = 0;
78
79 for (int i = num_entries - 1; i >= 0; i--) {
80 ALOGD("Found %s\n", dirent_list[i]->d_name);
81
82 if (0 != strncmp(dirent_list[i]->d_name, logPrefix, strlen(logPrefix))) {
83 continue;
84 }
85
86 if ((copiedFiles >= maxFileNum) && (maxFileNum != -1)) {
87 ALOGD("Skipped %s\n", dirent_list[i]->d_name);
88 continue;
89 }
90
91 copiedFiles++;
92
93 CommandOptions options = CommandOptions::WithTimeout(120).Build();
94 std::string srcLogFile = srcDir + "/" + dirent_list[i]->d_name;
95 std::string destLogFile = destDir + "/" + dirent_list[i]->d_name;
96
97 std::string copyCmd = "/vendor/bin/cp " + srcLogFile + " " + destLogFile;
98
99 ALOGD("Copying %s to %s\n", srcLogFile.c_str(), destLogFile.c_str());
100 RunCommandToFd(fd, "CP DIAG LOGS", { "/vendor/bin/sh", "-c", copyCmd.c_str() }, options);
101 }
102
103 while (num_entries--) {
104 free(dirent_list[num_entries]);
105 }
106
107 free(dirent_list);
108 }
109
dumpModemThread(void * data)110 static void *dumpModemThread(void *data)
111 {
112 long fdModem = (long)data;
113
114 ALOGD("dumpModemThread started\n");
115
116 std::string modemLogDir = android::base::GetProperty(MODEM_LOG_LOC_PROPERTY, "");
117 if (modemLogDir.empty()) {
118 ALOGD("No modem log place is set");
119 return NULL;
120 }
121
122 std::string filePrefix = android::base::GetProperty(MODEM_LOG_PREFIX_PROPERTY, "");
123
124 if (filePrefix.empty()) {
125 ALOGD("Modem log prefix is not set");
126 return NULL;
127 }
128
129 sleep(1);
130 ALOGD("Waited modem for 1 second to flush logs");
131
132 const std::string modemLogCombined = modemLogDir + "/" + filePrefix + "all.tar";
133 const std::string modemLogAllDir = modemLogDir + "/modem_log";
134
135 RunCommandToFd(STDOUT_FILENO, "MKDIR MODEM LOG", {"/vendor/bin/mkdir", "-p", modemLogAllDir.c_str()}, CommandOptions::WithTimeout(2).Build());
136
137 if (!PropertiesHelper::IsUserBuild()) {
138 android::base::SetProperty(MODEM_EFS_DUMP_PROPERTY, "true");
139
140 const std::string diagLogDir = "/data/vendor/radio/diag_logs/logs";
141 const std::string tcpdumpLogDir = "/data/vendor/tcpdump_logger/logs";
142 const std::string extendedLogDir = "/data/vendor/radio/extended_logs";
143 const std::vector <std::string> rilAndNetmgrLogs
144 {
145 "/data/vendor/radio/ril_log0",
146 "/data/vendor/radio/ril_log0_old",
147 "/data/vendor/radio/ril_log1",
148 "/data/vendor/radio/ril_log1_old",
149 "/data/vendor/radio/qmi_fw_log",
150 "/data/vendor/radio/qmi_fw_log_old",
151 "/data/vendor/radio/imsdatadaemon_log",
152 "/data/vendor/radio/imsdatadaemon_log_old",
153 "/data/vendor/netmgr/netmgr_log",
154 "/data/vendor/netmgr/netmgr_log_old",
155 "/data/vendor/radio/power_anomaly_data.txt",
156 "/data/vendor/radio/diag_logs/diag_trace.txt",
157 "/data/vendor/radio/diag_logs/diag_trace_old.txt",
158 "/data/vendor/radio/diag_logs/logs/diag_poweron_log.qmdl",
159 "/data/vendor/radio/metrics_data",
160 "/data/vendor/ssrlog/ssr_log.txt",
161 "/data/vendor/ssrlog/ssr_log_old.txt",
162 "/data/vendor/rfs/mpss/modem_efs"
163 };
164
165 bool diagLogEnabled = android::base::GetBoolProperty(DIAG_MDLOG_PERSIST_PROPERTY, false);
166 bool tcpdumpEnabled = android::base::GetBoolProperty(TCPDUMP_PERSIST_PROPERTY, false);
167
168 if (diagLogEnabled) {
169 bool diagLogStarted = android::base::GetBoolProperty(DIAG_MDLOG_STATUS_PROPERTY, false);
170
171 if (diagLogStarted) {
172 android::base::SetProperty(DIAG_MDLOG_PROPERTY, "false");
173 ALOGD("Stopping diag_mdlog...\n");
174 if (android::base::WaitForProperty(DIAG_MDLOG_STATUS_PROPERTY, "false", std::chrono::seconds(10))) {
175 ALOGD("diag_mdlog exited");
176 } else {
177 ALOGE("Waited mdlog timeout after 10 second");
178 }
179 } else {
180 ALOGD("diag_mdlog is not running");
181 }
182
183 dumpLogs(STDOUT_FILENO, diagLogDir, modemLogAllDir, android::base::GetIntProperty(DIAG_MDLOG_NUMBER_BUGREPORT, 100), DIAG_LOG_PREFIX);
184
185 if (diagLogStarted) {
186 ALOGD("Restarting diag_mdlog...");
187 android::base::SetProperty(DIAG_MDLOG_PROPERTY, "true");
188 }
189 }
190
191 if (tcpdumpEnabled) {
192 dumpLogs(STDOUT_FILENO, tcpdumpLogDir, modemLogAllDir, android::base::GetIntProperty(TCPDUMP_NUMBER_BUGREPORT, 5), TCPDUMP_LOG_PREFIX);
193 }
194
195 for (const auto& logFile : rilAndNetmgrLogs) {
196 RunCommandToFd(STDOUT_FILENO, "CP MODEM LOG", {"/vendor/bin/cp", logFile.c_str(), modemLogAllDir.c_str()}, CommandOptions::WithTimeout(2).Build());
197 }
198
199 dumpLogs(STDOUT_FILENO, extendedLogDir, modemLogAllDir, 100, EXTENDED_LOG_PREFIX);
200 android::base::SetProperty(MODEM_EFS_DUMP_PROPERTY, "false");
201 }
202
203 RunCommandToFd(STDOUT_FILENO, "TAR LOG", {"/vendor/bin/tar", "cvf", modemLogCombined.c_str(), "-C", modemLogAllDir.c_str(), "."}, CommandOptions::WithTimeout(20).Build());
204 RunCommandToFd(STDOUT_FILENO, "CHG PERM", {"/vendor/bin/chmod", "a+w", modemLogCombined.c_str()}, CommandOptions::WithTimeout(2).Build());
205
206 std::vector<uint8_t> buffer(65536);
207 android::base::unique_fd fdLog(TEMP_FAILURE_RETRY(open(modemLogCombined.c_str(), O_RDONLY | O_CLOEXEC | O_NONBLOCK)));
208
209 if (fdLog >= 0) {
210 while (1) {
211 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fdLog, buffer.data(), buffer.size()));
212
213 if (bytes_read == 0) {
214 break;
215 } else if (bytes_read < 0) {
216 ALOGD("read(%s): %s\n", modemLogCombined.c_str(), strerror(errno));
217 break;
218 }
219
220 ssize_t result = TEMP_FAILURE_RETRY(write(fdModem, buffer.data(), bytes_read));
221
222 if (result != bytes_read) {
223 ALOGD("Failed to write %ld bytes, actually written: %ld", bytes_read, result);
224 break;
225 }
226 }
227 }
228
229 RunCommandToFd(STDOUT_FILENO, "RM MODEM DIR", { "/vendor/bin/rm", "-r", modemLogAllDir.c_str()}, CommandOptions::WithTimeout(2).Build());
230 RunCommandToFd(STDOUT_FILENO, "RM LOG", { "/vendor/bin/rm", modemLogCombined.c_str()}, CommandOptions::WithTimeout(2).Build());
231
232 ALOGD("dumpModemThread finished\n");
233
234 return NULL;
235 }
236
DumpIPCTRT(int fd)237 static void DumpIPCTRT(int fd) {
238 DumpFileToFd(fd, "MPSS IPCRTR Log", "/sys/kernel/debug/ipc_logging/mpss_IPCRTR/log");
239 DumpFileToFd(fd, "Local IPCRTR Log", "/sys/kernel/debug/ipc_logging/local_IPCRTR/log");
240 }
241
DumpTouch(int fd)242 static void DumpTouch(int fd) {
243 const std::string touch_sysfs_path = "/sys/devices/platform/soc/a84000.i2c/i2c-2/2-0020/input/input2/";
244 if (!access(touch_sysfs_path.c_str(), R_OK)) {
245 DumpFileToFd(fd, "Synaptics touch firmware version",
246 touch_sysfs_path + "buildid");
247 DumpFileToFd(fd, "Synaptics touch config version",
248 touch_sysfs_path + "config");
249 RunCommandToFd(fd, "keep touch stay awake",
250 {"/vendor/bin/sh", "-c",
251 "echo 02 >" + touch_sysfs_path + "suspend"});
252 DumpFileToFd(fd, "Synaptics touch noise information",
253 touch_sysfs_path + "noise_state");
254 for (int i = 0; i < 5; i++) {
255 RunCommandToFd(fd, "Touch Cm Raw data",
256 {"/vendor/bin/sh", "-c",
257 "echo 20 >" + touch_sysfs_path + "read_report"
258 " && cat " + touch_sysfs_path + "read_report"});
259 RunCommandToFd(fd, "Touch Cm Jitter",
260 {"/vendor/bin/sh", "-c",
261 "echo 02 >" + touch_sysfs_path + "read_report"
262 " && cat " + touch_sysfs_path + "read_report"});
263 RunCommandToFd(fd, "Touch Cs Raw data",
264 {"/vendor/bin/sh", "-c",
265 "echo 63 >" + touch_sysfs_path + "read_report"
266 " && cat " + touch_sysfs_path + "read_report"});
267 RunCommandToFd(fd, "Touch Cs Jitter",
268 {"/vendor/bin/sh", "-c",
269 "echo 59 >" + touch_sysfs_path + "read_report"
270 " && cat " + touch_sysfs_path + "read_report"});
271 }
272 RunCommandToFd(fd, "keep touch stay awake disable",
273 {"/vendor/bin/sh", "-c",
274 "echo 00 >" + touch_sysfs_path + "suspend"});
275 }
276 }
277
DumpF2FS(int fd)278 static void DumpF2FS(int fd) {
279 DumpFileToFd(fd, "F2FS", "/sys/kernel/debug/f2fs/status");
280 DumpFileToFd(fd, "F2FS - fragmentation", "/proc/fs/f2fs/dm-6/segment_info");
281 }
282
DumpPower(int fd)283 static void DumpPower(int fd) {
284 RunCommandToFd(fd, "Power Stats Times", {"/vendor/bin/sh", "-c",
285 "echo -n \"Boot: \" && /vendor/bin/uptime -s &&"
286 "echo -n \"Now: \" && date"});
287 DumpFileToFd(fd, "Sleep Stats", "/sys/power/system_sleep/stats");
288 DumpFileToFd(fd, "Power Management Stats", "/sys/power/rpmh_stats/master_stats");
289 DumpFileToFd(fd, "WLAN Power Stats", "/d/wlan0/power_stats");
290 }
291
DumpeMMC(int fd)292 static void DumpeMMC(int fd) {
293 DumpFileToFd(fd, "eMMC model", "/sys/block/mmcblk0/device/name");
294 DumpFileToFd(fd, "eMMC prv", "/sys/block/mmcblk0/device/prv");
295 DumpFileToFd(fd, "eMMC fwrev", "/sys/block/mmcblk0/device/fwrev");
296 DumpFileToFd(fd, "eMMC size", "/sys/block/mmcblk0/size");
297 DumpFileToFd(fd, "eMMC ext_csd", "/sys/kernel/debug/mmc0/mmc0:0001/ext_csd");
298 DumpFileToFd(fd, "eMMC err_stats", "/sys/kernel/debug/mmc0/err_stats");
299 DumpFileToFd(fd, "eMMC ring_buffer", "/sys/kernel/debug/mmc0/ring_buffer");
300 DumpFileToFd(fd, "eMMC host status", "/sys/kernel/debug/mmc0/show_host");
301 DumpFileToFd(fd, "eMMC io_stats", "/sys/kernel/debug/mmc0/io_stats");
302 DumpFileToFd(fd, "eMMC req_stats", "/sys/kernel/debug/mmc0/req_stats");
303
304 std::string bootdev = android::base::GetProperty(EMMC_BOOTDEVICE, "");
305 if (!bootdev.empty()) {
306 DumpFileToFd(fd, "eMMC pre_eol_info", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/mmc0:0001/pre_eol_info");
307 DumpFileToFd(fd, "eMMC life_time", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/mmc0:0001/life_time");
308 DumpFileToFd(fd, "eMMC Slow IO Read", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/slowio_read_cnt");
309 DumpFileToFd(fd, "eMMC Slow IO Write", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/slowio_write_cnt");
310 DumpFileToFd(fd, "eMMC Slow IO Urgent Read", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/slowio_urgent_read_cnt");
311 DumpFileToFd(fd, "eMMC Slow IO Urgent Write", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/slowio_urgent_write_cnt");
312 DumpFileToFd(fd, "eMMC Slow IO Discard", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/slowio_discard_cnt");
313 DumpFileToFd(fd, "eMMC Slow IO Flush", "/sys/devices/platform/soc/" + bootdev + "/mmc_host/mmc0/slowio_flush_cnt");
314 }
315 }
316
317 // Methods from ::android::hardware::dumpstate::V1_0::IDumpstateDevice follow.
dumpstateBoard(const hidl_handle & handle)318 Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) {
319 if (handle == nullptr || handle->numFds < 1) {
320 ALOGE("no FDs\n");
321 return Void();
322 }
323
324 int fd = handle->data[0];
325 if (fd < 0) {
326 ALOGE("invalid FD: %d\n", handle->data[0]);
327 return Void();
328 }
329
330 RunCommandToFd(fd, "Notify modem", {"/vendor/bin/modem_svc", "-s"}, CommandOptions::WithTimeout(1).Build());
331
332 pthread_t modemThreadHandle = 0;
333 if (handle->numFds < 2) {
334 ALOGE("no FD for modem\n");
335 } else {
336 int fdModem = handle->data[1];
337 if (pthread_create(&modemThreadHandle, NULL, dumpModemThread, (void *)((long)fdModem)) != 0) {
338 ALOGE("could not create thread for dumpModem\n");
339 }
340 }
341
342 RunCommandToFd(fd, "VENDOR PROPERTIES", {"/vendor/bin/getprop"});
343 DumpFileToFd(fd, "SoC serial number", "/sys/devices/soc0/serial_number");
344 DumpFileToFd(fd, "CPU present", "/sys/devices/system/cpu/present");
345 DumpFileToFd(fd, "CPU online", "/sys/devices/system/cpu/online");
346
347 if (!PropertiesHelper::IsUserBuild()) {
348 RunCommandToFd(fd, "Performance Stats History", {"/vendor/bin/perfstatsd", "-d"});
349 }
350
351 DumpF2FS(fd);
352 DumpeMMC(fd);
353
354 DumpFileToFd(fd, "INTERRUPTS", "/proc/interrupts");
355
356 DumpPower(fd);
357
358 DumpFileToFd(fd, "LL-Stats", "/d/wlan0/ll_stats");
359 DumpFileToFd(fd, "ICNSS Stats", "/d/icnss/stats");
360 DumpFileToFd(fd, "SMD Log", "/d/ipc_logging/smd/log");
361 RunCommandToFd(fd, "ION HEAPS", {"/vendor/bin/sh", "-c", "for d in $(ls -d /d/ion/*); do for f in $(ls $d); do echo --- $d/$f; cat $d/$f; done; done"});
362 DumpFileToFd(fd, "dmabuf info", "/d/dma_buf/bufinfo");
363 RunCommandToFd(fd, "Temperatures", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/thermal* ; do type=`cat $f/type` ; temp=`cat $f/temp` ; echo \"$type: $temp\" ; done"});
364 RunCommandToFd(fd, "Cooling Device Current State", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/cooling* ; do type=`cat $f/type` ; temp=`cat $f/cur_state` ; echo \"$type: $temp\" ; done"});
365 RunCommandToFd(
366 fd, "LMH info",
367 {"/vendor/bin/sh", "-c",
368 "for f in /sys/bus/platform/drivers/msm_lmh_dcvs/*qcom,limits-dcvs@*/lmh_freq_limit; do "
369 "state=`cat $f` ; echo \"$f: $state\" ; done"});
370 RunCommandToFd(fd, "CPU time-in-state", {"/vendor/bin/sh", "-c", "for cpu in /sys/devices/system/cpu/cpu*; do f=$cpu/cpufreq/stats/time_in_state; if [ ! -f $f ]; then continue; fi; echo $f:; cat $f; done"});
371 RunCommandToFd(fd, "CPU cpuidle", {"/vendor/bin/sh", "-c", "for cpu in /sys/devices/system/cpu/cpu*; do for d in $cpu/cpuidle/state*; do if [ ! -d $d ]; then continue; fi; echo \"$d: `cat $d/name` `cat $d/desc` `cat $d/time` `cat $d/usage`\"; done; done"});
372 RunCommandToFd(fd, "Easel debug info", {"/vendor/bin/sh", "-c", "for f in `ls /sys/devices/platform/soc/a88000.i2c/i2c-0/0-0066/@(*curr|temperature|vbat|total_power)`; do echo \"$f: `cat $f`\" ; done; file=/sys/devices/virtual/misc/mnh_sm/state; echo \"$file: `cat $file`\""});
373 DumpFileToFd(fd, "MDP xlogs", "/data/vendor/display/mdp_xlog");
374 DumpFileToFd(fd, "TCPM logs", "/d/tcpm/usbpd0");
375 DumpFileToFd(fd, "PD Engine", "/d/logbuffer/usbpd");
376 DumpFileToFd(fd, "smb-lib", "/d/logbuffer/smblib");
377 DumpFileToFd(fd, "DWC3 logs", "/d/ipc_logging/a600000.dwc3/log");
378 DumpFileToFd(fd, "ipc-local-ports", "/d/msm_ipc_router/dump_local_ports");
379 DumpIPCTRT(fd);
380 DumpTouch(fd);
381 RunCommandToFd(fd, "USB Device Descriptors", {"/vendor/bin/sh", "-c", "cd /sys/bus/usb/devices/1-1 && cat product && cat bcdDevice; cat descriptors | od -t x1 -w16 -N96"});
382 // Timeout after 3s
383 RunCommandToFd(fd, "QSEE logs", {"/vendor/bin/sh", "-c", "/vendor/bin/timeout 3 cat /d/tzdbg/qsee_log"});
384 RunCommandToFd(fd, "Power supply properties", {"/vendor/bin/sh", "-c", "for f in `ls /sys/class/power_supply/*/uevent` ; do echo \"------ $f\\n`cat $f`\\n\" ; done"});
385 RunCommandToFd(fd, "PMIC Votables", {"/vendor/bin/sh", "-c", "cat /sys/kernel/debug/pmic-votable/*/status"});
386 DumpFileToFd(fd, "Battery cycle count", "/sys/class/power_supply/bms/device/cycle_counts_bins");
387 DumpFileToFd(fd, "Maxim FG registers", "/d/regmap/4-0036/registers");
388 DumpFileToFd(fd, "Maxim FG NV RAM", "/d/regmap/4-000b/registers");
389 DumpFileToFd(fd, "PM670 PON registers",
390 "/d/c440000.qcom,spmi:qcom,pm660@0:qcom,power-on@800/pmic_pon_dump");
391 DumpFileToFd(fd, "PM670A PON registers",
392 "/d/c440000.qcom,spmi:qcom,pm660l@2:qcom,power-on@800/pmic_pon_dump");
393 RunCommandToFd(fd, "QCOM FG SRAM", {"/vendor/bin/sh", "-c", "echo 0 > /d/fg/sram/address ; echo 500 > /d/fg/sram/count ; cat /d/fg/sram/data"});
394
395 RunCommandToFd(fd, "eSIM Status", {"/vendor/bin/sh", "-c", "od -t x1 /sys/firmware/devicetree/base/chosen/cdt/cdb2/esim"});
396 DumpFileToFd(fd, "Modem Stat", "/data/vendor/modem_stat/debug.txt");
397 DumpFileToFd(fd, "Pixel trace", "/d/tracing/instances/pixel-trace/trace");
398
399 // Citadel info
400 RunCommandToFd(fd, "Citadel VERSION", {"/vendor/bin/hw/citadel_updater", "-lv"});
401 RunCommandToFd(fd, "Citadel STATS", {"/vendor/bin/hw/citadel_updater", "--stats"});
402 RunCommandToFd(fd, "Citadel BOARDID", {"/vendor/bin/hw/citadel_updater", "--board_id"});
403
404 // Keep this at the end as very long on not for humans
405 DumpFileToFd(fd, "WLAN FW Log Symbol Table", "/vendor/firmware/Data.msc");
406
407 if (modemThreadHandle) {
408 pthread_join(modemThreadHandle, NULL);
409 }
410
411 return Void();
412 }
413
414 } // namespace implementation
415 } // namespace V1_0
416 } // namespace dumpstate
417 } // namespace hardware
418 } // namespace android
419