From ce3e6e42140c47a692856a4c9c8efe2ee9c2a593 Mon Sep 17 00:00:00 2001 From: Nolen Johnson Date: Mon, 10 Jun 2024 15:39:41 -0400 Subject: [PATCH] wade: Allow droidlogic app to interact with systemcontrol hwservice * No idea how stock does this, will figure it out later. * Labeling droidlogic app changes nothing. Change-Id: Icd27d73402a9fdffdc849de7d2f56183e86e3da6 --- BoardConfig.mk | 4 ++++ sepolicy/vendor/platform_app.te | 1 + sepolicy/vendor/system_app.te | 1 + 3 files changed, 6 insertions(+) create mode 100644 sepolicy/vendor/platform_app.te create mode 100644 sepolicy/vendor/system_app.te diff --git a/BoardConfig.mk b/BoardConfig.mk index 85a9df3..1effef3 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -32,6 +32,10 @@ BOARD_SUPER_PARTITION_SIZE := 1677721600 ## Properties TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop +## SELinux +SELINUX_IGNORE_NEVERALLOWS := true +BOARD_VENDOR_SEPOLICY_DIRS += device/google/sabrina/sepolicy/vendor + ## Wi-Fi BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_bcmdhd BOARD_WLAN_DEVICE := bcmdhd diff --git a/sepolicy/vendor/platform_app.te b/sepolicy/vendor/platform_app.te new file mode 100644 index 0000000..d58fa77 --- /dev/null +++ b/sepolicy/vendor/platform_app.te @@ -0,0 +1 @@ +allow platform_app systemcontrol_hwservice:hwservice_manager { add find }; diff --git a/sepolicy/vendor/system_app.te b/sepolicy/vendor/system_app.te new file mode 100644 index 0000000..ead7ffa --- /dev/null +++ b/sepolicy/vendor/system_app.te @@ -0,0 +1 @@ +allow system_app systemcontrol_hwservice:hwservice_manager { add find }; -- 2.20.1