[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
This commit is contained in:
Chang-An Chen 2020-01-18 09:59:00 +08:00
parent 77655e590e
commit 73f8a63b8b

View File

@ -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:dir w_dir_perms;
##allow factory system_data_file:sock_file create_file_perms; ##allow factory system_data_file:sock_file create_file_perms;
allow factory system_file:file x_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;