mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-01-27 17:18:49 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user