diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 6f5e1664..cf3e1f2e 100644 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -793,6 +793,16 @@ void DumpstateDevice::dumpSensorsUSFSection(int fd) { } } +// Gzip binary data and dump to fd in base64 format. Cmd to decode is also attached. +void dumpGzippedFileInBase64ToFd(int fd, const char* title, const char* file_path) { + auto cmd = android::base::StringPrintf("echo 'base64 -d <