summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-02 00:03:04 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-02 00:03:04 +0000
commit059222eaba9fa5a4d6dd9d298875183a9165c67b (patch)
tree3921d5e7a64c4bb649359a448b8a57ed07e6845e
parent66f48241b5e406b1410ec1a8e7c6d33c651bb81c (diff)
parent75521ed6d8cb5e46f9babb760c9a94123f5c37f1 (diff)
Snap for 9552684 from 75521ed6d8cb5e46f9babb760c9a94123f5c37f1 to tm-qpr3-release
Change-Id: Id5fb2c627bb8d29af333fc1e6cf09575cff51e76
-rw-r--r--whitechapel_pro/battery_mitigation.te1
-rw-r--r--whitechapel_pro/file.te1
-rw-r--r--whitechapel_pro/genfs_contexts4
-rw-r--r--whitechapel_pro/hal_dumpstate_default.te3
-rw-r--r--whitechapel_pro/pixelstats_vendor.te4
-rw-r--r--whitechapel_pro/vendor_init.te1
6 files changed, 14 insertions, 0 deletions
diff --git a/whitechapel_pro/battery_mitigation.te b/whitechapel_pro/battery_mitigation.te
index 643b2fc6..4d7e259c 100644
--- a/whitechapel_pro/battery_mitigation.te
+++ b/whitechapel_pro/battery_mitigation.te
@@ -4,6 +4,7 @@ init_daemon_domain(battery_mitigation)
get_prop(battery_mitigation, boot_status_prop)
set_prop(battery_mitigation, vendor_mitigation_ready_prop)
get_prop(battery_mitigation, vendor_brownout_reason_prop)
+get_prop(battery_mitigation, system_boot_reason_prop)
hal_client_domain(battery_mitigation, hal_thermal);
hal_client_domain(battery_mitigation, hal_health);
diff --git a/whitechapel_pro/file.te b/whitechapel_pro/file.te
index 90fe2fbf..1c10354e 100644
--- a/whitechapel_pro/file.te
+++ b/whitechapel_pro/file.te
@@ -46,6 +46,7 @@ type sysfs_exynos_bts_stats, sysfs_type, fs_type;
type sysfs_bcl, sysfs_type, fs_type;
type sysfs_chip_id, sysfs_type, fs_type;
type sysfs_touch, sysfs_type, fs_type;
+type sysfs_exynos_pcie_stats, sysfs_type, fs_type;
type sysfs_bcmdhd, sysfs_type, fs_type;
type sysfs_wlc, sysfs_type, fs_type;
type sysfs_chargelevel, sysfs_type, fs_type;
diff --git a/whitechapel_pro/genfs_contexts b/whitechapel_pro/genfs_contexts
index 04bd9a9c..5ec2e546 100644
--- a/whitechapel_pro/genfs_contexts
+++ b/whitechapel_pro/genfs_contexts
@@ -397,6 +397,10 @@ genfscon sysfs /kernel/metrics/temp_residency/temp_residency_all/stats u:obje
genfscon sysfs /kernel/metrics/resume_latency/resume_latency_metrics u:object_r:sysfs_vendor_metrics:s0
genfscon sysfs /kernel/metrics/irq/long_irq_metrics u:object_r:sysfs_vendor_metrics:s0
+# PCIe link
+genfscon sysfs /devices/platform/14520000.pcie/link_stats u:object_r:sysfs_exynos_pcie_stats:s0
+genfscon sysfs /devices/platform/11920000.pcie/link_stats u:object_r:sysfs_exynos_pcie_stats:s0
+
# Camera
genfscon sysfs /devices/platform/17000030.devfreq_intcam/devfreq/17000030.devfreq_intcam/min_freq u:object_r:sysfs_camera:s0
genfscon sysfs /devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/max_freq u:object_r:sysfs_camera:s0
diff --git a/whitechapel_pro/hal_dumpstate_default.te b/whitechapel_pro/hal_dumpstate_default.te
index 12fb8a7e..68fbaf15 100644
--- a/whitechapel_pro/hal_dumpstate_default.te
+++ b/whitechapel_pro/hal_dumpstate_default.te
@@ -25,6 +25,9 @@ allow hal_dumpstate_default sysfs_wlc:file r_file_perms;
allow hal_dumpstate_default sysfs_exynos_bts:dir r_dir_perms;
allow hal_dumpstate_default sysfs_exynos_bts_stats:file r_file_perms;
+allow hal_dumpstate_default sysfs_exynos_pcie_stats:dir r_dir_perms;
+allow hal_dumpstate_default sysfs_exynos_pcie_stats:file r_file_perms;
+
allow hal_dumpstate_default sysfs_aoc:dir r_dir_perms;
allow hal_dumpstate_default sysfs_aoc_dumpstate:file r_file_perms;
diff --git a/whitechapel_pro/pixelstats_vendor.te b/whitechapel_pro/pixelstats_vendor.te
index a8d7b123..4faad03c 100644
--- a/whitechapel_pro/pixelstats_vendor.te
+++ b/whitechapel_pro/pixelstats_vendor.te
@@ -33,3 +33,7 @@ r_dir_file(pixelstats_vendor, sysfs_vendor_metrics)
# BCL
allow pixelstats_vendor sysfs_bcl:dir search;
allow pixelstats_vendor sysfs_bcl:file r_file_perms;
+
+# PCIe statistics
+allow pixelstats_vendor sysfs_exynos_pcie_stats:dir search;
+allow pixelstats_vendor sysfs_exynos_pcie_stats:file rw_file_perms;
diff --git a/whitechapel_pro/vendor_init.te b/whitechapel_pro/vendor_init.te
index 5b828e93..8a2f267f 100644
--- a/whitechapel_pro/vendor_init.te
+++ b/whitechapel_pro/vendor_init.te
@@ -38,6 +38,7 @@ set_prop(vendor_init, vendor_display_prop)
# Battery Mitigation
set_prop(vendor_init, vendor_brownout_reason_prop)
+get_prop(vendor_init, system_boot_reason_prop)
# MM
allow vendor_init proc_watermark_scale_factor:file w_file_perms;