sabrina: Allow droidlogic app to interact with systemcontrol hwservice
authorNolen Johnson <johnsonnolen@gmail.com>
Mon, 10 Jun 2024 19:39:41 +0000 (15:39 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Mon, 10 Jun 2024 19:39:41 +0000 (15:39 -0400)
* No idea how stock does this, will figure it out later.
* Labeling droidlogic app changes nothing.

Change-Id: Icd27d73402a9fdffdc849de7d2f56183e86e3da6

BoardConfig.mk
sepolicy/vendor/platform_app.te [new file with mode: 0644]
sepolicy/vendor/system_app.te [new file with mode: 0644]

index 424731d1392f2d19e0bdbe52764feba1aff1641f..ef5cff4ad5af86192a734bad6969730ac5741ca0 100644 (file)
@@ -27,6 +27,10 @@ BOARD_SUPER_PARTITION_SIZE := 2084569088
 ## 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 (file)
index 0000000..d58fa77
--- /dev/null
@@ -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 (file)
index 0000000..ead7ffa
--- /dev/null
@@ -0,0 +1 @@
+allow system_app systemcontrol_hwservice:hwservice_manager { add find };