mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-01-27 18:19:03 +00:00
dumpstate: Add UFS debug output to dumpstate_board.txt
Bug: 65848498
Test: adb bugreport
Change-Id: I0df04fdabf085341ba679ffedf06dcdea407e322
(cherry picked from commit 383c58d861)
This commit is contained in:
@@ -182,6 +182,9 @@ Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) {
|
||||
DumpFileToFd(fd, "SoC serial number", "/sys/devices/soc0/serial_number");
|
||||
DumpFileToFd(fd, "CPU present", "/sys/devices/system/cpu/present");
|
||||
DumpFileToFd(fd, "CPU online", "/sys/devices/system/cpu/online");
|
||||
DumpFileToFd(fd, "UFS model", "/sys/block/sda/device/model");
|
||||
DumpFileToFd(fd, "UFS rev", "/sys/block/sda/device/rev");
|
||||
DumpFileToFd(fd, "UFS size", "/sys/block/sda/size");
|
||||
DumpFileToFd(fd, "INTERRUPTS", "/proc/interrupts");
|
||||
DumpFileToFd(fd, "RPM Stats", "/d/rpm_stats");
|
||||
DumpFileToFd(fd, "Power Management Stats", "/d/rpm_master_stats");
|
||||
|
||||
4
sepolicy/vendor/hal_dumpstate_impl.te
vendored
4
sepolicy/vendor/hal_dumpstate_impl.te
vendored
@@ -59,3 +59,7 @@ allow hal_dumpstate_impl display_vendor_data_file:file r_file_perms;
|
||||
# Access to touch firmware info
|
||||
allow hal_dumpstate_impl sysfs_touch:dir r_dir_perms;
|
||||
allow hal_dumpstate_impl sysfs_touch:file rw_file_perms;
|
||||
|
||||
# Access to UFS info
|
||||
allow hal_dumpstate_impl sysfs_scsi_devices_0000:dir r_dir_perms;
|
||||
allow hal_dumpstate_impl sysfs_scsi_devices_0000:file r_file_perms;
|
||||
|
||||
Reference in New Issue
Block a user