Change-Id: I2db10ce007ca0d9736d44447487ecb2fa4cfa1e7
--- /dev/null
+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
# 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