diff --git a/universal7885-common/configs/props/system.prop b/universal7885-common/configs/props/system.prop index a6107e0..e81a21a 100644 --- a/universal7885-common/configs/props/system.prop +++ b/universal7885-common/configs/props/system.prop @@ -1,2 +1,8 @@ # pre-render ro.vendor.perf.scroll_opt=true + +# ZRAM writeback +ro.zram.mark_idle_delay_mins=60 +ro.zram.first_wb_delay_mins=180 +ro.zram.periodic_wb_delay_hours=24 + diff --git a/universal7885-common/overlay/frameworks/base/core/res/res/values/config.xml b/universal7885-common/overlay/frameworks/base/core/res/res/values/config.xml index a9c1ea3..c60448d 100644 --- a/universal7885-common/overlay/frameworks/base/core/res/res/values/config.xml +++ b/universal7885-common/overlay/frameworks/base/core/res/res/values/config.xml @@ -79,7 +79,10 @@ 600 - + + + true + true true diff --git a/universal7885-common/rootdir/etc/fstab.enableswap b/universal7885-common/rootdir/etc/fstab.enableswap index 596e585..1da8e88 100644 --- a/universal7885-common/rootdir/etc/fstab.enableswap +++ b/universal7885-common/rootdir/etc/fstab.enableswap @@ -1 +1,2 @@ -/dev/block/zram0 none swap defaults zramsize=100%,max_comp_streams=8 +/dev/block/zram0 none swap defaults zramsize=100%,max_comp_streams=8,zram_loopback_path=/data/unencrypted/zram_swap,zram_loopback_size=512M +