Merge "HwInfo: Move hardware info sepolicy to pixel common"
This commit is contained in:
commit
a3fc2a745c
5 changed files with 4 additions and 38 deletions
3
whitechapel/vendor/google/device.te
vendored
3
whitechapel/vendor/google/device.te
vendored
|
@ -42,9 +42,6 @@ type fingerprint_device, dev_type;
|
||||||
# AMCS device
|
# AMCS device
|
||||||
type amcs_device, dev_type;
|
type amcs_device, dev_type;
|
||||||
|
|
||||||
# Battery history
|
|
||||||
type battery_history_device, dev_type;
|
|
||||||
|
|
||||||
# Raw HID device
|
# Raw HID device
|
||||||
type hidraw_device, dev_type;
|
type hidraw_device, dev_type;
|
||||||
|
|
||||||
|
|
8
whitechapel/vendor/google/file.te
vendored
8
whitechapel/vendor/google/file.te
vendored
|
@ -78,7 +78,6 @@ type updated_wifi_firmware_data_file, file_type, data_file_type;
|
||||||
type mediadrm_vendor_data_file, file_type, data_file_type;
|
type mediadrm_vendor_data_file, file_type, data_file_type;
|
||||||
|
|
||||||
# Storage Health HAL
|
# Storage Health HAL
|
||||||
type sysfs_scsi_devices_0000, sysfs_type, fs_type;
|
|
||||||
type debugfs_f2fs, debugfs_type, fs_type;
|
type debugfs_f2fs, debugfs_type, fs_type;
|
||||||
type proc_f2fs, proc_type, fs_type;
|
type proc_f2fs, proc_type, fs_type;
|
||||||
|
|
||||||
|
@ -141,9 +140,6 @@ userdebug_or_eng(`
|
||||||
type sysfs_gps, sysfs_type, fs_type;
|
type sysfs_gps, sysfs_type, fs_type;
|
||||||
type sysfs_gps_assert, sysfs_type, fs_type;
|
type sysfs_gps_assert, sysfs_type, fs_type;
|
||||||
|
|
||||||
# Display
|
|
||||||
type sysfs_display, sysfs_type, fs_type;
|
|
||||||
|
|
||||||
# Backlight
|
# Backlight
|
||||||
type sysfs_backlight, sysfs_type, fs_type;
|
type sysfs_backlight, sysfs_type, fs_type;
|
||||||
|
|
||||||
|
@ -160,7 +156,6 @@ type sysfs_bcl, sysfs_type, fs_type;
|
||||||
# Chosen
|
# Chosen
|
||||||
type sysfs_chosen, sysfs_type, fs_type;
|
type sysfs_chosen, sysfs_type, fs_type;
|
||||||
|
|
||||||
type sysfs_chip_id, sysfs_type, fs_type;
|
|
||||||
type sysfs_spi, sysfs_type, fs_type;
|
type sysfs_spi, sysfs_type, fs_type;
|
||||||
|
|
||||||
# Battery
|
# Battery
|
||||||
|
@ -186,9 +181,6 @@ type uwb_vendor_data_file, file_type, data_file_type, app_data_file_type;
|
||||||
type persist_uwb_file, file_type, vendor_persist_type;
|
type persist_uwb_file, file_type, vendor_persist_type;
|
||||||
type uwb_data_vendor, file_type, data_file_type;
|
type uwb_data_vendor, file_type, data_file_type;
|
||||||
|
|
||||||
# PixelStats_vendor
|
|
||||||
type sysfs_pixelstats, fs_type, sysfs_type;
|
|
||||||
|
|
||||||
# WLC FW
|
# WLC FW
|
||||||
type vendor_wlc_fwupdata_file, vendor_file_type, file_type;
|
type vendor_wlc_fwupdata_file, vendor_file_type, file_type;
|
||||||
|
|
||||||
|
|
4
whitechapel/vendor/google/genfs_contexts
vendored
4
whitechapel/vendor/google/genfs_contexts
vendored
|
@ -398,6 +398,10 @@ genfscon sysfs /devices/platform/17000080.devfreq_bo/devfreq/17000080.devfreq_bo
|
||||||
genfscon sysfs /devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/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
|
genfscon sysfs /devices/platform/17000070.devfreq_mfc/devfreq/17000070.devfreq_mfc/time_in_state u:object_r:sysfs_cpu:s0
|
||||||
|
|
||||||
|
genfscon sysfs /devices/system/chip-id/unique_id u:object_r:sysfs_soc:s0
|
||||||
|
genfscon sysfs /devices/soc0/machine u:object_r:sysfs_soc:s0
|
||||||
|
genfscon sysfs /devices/soc0/revision u:object_r:sysfs_soc:s0
|
||||||
|
|
||||||
# Devfreq directory
|
# Devfreq directory
|
||||||
genfscon sysfs /class/devfreq u:object_r:sysfs_devfreq_dir:s0
|
genfscon sysfs /class/devfreq u:object_r:sysfs_devfreq_dir:s0
|
||||||
|
|
||||||
|
|
24
whitechapel/vendor/google/hardware_info_app.te
vendored
24
whitechapel/vendor/google/hardware_info_app.te
vendored
|
@ -1,24 +0,0 @@
|
||||||
type hardware_info_app, domain;
|
|
||||||
|
|
||||||
app_domain(hardware_info_app)
|
|
||||||
|
|
||||||
allow hardware_info_app app_api_service:service_manager find;
|
|
||||||
|
|
||||||
# Display
|
|
||||||
allow hardware_info_app sysfs_display:dir search;
|
|
||||||
allow hardware_info_app sysfs_display:file r_file_perms;
|
|
||||||
|
|
||||||
# Audio
|
|
||||||
allow hardware_info_app sysfs_pixelstats:dir search;
|
|
||||||
allow hardware_info_app sysfs_pixelstats:file r_file_perms;
|
|
||||||
|
|
||||||
# Storage
|
|
||||||
allow hardware_info_app sysfs_scsi_devices_0000:dir search;
|
|
||||||
allow hardware_info_app sysfs_scsi_devices_0000:file r_file_perms;
|
|
||||||
|
|
||||||
# Battery
|
|
||||||
allow hardware_info_app sysfs_batteryinfo:file r_file_perms;
|
|
||||||
allow hardware_info_app sysfs_batteryinfo:dir search;
|
|
||||||
|
|
||||||
# SoC
|
|
||||||
allow hardware_info_app sysfs:file r_file_perms;
|
|
3
whitechapel/vendor/google/seapp_contexts
vendored
3
whitechapel/vendor/google/seapp_contexts
vendored
|
@ -26,9 +26,6 @@ user=_app isPrivApp=true name=com.google.android.grilservice domain=grilservice_
|
||||||
# HbmSVManager
|
# HbmSVManager
|
||||||
user=_app seinfo=platform name=com.android.hbmsvmanager domain=hbmsvmanager_app type=app_data_file levelFrom=all
|
user=_app seinfo=platform name=com.android.hbmsvmanager domain=hbmsvmanager_app type=app_data_file levelFrom=all
|
||||||
|
|
||||||
# Hardware Info Collection
|
|
||||||
user=_app isPrivApp=true name=com.google.android.hardwareinfo domain=hardware_info_app type=app_data_file levelFrom=user
|
|
||||||
|
|
||||||
# Domain for omadm
|
# Domain for omadm
|
||||||
user=_app isPrivApp=true seinfo=platform name=com.android.omadm.service domain=omadm_app type=app_data_file levelFrom=all
|
user=_app isPrivApp=true seinfo=platform name=com.android.omadm.service domain=omadm_app type=app_data_file levelFrom=all
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue