stone: libinit: set memory tweaks only for 4GB Users

6 and 8 GB Users are fine. atleast for now

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
This commit is contained in:
kamikaonashi
2024-07-06 19:31:08 +02:00
committed by Arijit78
parent 2c6d485c69
commit 973111e140
2 changed files with 10 additions and 12 deletions

View File

@@ -58,8 +58,18 @@ void set_dalvik_heap() {
else
dhi = &dalvik_heap_info_4096;
/* Set props for 4GB Users */
if (sys.totalram < GB(5))
property_override("ro.config.avoid_gfx_accel", "true");
property_override("ro.config.fha_enable", "true");
property_override("ro.sys.fw.bg_apps_limit", "32");
property_override("ro.config.dha_cached_max", "16");
property_override("ro.config.dha_empty_max", "42");
property_override("ro.config.dha_empty_init", "32");
property_override("ro.config.dha_lmk_scale", "0.545");
property_override("ro.config.dha_th_rate", "2.3");
property_override("ro.config.sdha_apps_bg_max", "64");
property_override("ro.config.sdha_apps_bg_min", "8");
property_override(HEAPSTARTSIZE_PROP, dhi->heapstartsize);
property_override(HEAPGROWTHLIMIT_PROP, dhi->heapgrowthlimit);