mirror of
https://github.com/S3NEO/android_device_samsung_matissewifi.git
synced 2024-10-31 19:37:29 +00:00
matissewifi: Fix policy denial for comsumerir
* Prior to Q, We did not use HIDL for the comsumerir and since we do we need to fix those policy denial
This commit is contained in:
parent
dad592c055
commit
451c9c6a60
4 changed files with 28 additions and 1 deletions
|
@ -16,6 +16,8 @@
|
|||
# inherit from common matisse
|
||||
include device/samsung/matisse-common/BoardConfigCommon.mk
|
||||
|
||||
DEVICE_PATH := device/samsung/matissewifi
|
||||
|
||||
# Assert
|
||||
TARGET_OTA_ASSERT_DEVICE := matissewifi
|
||||
|
||||
|
@ -23,7 +25,10 @@ TARGET_OTA_ASSERT_DEVICE := matissewifi
|
|||
TARGET_KERNEL_CONFIG := lineage_matissewifi_defconfig
|
||||
|
||||
# HIDL
|
||||
DEVICE_MANIFEST_FILE += device/samsung/matissewifi/manifest.xml
|
||||
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/manifest.xml
|
||||
|
||||
# SELinux
|
||||
include $(DEVICE_PATH)/sepolicy/sepolicy.mk
|
||||
|
||||
# inherit from the proprietary version
|
||||
-include vendor/samsung/matissewifi/BoardConfigVendor.mk
|
||||
|
|
1
sepolicy/common/file_contexts
Normal file
1
sepolicy/common/file_contexts
Normal file
|
@ -0,0 +1 @@
|
|||
/(vendor|system/vendor)/bin/hw/android\.hardware\.ir@1\.0-service\.samsung u:object_r:hal_ir_default_exec:s0
|
2
sepolicy/common/hal_ir_default.te
Normal file
2
sepolicy/common/hal_ir_default.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
allow hal_ir_default sysfs_sec_ir:dir search;
|
||||
allow hal_ir_default sysfs_sec_ir:file w_file_perms;
|
19
sepolicy/sepolicy.mk
Normal file
19
sepolicy/sepolicy.mk
Normal file
|
@ -0,0 +1,19 @@
|
|||
#
|
||||
# Copyright (C) 2018 The LineageOS Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
# Board specific SELinux policy variable definitions
|
||||
BOARD_SEPOLICY_DIRS += \
|
||||
device/samsung/matissewifi/sepolicy/common
|
Loading…
Reference in a new issue