Merge "HwInfo: Move hardware info sepolicy to pixel common"

This commit is contained in:
TreeHugger Robot 2022-08-03 02:57:30 +00:00 committed by Android (Google) Code Review
commit a3fc2a745c
5 changed files with 4 additions and 38 deletions

View file

@ -42,9 +42,6 @@ type fingerprint_device, dev_type;
# AMCS device
type amcs_device, dev_type;
# Battery history
type battery_history_device, dev_type;
# Raw HID device
type hidraw_device, dev_type;

View file

@ -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;
# Storage Health HAL
type sysfs_scsi_devices_0000, sysfs_type, fs_type;
type debugfs_f2fs, debugfs_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_assert, sysfs_type, fs_type;
# Display
type sysfs_display, sysfs_type, fs_type;
# Backlight
type sysfs_backlight, sysfs_type, fs_type;
@ -160,7 +156,6 @@ type sysfs_bcl, sysfs_type, fs_type;
# Chosen
type sysfs_chosen, sysfs_type, fs_type;
type sysfs_chip_id, sysfs_type, fs_type;
type sysfs_spi, sysfs_type, fs_type;
# 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 uwb_data_vendor, file_type, data_file_type;
# PixelStats_vendor
type sysfs_pixelstats, fs_type, sysfs_type;
# WLC FW
type vendor_wlc_fwupdata_file, vendor_file_type, file_type;

View file

@ -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/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
genfscon sysfs /class/devfreq u:object_r:sysfs_devfreq_dir:s0

View file

@ -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;

View file

@ -26,9 +26,6 @@ user=_app isPrivApp=true name=com.google.android.grilservice domain=grilservice_
# HbmSVManager
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
user=_app isPrivApp=true seinfo=platform name=com.android.omadm.service domain=omadm_app type=app_data_file levelFrom=all