Skip to content

Commit

Permalink
dumpstate: Don't dump serial number
Browse files Browse the repository at this point in the history
Change-Id: I575db41209d3a5f8088f7388089650a265107b65
  • Loading branch information
mikeNG committed May 24, 2023
1 parent b02d889 commit 768836e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion dumpstate/DumpstateDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,6 @@ Return<DumpstateStatus> DumpstateDevice::dumpstateBoard_1_1(const hidl_handle& h
}

RunCommandToFd(fd, "VENDOR PROPERTIES", {"/vendor/bin/getprop"});
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, "Bootloader Log", "/proc/bldrlog");
Expand Down
3 changes: 0 additions & 3 deletions sepolicy/vendor/google/hal_dumpstate_impl.te
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ userdebug_or_eng(`
allow hal_dumpstate_impl sensors_vendor_data_file:file r_file_perms;
')

# Access to /sys/devices/soc0/serial_number
r_dir_file(hal_dumpstate_impl, sysfs_soc)

# Access to modem stat
domain_auto_trans(hal_dumpstate_impl, modem_svc_exec, modem_svc)
allow hal_dumpstate_impl modem_stat_data_file:file r_file_perms;
Expand Down

0 comments on commit 768836e

Please sign in to comment.