From 926096b97f677d2c5c682189b3efe2597c64750c Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Thu, 12 Sep 2019 21:21:31 +0200 Subject: [PATCH] (re)Add /bt_firmware. this is still required by 8.1 CAF devices like Razer Phone --- board-base.mk | 2 ++ sepolicy/file_contexts | 3 +++ sepolicy/qualcomm.te | 1 + 3 files changed, 6 insertions(+) diff --git a/board-base.mk b/board-base.mk index efe5e68..7f32ac1 100644 --- a/board-base.mk +++ b/board-base.mk @@ -2,3 +2,5 @@ TARGET_SYSTEM_PROP := device/phh/treble/system.prop $(TARGET_SYSTEM_PROP) BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/phh/treble/bluetooth TARGET_EXFAT_DRIVER := exfat DEVICE_FRAMEWORK_MANIFEST_FILE := device/phh/treble/framework_manifest.xml + +BOARD_ROOT_EXTRA_FOLDERS += bt_firmware diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index d191972..d726cd4 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -6,3 +6,6 @@ #/system/bin/fsck\.exfat u:object_r:fsck_exec:s0 /system/bin/fsck\.ntfs u:object_r:fsck_exec:s0 + +/bt_firmware(/.*)? u:object_r:bt_firmware_file:s0 + diff --git a/sepolicy/qualcomm.te b/sepolicy/qualcomm.te index ed5a369..fba8ed8 100644 --- a/sepolicy/qualcomm.te +++ b/sepolicy/qualcomm.te @@ -1,3 +1,4 @@ +type bt_firmware_file, file_type; type rild, domain; #me.phh.treble.qti.audio is system-signed