Changing the dalvik heapsize to 256M.
Reducing the dalvik heapsize to get rid of Vss exhaustion for an application.
Change-Id: Ifa20fdb86f9d377997a639537201e501a5e0f402
diff --git a/common.mk b/common.mk
index a627e82..60528ae 100644
--- a/common.mk
+++ b/common.mk
@@ -26,9 +26,6 @@
# Include GSI keys
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk)
-# Setup dalvik vm configs
-$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk)
-
# Get non-open-source specific aspects
$(call inherit-product, vendor/oneplus/sm4350-common/sm4350-common-vendor.mk)
@@ -200,6 +197,15 @@
android.hardware.camera.provider@2.4-service_64 \
vendor.qti.hardware.camera.postproc@1.0.vendor
+# Dalvik
+PRODUCT_PROPERTY_OVERRIDES += \
+ dalvik.vm.heapstartsize=8m \
+ dalvik.vm.heapsize=256m \
+ dalvik.vm.heapgrowthlimit=128m \
+ dalvik.vm.heaptargetutilization=0.75 \
+ dalvik.vm.heapminfree=512k \
+ dalvik.vm.heapmaxfree=8m
+
# Display
PRODUCT_PACKAGES += \
android.hardware.graphics.common-V1-ndk_platform.vendor \