From 1d7ea568aa304de5208d89a560840dac5dd10a03 Mon Sep 17 00:00:00 2001 From: Stricted Date: Mon, 1 Oct 2018 10:18:17 +0200 Subject: [PATCH] universal8895: copy seccomp filter to vendor 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 | 3 --- device-common.mk | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index fd549ff..15fa1bf 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -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 diff --git a/device-common.mk b/device-common.mk index 77a9527..b1c62d3 100644 --- a/device-common.mk +++ b/device-common.mk @@ -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 -- 2.20.1