sm6225-common: Set up dalvik according to stock configuration
Based on init.mmi.product.rc Change-Id: I5bd4a19a2a880189b9c28780ff343d1b9e508a80
This commit is contained in:
parent
8e1d912a3b
commit
a4f78a14ef
5 changed files with 41 additions and 3 deletions
|
@ -137,9 +137,6 @@ PRODUCT_PACKAGES += \
|
|||
PRODUCT_PACKAGES += \
|
||||
disable_configstore
|
||||
|
||||
# Dalvik
|
||||
$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
|
||||
|
||||
# Display
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.graphics.mapper@3.0-impl-qti-display \
|
||||
|
@ -385,6 +382,7 @@ PRODUCT_PACKAGES += \
|
|||
init.qti.early_init.sh \
|
||||
init.mmi.charge_only.rc \
|
||||
init.mmi.chipset.rc \
|
||||
init.mmi.dalvik.rc \
|
||||
init.mmi.debug.rc \
|
||||
init.mmi.rc \
|
||||
init.qcom.factory.rc \
|
||||
|
|
|
@ -104,6 +104,14 @@ LOCAL_SRC_FILES := etc/init.mmi.chipset.rc
|
|||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.mmi.dalvik.rc
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
LOCAL_MODULE_CLASS := ETC
|
||||
LOCAL_SRC_FILES := etc/init.mmi.dalvik.rc
|
||||
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR_ETC)/init/hw
|
||||
include $(BUILD_PREBUILT)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
LOCAL_MODULE := init.mmi.debug.rc
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
|
23
rootdir/etc/init.mmi.dalvik.rc
Normal file
23
rootdir/etc/init.mmi.dalvik.rc
Normal file
|
@ -0,0 +1,23 @@
|
|||
on property:ro.vendor.hw.ram=4GB
|
||||
setprop dalvik.vm.heapstartsize 8m
|
||||
setprop dalvik.vm.heapgrowthlimit 192m
|
||||
setprop dalvik.vm.heapsize 512m
|
||||
setprop dalvik.vm.heaptargetutilization 0.75
|
||||
setprop dalvik.vm.heapminfree 512k
|
||||
setprop dalvik.vm.heapmaxfree 8m
|
||||
|
||||
on property:ro.vendor.hw.ram=6GB
|
||||
setprop dalvik.vm.heapstartsize 12m
|
||||
setprop dalvik.vm.heapgrowthlimit 256m
|
||||
setprop dalvik.vm.heapsize 512m
|
||||
setprop dalvik.vm.heaptargetutilization 0.5
|
||||
setprop dalvik.vm.heapminfree 6m
|
||||
setprop dalvik.vm.heapmaxfree 24m
|
||||
|
||||
on property:ro.vendor.hw.ram=8GB
|
||||
setprop dalvik.vm.heapstartsize 12m
|
||||
setprop dalvik.vm.heapgrowthlimit 256m
|
||||
setprop dalvik.vm.heapsize 512m
|
||||
setprop dalvik.vm.heaptargetutilization 0.5
|
||||
setprop dalvik.vm.heapminfree 6m
|
||||
setprop dalvik.vm.heapmaxfree 24m
|
|
@ -26,6 +26,9 @@ import /vendor/etc/init/hw/init.mmi.debug.rc
|
|||
import /vendor/etc/init/carrier/init.${ro.boot.carrier}.rc
|
||||
import /vendor/etc/init/carrier/init.default.rc
|
||||
|
||||
# Dalvik configuration
|
||||
import /vendor/etc/init/hw/init.mmi.dalvik.rc
|
||||
|
||||
on early-boot
|
||||
write /sys/module/subsystem_restart/parameters/disable_restart_work 0x0
|
||||
|
||||
|
|
|
@ -103,6 +103,12 @@ persist.vendor.cne.logging.qxdm=3974
|
|||
|
||||
# Dalvik
|
||||
dalvik.vm.dex2oat64.enabled=true
|
||||
dalvik.vm.heapstartsize=8m
|
||||
dalvik.vm.heapgrowthlimit=256m
|
||||
dalvik.vm.heapsize=512m
|
||||
dalvik.vm.heaptargetutilization=0.75
|
||||
dalvik.vm.heapminfree=1m
|
||||
dalvik.vm.heapmaxfree=8m
|
||||
|
||||
# Display
|
||||
debug.sf.enable_hwc_vds=1
|
||||
|
|
Loading…
Reference in a new issue