From 0584dcc4b54785951b06e9492cf6424425339e16 Mon Sep 17 00:00:00 2001 From: Adam Shih Date: Mon, 13 Feb 2023 11:54:12 +0800 Subject: [PATCH] Remove obsolete led dump Bug: 240530709 Test: adb bugreport Change-Id: Ie018b028c6819fb263d39826fd462e232291df6a --- dumpstate/Dumpstate.cpp | 16 ---------------- dumpstate/Dumpstate.h | 1 - 2 files changed, 17 deletions(-) diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp index c0ee344e..0a137743 100644 --- a/dumpstate/Dumpstate.cpp +++ b/dumpstate/Dumpstate.cpp @@ -213,7 +213,6 @@ Dumpstate::Dumpstate() { "memory", [this](int fd) { dumpMemorySection(fd); } }, { "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } }, { "display", [this](int fd) { dumpDisplaySection(fd); } }, - { "led", [this](int fd) { dumpLEDSection(fd); } }, }, mLogSections{ { "modem", [this](int fd, const std::string &destDir) { dumpModemLogs(fd, destDir); } }, @@ -370,21 +369,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) { std::string extendedLogDir = MODEM_EXTENDED_LOG_DIRECTORY; diff --git a/dumpstate/Dumpstate.h b/dumpstate/Dumpstate.h index 987f9711..d02e6ee0 100644 --- a/dumpstate/Dumpstate.h +++ b/dumpstate/Dumpstate.h @@ -55,7 +55,6 @@ class Dumpstate : public BnDumpstateDevice { void dumpDevfreqSection(int fd); void dumpMemorySection(int fd); void dumpDisplaySection(int fd); - void dumpLEDSection(int fd); void dumpLogSection(int fd, int fdModem);