mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-01-27 11:33:32 +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);
|
||||
|
||||
@@ -12,18 +12,6 @@ vendor.camera.aux.packagelist=org.codeaurora.snapcam,com.android.camera,org.line
|
||||
# CNE
|
||||
persist.vendor.cne.feature=1
|
||||
|
||||
|
||||
# RAM
|
||||
ro.config.fha_enable=true
|
||||
ro.sys.fw.bg_apps_limit=32
|
||||
ro.config.dha_cached_max=16
|
||||
ro.config.dha_empty_max=42
|
||||
ro.config.dha_empty_init=32
|
||||
ro.config.dha_lmk_scale=0.545
|
||||
ro.config.dha_th_rate=2.3
|
||||
ro.config.sdha_apps_bg_max=64
|
||||
ro.config.sdha_apps_bg_min=8
|
||||
|
||||
# LMKD/PSI
|
||||
ro.lmk.use_psi=true
|
||||
ro.lmk.low=1001
|
||||
|
||||
Reference in New Issue
Block a user