From 73f8a63b8b672810979f123237608ad9f95eeb61 Mon Sep 17 00:00:00 2001 From: Chang-An Chen Date: Sat, 18 Jan 2020 09:59:00 +0800 Subject: [PATCH] [ALPS03869354] Fix factory mode backlight and vibrator test fail [Detail] 1. Backlight level test in factory mode fail due to no sepolicy applied, and sysfs_leds is not allow to add to factory.te. 2. Vibrator test fail due to no corresponding selinux policy. [Solution] 1. Using hidl for backlight in factory mode. 2. Add vibrator policy. MTK-Commit-Id: 9470dca00da2fecfb373af94aae3502714d31ea3 Change-Id: I42cd45951054a267449e79f559b3761fce34d497 CR-Id: ALPS03869354 Feature: [Android Default] Backlight --- non_plat/factory.te | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/non_plat/factory.te b/non_plat/factory.te index 1652ef7..c995686 100644 --- a/non_plat/factory.te +++ b/non_plat/factory.te @@ -332,3 +332,11 @@ allow factory sysfs_wake_lock:file rw_file_perms; ##allow factory system_data_file:dir w_dir_perms; ##allow factory system_data_file:sock_file create_file_perms; allow factory system_file:file x_file_perms; + +# For Light HIDL permission +allow factory hal_light_hwservice:hwservice_manager find; +allow factory mtk_hal_light:binder call; +# For vibrator test permission +allow factory sysfs_vibrator:file rw_file_perms; +allow factory sysfs_vibrator:dir search; +