From 4c9dd893b818da483acb09e790113c3747eca63d Mon Sep 17 00:00:00 2001 From: Adam Shih Date: Fri, 5 Nov 2021 11:13:30 +0800 Subject: [PATCH] fix platform_app property access Bug: 205073024 Test: boot with no relevant error log Change-Id: Ia230b025b89981ed797c95cdf76fe7efd56d3fa7 --- private/property_contexts | 5 +++++ tracking_denials/platform_app.te | 6 ------ whitechapel_pro/platform_app.te | 6 ++++++ 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 private/property_contexts diff --git a/private/property_contexts b/private/property_contexts new file mode 100644 index 00000000..abcdd419 --- /dev/null +++ b/private/property_contexts @@ -0,0 +1,5 @@ +# Boot animation dynamic colors +persist.bootanim.color1 u:object_r:bootanim_system_prop:s0 exact int +persist.bootanim.color2 u:object_r:bootanim_system_prop:s0 exact int +persist.bootanim.color3 u:object_r:bootanim_system_prop:s0 exact int +persist.bootanim.color4 u:object_r:bootanim_system_prop:s0 exact int diff --git a/tracking_denials/platform_app.te b/tracking_denials/platform_app.te index 237f75c5..6e1b0e1c 100644 --- a/tracking_denials/platform_app.te +++ b/tracking_denials/platform_app.te @@ -1,8 +1,2 @@ # b/204718221 dontaudit platform_app touch_service:service_manager { find }; -# b/205073024 -dontaudit platform_app default_prop:property_service { set }; -dontaudit platform_app fingerprint_ghbm_prop:file { getattr }; -dontaudit platform_app fingerprint_ghbm_prop:file { map }; -dontaudit platform_app fingerprint_ghbm_prop:file { open }; -dontaudit platform_app fingerprint_ghbm_prop:file { read }; diff --git a/whitechapel_pro/platform_app.te b/whitechapel_pro/platform_app.te index 58499c98..6ba51af9 100644 --- a/whitechapel_pro/platform_app.te +++ b/whitechapel_pro/platform_app.te @@ -1,2 +1,8 @@ allow platform_app hal_pixel_display_service:service_manager find; allow platform_app hal_wlc_hwservice:hwservice_manager find; + +# Fingerprint (UDFPS) GHBM/LHBM toggle +get_prop(platform_app, fingerprint_ghbm_prop) + +# allow systemui to set boot animation colors +set_prop(platform_app, bootanim_system_prop);