Snap for 9066247 from 1bd0329f7a
to udc-release
Change-Id: Idf40a79f6b2525559b54a4465321c66933b52dc5
This commit is contained in:
commit
5e7dad59e2
3 changed files with 18 additions and 1 deletions
|
@ -240,6 +240,7 @@ Dumpstate::Dumpstate()
|
|||
{ "misc", [this](int fd) { dumpMiscSection(fd); } },
|
||||
{ "dump", [this](int fd) { dumpSection(fd); } },
|
||||
{ "trusty", [this](int fd) { dumpTrustySection(fd); } },
|
||||
{ "led", [this](int fd) { dumpLEDSection(fd); } },
|
||||
},
|
||||
mLogSections{
|
||||
{ "modem", [this](int fd, const std::string &destDir) { dumpModemLogs(fd, destDir); } },
|
||||
|
@ -1134,6 +1135,21 @@ void Dumpstate::dumpTrustySection(int fd) {
|
|||
RunCommandToFd(fd, "Trusty TEE0 Logs", {"/vendor/bin/sh", "-c", "cat /dev/trusty-log0"}, CommandOptions::WithTimeout(1).Build());
|
||||
}
|
||||
|
||||
// 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::dumpModemSection(int fd) {
|
||||
DumpFileToFd(fd, "Modem Stat", "/data/vendor/modem_stat/debug.txt");
|
||||
RunCommandToFd(fd, "Modem SSR history", {"/vendor/bin/sh", "-c",
|
||||
|
|
|
@ -69,6 +69,7 @@ class Dumpstate : public BnDumpstateDevice {
|
|||
void dumpMiscSection(int fd);
|
||||
void dumpSection(int fd);
|
||||
void dumpTrustySection(int fd);
|
||||
void dumpLEDSection(int fd);
|
||||
|
||||
void dumpLogSection(int fd, int fdModem);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
PRODUCT_PACKAGES += \
|
||||
android.hardware.drm-service.clearkey \
|
||||
android.hardware.drm-service.widevine
|
||||
com.google.android.widevine
|
||||
BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs201-sepolicy/widevine
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue