dumpstate: dump wlan firmware symbol file

Bug: 205919442
Test: Build Pass
Change-Id: Ib48b8bdf002e6462a7a0499f02b6a7b76329dee4
This commit is contained in:
Hsiu-Chang Chen 2021-12-05 15:16:37 +08:00 committed by TreeHugger Robot
parent 05766696d6
commit 9401fa60b4

View file

@ -298,6 +298,9 @@ void DumpstateDevice::dumpTextSection(int fd, const std::string &sectionName) {
void DumpstateDevice::dumpWlanSection(int fd) { void DumpstateDevice::dumpWlanSection(int fd) {
RunCommandToFd(fd, "WLAN Debug Dump", {"/vendor/bin/sh", "-c", RunCommandToFd(fd, "WLAN Debug Dump", {"/vendor/bin/sh", "-c",
"cat /sys/wifi/dump_start"}); "cat /sys/wifi/dump_start"});
// Dump firmware symbol table for firmware log decryption
DumpFileToFd(fd, "WLAN FW Log Symbol Table", "/vendor/firmware/Data.msc");
} }
// Dump items related to power and battery // Dump items related to power and battery