summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Shintaro Kawamura <kawasin@google.com> 2025-01-31 14:07:08 +0900
committer Shintaro Kawamura <kawasin@google.com> 2025-01-31 20:36:03 +0900
commit925c03faeddc1f2271e6537d2a692cf710517c3c (patch)
tree1e5766cd7b7b3b826d2e043089875510b14378f4 /libs/androidfw/Util.cpp
parent849150a13c322f9968907d37b79afbd50ef270bd (diff)
Switch zram management based on mmd AConfig flag and mmd.zram.enabled system property
During launch of mmd, Android devices has 2 systems for zram management which are mutally exclusive: mmd and old system (swapon_all + ZramWriteback.java in system_server). MmdProperties.mmd_zram_enabled() is the wrapper API for the "mmd.zram.enabled" system property. If both "mmd_enabled" AConfig flag and "mmd.zram.enabled" system property are enabled, mmd manages zram. Otherwise the old system manages zram (though zram may not be utilized on the device). This also pushes refreshZramSettings() to the another branch from mmd because mmd system does not support enabling zram via Settings for experiments. Bug: 393481329 Test: manual Change-Id: Ied2a36a3cddd4fe7936b5476c05d3442ec439431
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions