mirror of
https://github.com/Evolution-X-Devices/device_google_wahoo
synced 2026-02-01 07:50:47 +00:00
Tests: - pts-tradefed run pts -a arm64-v8a -m PtsHardwareInfoHostTestCases - adb bugreport - no "avc: denied" on health vendor service - cycle count stored in /persist/battery/qcom_cycle_counts_bins Bug: 72776338 Bug: 77498107 Change-Id: Ia1a58441fff511c60278b5d97806655c34aec610 Signed-off-by: Thierry Strudel <tstrudel@google.com>
83 lines
3.4 KiB
Plaintext
83 lines
3.4 KiB
Plaintext
type hal_dumpstate_impl, domain;
|
|
hal_server_domain(hal_dumpstate_impl, hal_dumpstate)
|
|
|
|
type hal_dumpstate_impl_exec, exec_type, vendor_file_type, file_type;
|
|
init_daemon_domain(hal_dumpstate_impl)
|
|
|
|
# Execute dump scripts from vendor partition
|
|
allow hal_dumpstate_impl vendor_shell_exec:file rx_file_perms;
|
|
allow hal_dumpstate_impl vendor_toolbox_exec:file rx_file_perms;
|
|
|
|
userdebug_or_eng(`
|
|
# smlog_dump
|
|
domain_auto_trans(hal_dumpstate_impl, smlog_dump_exec, smlog_dump)
|
|
allow hal_dumpstate_impl modem_dump_file:dir create_dir_perms;
|
|
allow hal_dumpstate_impl modem_dump_file:file create_file_perms;
|
|
allow hal_dumpstate_impl radio_vendor_data_file:dir r_dir_perms;
|
|
allow hal_dumpstate_impl netmgr_data_file:dir r_dir_perms;
|
|
allow hal_dumpstate_impl radio_vendor_data_file:file r_file_perms;
|
|
allow hal_dumpstate_impl netmgr_data_file:file r_file_perms;
|
|
allow hal_dumpstate_impl debugfs_ipc:dir r_dir_perms;
|
|
allow hal_dumpstate_impl debugfs_ipc:file r_file_perms;
|
|
allow hal_dumpstate_impl debugfs_tzdbg:dir search;
|
|
allow hal_dumpstate_impl debugfs_tzdbg:file r_file_perms;
|
|
allow hal_dumpstate_impl sysfs_usb_device:dir r_dir_perms;
|
|
allow hal_dumpstate_impl sysfs_usb_device:file r_file_perms;
|
|
allow hal_dumpstate_impl sysfs_msm_subsys:file write;
|
|
|
|
set_prop(hal_dumpstate_impl, modem_diag_prop)
|
|
')
|
|
|
|
get_prop(hal_dumpstate_impl, vendor_radio_prop)
|
|
|
|
allow hal_dumpstate_impl uio_device:chr_file rw_file_perms;
|
|
r_dir_file(hal_dumpstate_impl, sysfs_uio)
|
|
r_dir_file(hal_dumpstate_impl, sysfs_rmtfs)
|
|
r_dir_file(hal_dumpstate_impl, sysfs_msm_subsys)
|
|
r_dir_file(hal_dumpstate_impl, sysfs_soc)
|
|
r_dir_file(hal_dumpstate_impl, sysfs_thermal)
|
|
r_dir_file(hal_dumpstate_impl, sysfs_easel)
|
|
|
|
allow hal_dumpstate_impl debugfs_ion:dir r_dir_perms;
|
|
allow hal_dumpstate_impl debugfs_ion:file r_file_perms;
|
|
allow hal_dumpstate_impl debugfs_rpm:file r_file_perms;
|
|
allow hal_dumpstate_impl debugfs_wlan:dir r_dir_perms;
|
|
allow hal_dumpstate_impl debugfs_wlan:file r_file_perms;
|
|
allow hal_dumpstate_impl debugfs_icnss:dir r_dir_perms;
|
|
allow hal_dumpstate_impl debugfs_icnss:file r_file_perms;
|
|
allow hal_dumpstate_impl debugfs_ipc:file r_file_perms;
|
|
allow hal_dumpstate_impl proc_stat:file r_file_perms;
|
|
allow hal_dumpstate_impl debugfs_ufs:dir r_dir_perms;
|
|
allow hal_dumpstate_impl debugfs_ufs:file r_file_perms;
|
|
|
|
# Access to files for dumping
|
|
allow hal_dumpstate_impl sysfs:dir r_dir_perms;
|
|
# rpm stat
|
|
# usb logs
|
|
allow hal_dumpstate_impl debugfs_usb:file r_file_perms;
|
|
|
|
#Access display debug data
|
|
allow hal_dumpstate_impl display_vendor_data_file:dir r_dir_perms;
|
|
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;
|
|
|
|
# For collecting bugreports.
|
|
allow hal_dumpstate_impl shell_data_file:file getattr;
|
|
userdebug_or_eng(`allow hal_dumpstate_impl debugfs_dma_bufinfo:file r_file_perms;')
|
|
dontaudit hal_dumpstate_impl debugfs_dma_bufinfo:file r_file_perms;
|
|
|
|
# Query and dump power supply nodes
|
|
allow hal_dumpstate_impl sysfs_batteryinfo:dir search;
|
|
allow hal_dumpstate_impl sysfs_batteryinfo:file r_file_perms;
|
|
|
|
# Dump QCOM FG content
|
|
allow hal_dumpstate_impl debugfs_fg_sram:dir search;
|
|
allow hal_dumpstate_impl debugfs_fg_sram:file rw_file_perms;
|