1. In the root directory of device, search for devices.mk
find -iname "device.mk"
Find the device/mediatek/common/device.mk file and add:
endif
#Add for mediaextractor process limitMem:500000000
PRODUCT_PROPERTY_OVERRIDES += ro.media.maxmem=500000000
# for sensor multi-hal
ifeq ($(USE_SENSOR_MULTI_HAL), true)
PRODUCT_COPY_FILES += $(