Skip to content
Commit 078f090d authored by Li Li's avatar Li Li
Browse files

Enable Freezer by default

The freezer init code will check if the Linux kernel is new enough to
support cgroupfs v2. If it does, freezer will be enabled by default.
Otherwise, freezer will be disabled.

Some tests were not correctly designed. The logic was wrong. This CL
also fixes those broken tests.

Meanwhile, CachedAppOptimizerTest should ignore freezer related tests if
freezer is not supported. Furthermore, the mockingservicestests isn't
running within system_server. So the current test always reports freezer
is not supported. This should be fixed separately.

Bug: 195589090
Bug: 195690032
Test: adb shell dumpsys activity settings | grep use_freezer=true
Test: atest CachedAppOptimizerTest
Change-Id: If994e452c9771b94130aa8b91240dcf924435710
parent 308cc991
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment