mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-28 13:35:33 +00:00
review hal_power_stats_default
Bug: 201230944 Test: make sure all file contexts took effect Change-Id: Ifefb09f69b722747ccbb1c8cfbd423b27204e4e4
This commit is contained in:
@@ -28,9 +28,6 @@ type vendor_battery_debugfs, fs_type, debugfs_type;
|
||||
type sysfs_exynos_bts, sysfs_type, fs_type;
|
||||
type sysfs_exynos_bts_stats, sysfs_type, fs_type;
|
||||
|
||||
# ACPM
|
||||
type sysfs_acpm_stats, sysfs_type, fs_type;
|
||||
|
||||
# Vendor tools
|
||||
type vendor_usf_stats, vendor_file_type, file_type;
|
||||
type vendor_usf_reg_edit, vendor_file_type, file_type;
|
||||
@@ -51,9 +48,6 @@ type sysfs_iommu, sysfs_type, fs_type;
|
||||
type sysfs_devicetree, sysfs_type, fs_type;
|
||||
type sysfs_mem, sysfs_type, fs_type;
|
||||
|
||||
# WiFi
|
||||
type sysfs_wifi, sysfs_type, fs_type;
|
||||
|
||||
# All files under /data/vendor/firmware/wifi
|
||||
type updated_wifi_firmware_data_file, file_type, data_file_type;
|
||||
|
||||
@@ -82,25 +76,15 @@ type vendor_camera_data_file, file_type, data_file_type;
|
||||
# Display
|
||||
type persist_display_file, file_type, vendor_persist_type;
|
||||
|
||||
# Backlight
|
||||
type sysfs_backlight, sysfs_type, fs_type;
|
||||
|
||||
# Charger
|
||||
type sysfs_chargelevel, sysfs_type, fs_type;
|
||||
|
||||
# ODPM
|
||||
type odpm_config_file, file_type, data_file_type;
|
||||
type sysfs_odpm, sysfs_type, fs_type;
|
||||
|
||||
# bcl
|
||||
type sysfs_bcl, sysfs_type, fs_type;
|
||||
|
||||
type sysfs_chip_id, sysfs_type, fs_type;
|
||||
type sysfs_spi, sysfs_type, fs_type;
|
||||
|
||||
# CPU
|
||||
type sysfs_cpu, sysfs_type, fs_type;
|
||||
|
||||
# Memory
|
||||
type sysfs_memory, sysfs_type, fs_type;
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
#
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.boot@1\.[0-2]-service-gs201 u:object_r:hal_bootctl_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.dumpstate@1\.1-service\.gs201 u:object_r:hal_dumpstate_default_exec:s0
|
||||
/(vendor|system/vendor)/bin/hw/android\.hardware\.power\.stats@1\.0-service\.gs201 u:object_r:hal_power_stats_default_exec:s0
|
||||
|
||||
#
|
||||
# Exynos Devices
|
||||
@@ -170,9 +169,6 @@
|
||||
# Zram
|
||||
/data/per_boot(/.*)? u:object_r:per_boot_file:s0
|
||||
|
||||
# ODPM
|
||||
/data/vendor/powerstats(/.*)? u:object_r:odpm_config_file:s0
|
||||
|
||||
# sensor direct DMA-BUF heap
|
||||
/dev/dma_heap/sensor_direct_heap u:object_r:sensor_direct_heap_device:s0
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# WiFi
|
||||
genfscon sysfs /wifi u:object_r:sysfs_wifi:s0
|
||||
|
||||
genfscon sysfs /devices/platform/10d30000.spi/spi_master/spi10/spi10.0/uwb/power_stats u:object_r:sysfs_power_stats:s0
|
||||
|
||||
# Storage
|
||||
@@ -63,25 +60,6 @@ genfscon proc /bluetooth/sleep/btwrite
|
||||
genfscon proc /bluetooth/sleep/btwake u:object_r:proc_bluetooth_writable:s0
|
||||
genfscon proc /bluetooth/timesync u:object_r:proc_bluetooth_writable:s0
|
||||
|
||||
# ODPM
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17500000/i2c-6/i2c-s2mpg10mfd/s2mpg10-meter/s2mpg10-odpm/iio:device0/name u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17500000/i2c-6/i2c-s2mpg10mfd/s2mpg10-meter/s2mpg10-odpm/iio:device0/energy_value u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17500000/i2c-6/i2c-s2mpg10mfd/s2mpg10-meter/s2mpg10-odpm/iio:device0/sampling_rate u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17500000/i2c-6/i2c-s2mpg10mfd/s2mpg10-meter/s2mpg10-odpm/iio:device0/enabled_rails u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17510000/i2c-7/i2c-s2mpg11mfd/s2mpg11-meter/s2mpg11-odpm/iio:device1/name u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17510000/i2c-7/i2c-s2mpg11mfd/s2mpg11-meter/s2mpg11-odpm/iio:device1/energy_value u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17510000/i2c-7/i2c-s2mpg11mfd/s2mpg11-meter/s2mpg11-odpm/iio:device1/sampling_rate u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17510000/i2c-7/i2c-s2mpg11mfd/s2mpg11-meter/s2mpg11-odpm/iio:device1/enabled_rails u:object_r:sysfs_odpm:s0
|
||||
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17500000/i2c-7/i2c-s2mpg10mfd/s2mpg10-meter/s2mpg10-odpm/iio:device0/name u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17500000/i2c-7/i2c-s2mpg10mfd/s2mpg10-meter/s2mpg10-odpm/iio:device0/energy_value u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17500000/i2c-7/i2c-s2mpg10mfd/s2mpg10-meter/s2mpg10-odpm/iio:device0/sampling_rate u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17500000/i2c-7/i2c-s2mpg10mfd/s2mpg10-meter/s2mpg10-odpm/iio:device0/enabled_rails u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17510000/i2c-8/i2c-s2mpg11mfd/s2mpg11-meter/s2mpg11-odpm/iio:device1/name u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17510000/i2c-8/i2c-s2mpg11mfd/s2mpg11-meter/s2mpg11-odpm/iio:device1/energy_value u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17510000/i2c-8/i2c-s2mpg11mfd/s2mpg11-meter/s2mpg11-odpm/iio:device1/sampling_rate u:object_r:sysfs_odpm:s0
|
||||
genfscon sysfs /devices/platform/acpm_mfd_bus@17510000/i2c-8/i2c-s2mpg11mfd/s2mpg11-meter/s2mpg11-odpm/iio:device1/enabled_rails u:object_r:sysfs_odpm:s0
|
||||
|
||||
# bcl sysfs files
|
||||
genfscon sysfs /devices/virtual/pmic/mitigation u:object_r:sysfs_bcl:s0
|
||||
|
||||
@@ -128,28 +106,12 @@ genfscon sysfs /devices/platform/10d50000.hsi2c/i2c-7/7-0069/power_supply/dc/wak
|
||||
genfscon sysfs /devices/platform/10d50000.hsi2c/i2c-7/7-0069/power_supply/gcpm/wakeup u:object_r:sysfs_wakeup:s0
|
||||
genfscon sysfs /devices/platform/10d50000.hsi2c/i2c-7/7-0036/power_supply/maxfg/wakeup u:object_r:sysfs_wakeup:s0
|
||||
|
||||
# ACPM
|
||||
genfscon sysfs /devices/platform/acpm_stats u:object_r:sysfs_acpm_stats:s0
|
||||
|
||||
genfscon sysfs /devices/platform/10d40000.spi/spi_master u:object_r:sysfs_spi:s0
|
||||
|
||||
# Exynos
|
||||
genfscon sysfs /devices/platform/exynos-bts u:object_r:sysfs_exynos_bts:s0
|
||||
genfscon sysfs /devices/platform/exynos-bts/bts_stats u:object_r:sysfs_exynos_bts_stats:s0
|
||||
|
||||
# CPU
|
||||
genfscon sysfs /devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/time_in_state u:object_r:sysfs_cpu:s0
|
||||
genfscon sysfs /devices/platform/cpupm/cpupm/time_in_state u:object_r:sysfs_cpu:s0
|
||||
genfscon sysfs /devices/platform/17000030.devfreq_intcam/devfreq/17000030.devfreq_intcam/time_in_state u:object_r:sysfs_cpu:s0
|
||||
genfscon sysfs /devices/platform/17000020.devfreq_int/devfreq/17000020.devfreq_int/time_in_state u:object_r:sysfs_cpu:s0
|
||||
genfscon sysfs /devices/platform/17000040.devfreq_disp/devfreq/17000040.devfreq_disp/time_in_state u:object_r:sysfs_cpu:s0
|
||||
genfscon sysfs /devices/platform/17000050.devfreq_cam/devfreq/17000050.devfreq_cam/time_in_state u:object_r:sysfs_cpu:s0
|
||||
genfscon sysfs /devices/platform/1c500000.mali/time_in_state u:object_r:sysfs_cpu:s0
|
||||
genfscon sysfs /devices/platform/1c500000.mali/uid_time_in_state u:object_r:sysfs_cpu:s0
|
||||
genfscon sysfs /devices/platform/17000080.devfreq_bo/devfreq/17000080.devfreq_bo/time_in_state u:object_r:sysfs_cpu:s0
|
||||
genfscon sysfs /devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/time_in_state u:object_r:sysfs_cpu:s0
|
||||
genfscon sysfs /devices/platform/17000070.devfreq_mfc/devfreq/17000070.devfreq_mfc/time_in_state u:object_r:sysfs_cpu:s0
|
||||
|
||||
# Devfreq current frequency
|
||||
genfscon sysfs /devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/cur_freq u:object_r:sysfs_devfreq_cur:s0
|
||||
genfscon sysfs /devices/platform/17000020.devfreq_int/devfreq/17000020.devfreq_int/cur_freq u:object_r:sysfs_devfreq_cur:s0
|
||||
|
||||
@@ -5,7 +5,6 @@ allow hal_dumpstate_default sysfs_bcmdhd:dir search;
|
||||
allow hal_dumpstate_default sysfs_bcmdhd:file r_file_perms;
|
||||
|
||||
allow hal_dumpstate_default sysfs_memory:file r_file_perms;
|
||||
allow hal_dumpstate_default sysfs_cpu:file r_file_perms;
|
||||
|
||||
vndbinder_use(hal_dumpstate_default)
|
||||
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
allow hal_power_stats_default sysfs_scsi_devices_0000:dir r_dir_perms;
|
||||
allow hal_power_stats_default sysfs_scsi_devices_0000:file r_file_perms;
|
||||
|
||||
# getStats AIDL callback to each power entry
|
||||
binder_call(hal_power_stats_default, hal_bluetooth_btlinux)
|
||||
|
||||
r_dir_file(hal_power_stats_default, sysfs_iio_devices)
|
||||
allow hal_power_stats_default odpm_config_file:dir search;
|
||||
allow hal_power_stats_default odpm_config_file:file r_file_perms;
|
||||
allow hal_power_stats_default sysfs_odpm:dir search;
|
||||
allow hal_power_stats_default sysfs_odpm:file rw_file_perms;
|
||||
|
||||
binder_call(hal_power_stats_default, citadeld)
|
||||
r_dir_file(hal_power_stats_default, sysfs_aoc)
|
||||
r_dir_file(hal_power_stats_default, sysfs_cpu)
|
||||
r_dir_file(hal_power_stats_default, sysfs_leds)
|
||||
r_dir_file(hal_power_stats_default, sysfs_acpm_stats)
|
||||
r_dir_file(hal_power_stats_default, sysfs_wifi)
|
||||
r_dir_file(hal_power_stats_default, sysfs_backlight)
|
||||
r_dir_file(hal_power_stats_default, sysfs_scsi_devices_0000)
|
||||
@@ -20,6 +20,8 @@ type bootdevice_sysdev, dev_type;
|
||||
type sysfs_display, sysfs_type, fs_type;
|
||||
type sysfs_scsi_devices_0000, sysfs_type, fs_type;
|
||||
type sysfs_fabric, sysfs_type, fs_type;
|
||||
type sysfs_acpm_stats, sysfs_type, fs_type;
|
||||
type sysfs_wifi, sysfs_type, fs_type;
|
||||
|
||||
# vendor extra images
|
||||
type modem_img_file, contextmount_type, file_type, vendor_file_type;
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
genfscon sysfs /firmware/devicetree/base/chosen u:object_r:sysfs_chosen:s0
|
||||
|
||||
# WiFi
|
||||
genfscon sysfs /wifi u:object_r:sysfs_wifi:s0
|
||||
|
||||
# ACPM
|
||||
genfscon sysfs /devices/platform/acpm_stats u:object_r:sysfs_acpm_stats:s0
|
||||
|
||||
# Fabric
|
||||
genfscon sysfs /devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq u:object_r:sysfs_fabric:s0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user