Move led dump to tablet only

Bug: 240530709
Test: adb bugreport
Change-Id: I41ab1c21462a2efcdfe2eae0f9aab4ccaa52bbb6
This commit is contained in:
Adam Shih 2023-02-13 11:56:39 +08:00
parent c8d7b9071b
commit c9a60c3497
2 changed files with 0 additions and 17 deletions

View file

@ -218,7 +218,6 @@ Dumpstate::Dumpstate()
{ "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } }, { "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } },
{ "power", [this](int fd) { dumpPowerSection(fd); } }, { "power", [this](int fd) { dumpPowerSection(fd); } },
{ "display", [this](int fd) { dumpDisplaySection(fd); } }, { "display", [this](int fd) { dumpDisplaySection(fd); } },
{ "led", [this](int fd) { dumpLEDSection(fd); } },
{ "pixel-trace", [this](int fd) { dumpPixelTraceSection(fd); } }, { "pixel-trace", [this](int fd) { dumpPixelTraceSection(fd); } },
}, },
mLogSections{ mLogSections{
@ -585,21 +584,6 @@ void Dumpstate::dumpDisplaySection(int fd) {
} }
} }
// Dump items related to LED
void Dumpstate::dumpLEDSection(int fd) {
struct stat buffer;
if (!PropertiesHelper::IsUserBuild()) {
if (!stat("/sys/class/leds/green", &buffer)) {
DumpFileToFd(fd, "Green LED Brightness", "/sys/class/leds/green/brightness");
DumpFileToFd(fd, "Green LED Max Brightness", "/sys/class/leds/green/max_brightness");
}
if (!stat("/mnt/vendor/persist/led/led_calibration_LUT.txt", &buffer)) {
DumpFileToFd(fd, "LED Calibration Data", "/mnt/vendor/persist/led/led_calibration_LUT.txt");
}
}
}
void Dumpstate::dumpModemLogs(int fd, const std::string &destDir) { void Dumpstate::dumpModemLogs(int fd, const std::string &destDir) {
std::string extendedLogDir = MODEM_EXTENDED_LOG_DIRECTORY; std::string extendedLogDir = MODEM_EXTENDED_LOG_DIRECTORY;
std::string modemLogHistoryDir = MODEM_LOG_HISTORY_DIRECTORY; std::string modemLogHistoryDir = MODEM_LOG_HISTORY_DIRECTORY;

View file

@ -57,7 +57,6 @@ class Dumpstate : public BnDumpstateDevice {
void dumpDevfreqSection(int fd); void dumpDevfreqSection(int fd);
void dumpMemorySection(int fd); void dumpMemorySection(int fd);
void dumpDisplaySection(int fd); void dumpDisplaySection(int fd);
void dumpLEDSection(int fd);
void dumpPixelTraceSection(int fd); void dumpPixelTraceSection(int fd);
void dumpLogSection(int fd, int fdModem); void dumpLogSection(int fd, int fdModem);