diff options
author | Jie Song <jies@google.com> | 2018-05-14 21:48:30 -0700 |
---|---|---|
committer | Jie Song <jies@google.com> | 2018-05-15 12:06:07 -0700 |
commit | 56a8398a8b63d4390f81e910f066919963357bd0 (patch) | |
tree | 108a63e27fc701ac7f5886d7edf4f6c20be8dde4 | |
parent | 8c0a516a530e70f3f03ae5d9a3de90598c4b7191 (diff) | |
download | bonito-56a8398a8b63d4390f81e910f066919963357bd0.tar.gz |
Dump eSIM presence status into Bugreport
Bug: 79717758
Test: Take bugreport and check eSIM status
Change-Id: Ibe42359a5e7bc6a19429d51cd83ed6bcb8fa71c2
-rwxr-xr-x | dumpstate/DumpstateDevice.cpp | 2 | ||||
-rw-r--r-- | sepolicy/vendor/file.te | 1 | ||||
-rw-r--r-- | sepolicy/vendor/file_contexts | 3 | ||||
-rw-r--r-- | sepolicy/vendor/hal_dumpstate_impl.te | 2 |
4 files changed, 7 insertions, 1 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index a61ac901..916c7b01 100755 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -307,6 +307,8 @@ Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) { DumpFileToFd(fd, "Maxim FG NV RAM", "/d/regmap/4-000b/registers"); RunCommandToFd(fd, "QCOM FG SRAM", {"/vendor/bin/sh", "-c", "echo 0 > /d/fg/sram/address ; echo 500 > /d/fg/sram/count ; cat /d/fg/sram/data"}); + RunCommandToFd(fd, "eSIM Status", {"/vendor/bin/sh", "-c", "od -t x1 /sys/firmware/devicetree/base/chosen/cdt/cdb2/esim"}); + // Keep this at the end as very long on not for humans DumpFileToFd(fd, "WLAN FW Log Symbol Table", "/vendor/firmware/Data.msc"); diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te index fee5d08b..382bf02c 100644 --- a/sepolicy/vendor/file.te +++ b/sepolicy/vendor/file.te @@ -24,6 +24,7 @@ type sysfs_gpio_export, fs_type, sysfs_type; type sysfs_pinctrl, fs_type, sysfs_type; type sysfs_rpm, sysfs_type, fs_type; type sysfs_wlc, sysfs_type, fs_type; +type sysfs_esim, sysfs_type, fs_type; type debugfs_clk, debugfs_type, fs_type; type debugfs_ion, debugfs_type, fs_type; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index 371f106a..dad9ecfe 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -300,5 +300,8 @@ # b/70518189 vDSO experiments /sys/module/vdso/parameters u:object_r:sysfs_vdso:s0 +# eSIM +/sys/firmware/devicetree/base/chosen/cdt/cdb2/esim u:object_r:sysfs_esim:s0 + # vendor-provided system HAL /system/bin/hw/hardware\.google\.pixelstats@1\.0-service u:object_r:pixelstats_system_exec:s0 diff --git a/sepolicy/vendor/hal_dumpstate_impl.te b/sepolicy/vendor/hal_dumpstate_impl.te index 597f6ba8..7c82a0bd 100644 --- a/sepolicy/vendor/hal_dumpstate_impl.te +++ b/sepolicy/vendor/hal_dumpstate_impl.te @@ -25,7 +25,7 @@ userdebug_or_eng(` allow hal_dumpstate_impl sysfs_usb_device:file r_file_perms; allow hal_dumpstate_impl ssr_log_file:dir search; allow hal_dumpstate_impl ssr_log_file:file r_file_perms; - + allow hal_dumpstate_impl sysfs_esim:file r_file_perms; set_prop(hal_dumpstate_impl, vendor_modem_diag_prop) ') |