diff options
| author | CheckYourScreen <nimitmehta95@gmail.com> | 2017-03-30 20:13:37 +0200 |
|---|---|---|
| committer | Subhrajyoti Sen <subhrajyoti12@gmail.com> | 2017-06-14 16:11:03 +0530 |
| commit | 416c8f188444235ecdf4ad16e1782328a76f0609 (patch) | |
| tree | 93cbf7561f31d966ad796447a69470b80183b87f | |
| parent | a3f7768b08acc22b627e469922d5de4209f94063 (diff) | |
onyx: inherit device specific custom dalvik heap props
* Some roms are having different values for these props, since tree is inheriting them from rom source it might screw up on those which have inappropriate values.
Include the best values suitable for the device within the tree itself to overccome such issue.
* Increase the heapminfree size from default 512k to 2m to decrease app launch latencies
Change-Id: Iba167fdeda15b4b26082fa0bc0a44bba7ba40f79
Signed-off-by: CheckYourScreen <nimitmehta95@gmail.com>
| -rw-r--r-- | dalvik-heap.mk | 11 | ||||
| -rw-r--r-- | device.mk | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/dalvik-heap.mk b/dalvik-heap.mk new file mode 100644 index 0000000..a18d826 --- /dev/null +++ b/dalvik-heap.mk @@ -0,0 +1,11 @@ +# override's default values for xxhdpi-3072 device. +# increased heapminfree size to 2m from default 512k to improve app launch latencies + + +PRODUCT_PROPERTY_OVERRIDES += \ + dalvik.vm.heapstartsize=8m \ + dalvik.vm.heapgrowthlimit=288m \ + dalvik.vm.heapsize=768m \ + dalvik.vm.heaptargetutilization=0.75 \ + dalvik.vm.heapminfree=2m \ + dalvik.vm.heapmaxfree=8m @@ -15,7 +15,7 @@ # $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) -$(call inherit-product, frameworks/native/build/phone-xxhdpi-3072-dalvik-heap.mk) +$(call inherit-product, device/oneplus/onyx/dalvik-heap.mk) $(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-3072-hwui-memory.mk) # Overlays |
