Move led dump to tablet only
Bug: 240530709 Test: adb bugreport Change-Id: I41ab1c21462a2efcdfe2eae0f9aab4ccaa52bbb6
This commit is contained in:
parent
c8d7b9071b
commit
c9a60c3497
2 changed files with 0 additions and 17 deletions
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue