mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
universal7885: enable zram writeback
Enable Zram writeback feature to allow unused pages in zram be written to flash. Bug: 128889899 Test: Boot to home Change-Id: I48ae06e54a66a7d6965afbe8db3d2f157cf8a1f4 Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
480df06f05
commit
30db4a7d90
3 changed files with 12 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -79,7 +79,10 @@
|
|||
|
||||
<!-- Shutdown if the battery temperature exceeds (this value * 0.1) Celsius. -->
|
||||
<integer name="config_shutdownBatteryTemperature">600</integer>
|
||||
|
||||
|
||||
<!-- Enable Zram writeback feature to allow unused pages in zram be written to flash. -->
|
||||
<bool name="config_zramWriteback">true</bool>
|
||||
|
||||
<!-- From Stock framework-res.apk: -->
|
||||
<bool name="config_setColorTransformAccelerated">true</bool>
|
||||
<bool name="config_enableNightMode">true</bool>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue