diff --git a/products/board.mk b/products/board.mk index 6cd70f6..e894b64 100644 --- a/products/board.mk +++ b/products/board.mk @@ -14,4 +14,6 @@ # limitations under the License. # +BOARD_VENDOR_SEPOLICY_DIRS += vendor/xiaomi/sweet-miuicamera/sepolicy/vendor + include vendor/xiaomi/sweet-miuicamera/common/BoardConfigVendor.mk diff --git a/sepolicy/vendor/miuicamera_app.te b/sepolicy/vendor/miuicamera_app.te new file mode 100644 index 0000000..8ca7af5 --- /dev/null +++ b/sepolicy/vendor/miuicamera_app.te @@ -0,0 +1,15 @@ +type miuicamera_app, domain, coredomain; + +app_domain(miuicamera_app) +net_domain(miuicamera_app) + +allow miuicamera_app { + app_api_service + audioserver_service + cameraserver_service + mediaextractor_service + mediametrics_service + mediaserver_service +}:service_manager find; + +dontaudit miuicamera_app radio_service:service_manager find; diff --git a/sepolicy/vendor/seapp_contexts b/sepolicy/vendor/seapp_contexts new file mode 100644 index 0000000..6c10800 --- /dev/null +++ b/sepolicy/vendor/seapp_contexts @@ -0,0 +1 @@ +user=_app isPrivApp=true name=com.android.camera domain=miuicamera_app type=privapp_data_file levelFrom=all