From b434a0ecf23e655403a4f1eb6d7b1adc27cb6049 Mon Sep 17 00:00:00 2001 From: Mark Chang Date: Tue, 23 Jan 2024 12:01:49 +0000 Subject: [PATCH] Allow systemui_app to set property. This is to fix the denied log. 01-23 15:58:26.896 1 1 W /system/bin/init: type=1107 audit(0.0:17): uid=0 auid=4294967295 ses=4294967295 subj=u:r:init:s0 msg='avc: denied { set } for property=debug.touch_sensitivity_mode pid=2123 uid=10237 gid=10237 scontext=u:r:systemui_app:s0:c237,c256,c512,c768 tcontext=u:object_r:debug_prop:s0 tclass=property_service permissive=0' Bug: 309912697 Test: Setting property was successful. Change-Id: Id841d2d45de8d8d57366faf71f5ee60da74ce111 Signed-off-by: Mark Chang --- system_ext/private/systemui_app.te | 1 + 1 file changed, 1 insertion(+) diff --git a/system_ext/private/systemui_app.te b/system_ext/private/systemui_app.te index a52aa2a..32bc9cf 100644 --- a/system_ext/private/systemui_app.te +++ b/system_ext/private/systemui_app.te @@ -18,6 +18,7 @@ allow systemui_app adb_service:service_manager find; get_prop(systemui_app, keyguard_config_prop) set_prop(systemui_app, bootanim_system_prop) get_prop(systemui_app, qemu_hw_prop) +set_prop(systemui_app, debug_prop) # Allow writing and removing wmshell protolog in /data/misc/wmtrace. userdebug_or_eng(`