summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-18 22:02:19 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-02-18 22:02:19 +0000
commit2f1e265492b4a0d8a379c9cc5a07a41547a8ab45 (patch)
tree4dc4d2fa2c611ea3e176af25e4ea25c17c0cfaad
parent964a2d591800b01689de26b689c69db03a12aca9 (diff)
parent3194ab09f9c4efe20b9c8f6f6ed230fa014f22ea (diff)
Snap for 9627464 from 3194ab09f9c4efe20b9c8f6f6ed230fa014f22ea to tm-qpr3-release
Change-Id: Ife181d16537070e8869c848fcd0743bc8e65a1b5
-rw-r--r--whitechapel/vendor/google/hal_health_default.te1
-rw-r--r--whitechapel/vendor/google/property.te3
-rw-r--r--whitechapel/vendor/google/property_contexts1
3 files changed, 5 insertions, 0 deletions
diff --git a/whitechapel/vendor/google/hal_health_default.te b/whitechapel/vendor/google/hal_health_default.te
index a28e5c12..65a5d483 100644
--- a/whitechapel/vendor/google/hal_health_default.te
+++ b/whitechapel/vendor/google/hal_health_default.te
@@ -4,6 +4,7 @@ allow hal_health_default persist_battery_file:file create_file_perms;
allow hal_health_default persist_battery_file:dir rw_dir_perms;
set_prop(hal_health_default, vendor_battery_defender_prop)
+set_prop(hal_health_default, vendor_shutdown_prop)
r_dir_file(hal_health_default, sysfs_scsi_devices_0000)
allow hal_health_default fwk_stats_service:service_manager find;
diff --git a/whitechapel/vendor/google/property.te b/whitechapel/vendor/google/property.te
index 70c72b68..f1430adf 100644
--- a/whitechapel/vendor/google/property.te
+++ b/whitechapel/vendor/google/property.te
@@ -29,6 +29,9 @@ vendor_internal_prop(vendor_battery_defender_prop)
# Battery profile for harness mode
vendor_internal_prop(vendor_battery_profile_prop)
+# hal_health
+vendor_internal_prop(vendor_shutdown_prop)
+
# AoC
vendor_internal_prop(vendor_aoc_prop)
diff --git a/whitechapel/vendor/google/property_contexts b/whitechapel/vendor/google/property_contexts
index 0dd3d463..c9e16156 100644
--- a/whitechapel/vendor/google/property_contexts
+++ b/whitechapel/vendor/google/property_contexts
@@ -87,6 +87,7 @@ persist.vendor.nfc. u:object_r:vendor_nfc_prop:s0
# Battery
vendor.battery.defender. u:object_r:vendor_battery_defender_prop:s0
+persist.vendor.shutdown. u:object_r:vendor_shutdown_prop:s0
# test battery profile
persist.vendor.testing_battery_profile u:object_r:vendor_battery_profile_prop:s0