Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be4d5394 authored by Marco Ballesio's avatar Marco Ballesio
Browse files

CachedAppOptimizer: enable single cgroup freezer

The cgroup v2 uid/pid hierarchy was reverted because of
http://b/179006802 leaving the underlying freezer implementation to a
single cgroup. Enable the freezer at boot until the new hierarchy can be
brought back.

Bug: 179006802
Test: verified that the freezer is enabled at boot
Change-Id: I88041a3efb06724e4bc2d78fea017778c365d387
parent e5430976
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -556,6 +556,10 @@ public final class CachedAppOptimizer {


            if (state == '1' || state == '0') {
            if (state == '1' || state == '0') {
                supported = true;
                supported = true;
                // This is a workaround after reverting the cgroup v2 uid/pid hierarchy due to
                // http://b/179006802.
                // TODO: remove once the uid/pid hierarchy is restored
                enableFreezerInternal(true);
            } else {
            } else {
                Slog.e(TAG_AM, "unexpected value in cgroup.freeze");
                Slog.e(TAG_AM, "unexpected value in cgroup.freeze");
            }
            }