universal7580: LD_PRELOAD libstagefright_shim into mediaserver
authorLukas0610 <mail@lukasberger.at>
Sat, 24 Feb 2018 17:35:43 +0000 (18:35 +0100)
committerJan Altensen <info@stricted.net>
Thu, 15 Aug 2019 09:11:27 +0000 (11:11 +0200)
Change-Id: I2db10ce007ca0d9736d44447487ecb2fa4cfa1e7

configs/init/mediaserver.rc [new file with mode: 0644]
device-common.mk

diff --git a/configs/init/mediaserver.rc b/configs/init/mediaserver.rc
new file mode 100644 (file)
index 0000000..13033f9
--- /dev/null
@@ -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
index 5492cab62f66a7a68ddffac27fed2dee36111b2f..434a344844043914d150e30a1318cf9d7ac96126 100644 (file)
@@ -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