Skip to content
Commit 8b5cdef0 authored by Marco Ballesio's avatar Marco Ballesio
Browse files

CachedAppOptimizer: adapt freezer to uid/pid hiearchy.

The uid/pid hierarchy freezer is supported if the cgroup.freeze file is
present under any uid cgroup. Check on uid_0 which is granted to exist.

Also handle binder when enabling/disabling freezer. Freeze the binder interfaces
for all froze processes after enabling the app freezer. Similarly, unfreeze the
interfaces of frozen processes when the app freezer is enabled.

Bug: 168907513
Bug: 173173405
Test: verified proper functioning of the freezer after boot on devices
supporting the uid/pid hierarchy.
Test: ran "adb shell am dumpsys meminfo -a", verified that no processes
were killed by ActivityManager and that the command did not hang.

Change-Id: Ia7fa25cb6c59da73d34460ead4833cec69f7f6bc
parent d23e0827
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment