From: Lukas0610 Date: Sat, 24 Feb 2018 17:35:43 +0000 (+0100) Subject: universal7580: LD_PRELOAD libstagefright_shim into mediaserver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b6366c97f289c71a98c3a0b4e29b3ae0d24cf137;p=GitHub%2FLineageOS%2Fandroid_device_samsung_universal7580-common.git universal7580: LD_PRELOAD libstagefright_shim into mediaserver Change-Id: I2db10ce007ca0d9736d44447487ecb2fa4cfa1e7 --- diff --git a/configs/init/mediaserver.rc b/configs/init/mediaserver.rc new file mode 100644 index 0000000..13033f9 --- /dev/null +++ b/configs/init/mediaserver.rc @@ -0,0 +1,7 @@ +service media /system/bin/mediaserver + class main + user media + group audio camera inet net_bt net_bt_admin net_bw_acct drmrpc mediadrm + ioprio rt 4 + writepid /dev/cpuset/foreground/tasks /dev/stune/foreground/tasks + setenv LD_PRELOAD "/vendor/lib/libstagefright_shim.so" \ No newline at end of file diff --git a/device-common.mk b/device-common.mk index 5492cab..434a344 100644 --- a/device-common.mk +++ b/device-common.mk @@ -118,7 +118,8 @@ PRODUCT_PACKAGES += \ # Overriden service definition PRODUCT_COPY_FILES += \ - $(LOCAL_PATH)/configs/init/android.hardware.media.omx@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.media.omx@1.0-service.rc + $(LOCAL_PATH)/configs/init/android.hardware.media.omx@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.media.omx@1.0-service.rc \ + $(LOCAL_PATH)/configs/init/mediaserver.rc:system/etc/init/mediaserver.rc # Properties -include $(LOCAL_PATH)/system_prop.mk