universal8895: copy seccomp filter to vendor
authorStricted <info@stricted.net>
Mon, 1 Oct 2018 08:18:17 +0000 (10:18 +0200)
committerJan Altensen <info@stricted.net>
Tue, 3 Sep 2019 17:04:36 +0000 (19:04 +0200)
W /vendor/bin/hw/android.hardware.media.omx@1.0-service: Could not read additional policy file '/vendor/etc/seccomp_policy/mediacodec.policy'

Change-Id: Ica3c4105f67eb2ccc8af7554535beac66d7b2a65

BoardConfigCommon.mk
device-common.mk

index fd549ff664a93927a58512627e2391017649eb30..15fa1bfc064f2d9a9389c57c871da9da22f0649e 100644 (file)
@@ -94,9 +94,6 @@ BACKLIGHT_PATH := "/sys/class/backlight/panel/brightness"
 # Recovery
 TARGET_RECOVERY_FSTAB := $(LOCAL_PATH)/ramdisk/etc/fstab.samsungexynos8895
 
-# Seccomp filters
-BOARD_SECCOMP_POLICY += $(LOCAL_PATH)/seccomp
-
 # Wifi
 TARGET_USES_64_BIT_BCMDHD        := true
 BOARD_WLAN_DEVICE                := bcmdhd
index 77a9527ce61f978e7baf14b36231d2166963b992..b1c62d3b8d93385b9e68819acbeaf43fdf08c50c 100644 (file)
@@ -126,6 +126,11 @@ PRODUCT_PACKAGES += \
 PRODUCT_PACKAGES += \
     SamsungDoze
 
+# Seccomp filters
+PRODUCT_COPY_FILES += \
+    $(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \
+    $(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
+
 # TextClassifier
 PRODUCT_PACKAGES += \
     textclassifier.bundle1