From 2470e479cf70629a64b5100de78a0899960ba357 Mon Sep 17 00:00:00 2001 From: Li Li Date: Fri, 9 Apr 2021 18:57:58 -0700 Subject: [PATCH] task_profiles.json: use cgroup v2 uid/pid freezer Bug: 184800106 Bug: 184893012 Test: Verify the app status in frozen and unfrozen states. Change-Id: Ic27529d71839076a0ac816383b52ec28c5d17be5 --- libprocessgroup/profiles/task_profiles.json | 38 ++++----------------- 1 file changed, 6 insertions(+), 32 deletions(-) diff --git a/libprocessgroup/profiles/task_profiles.json b/libprocessgroup/profiles/task_profiles.json index 5b57bdd12..bd94621f3 100644 --- a/libprocessgroup/profiles/task_profiles.json +++ b/libprocessgroup/profiles/task_profiles.json @@ -70,11 +70,11 @@ "Name": "Frozen", "Actions": [ { - "Name": "JoinCgroup", + "Name": "SetAttribute", "Params": { - "Controller": "freezer", - "Path": "" + "Name": "FreezerState", + "Value": "1" } } ] @@ -83,11 +83,11 @@ "Name": "Unfrozen", "Actions": [ { - "Name": "JoinCgroup", + "Name": "SetAttribute", "Params": { - "Controller": "freezer", - "Path": "../" + "Name": "FreezerState", + "Value": "0" } } ] @@ -558,32 +558,6 @@ } ] }, - { - "Name": "FreezerDisabled", - "Actions": [ - { - "Name": "SetAttribute", - "Params": - { - "Name": "FreezerState", - "Value": "0" - } - } - ] - }, - { - "Name": "FreezerEnabled", - "Actions": [ - { - "Name": "SetAttribute", - "Params": - { - "Name": "FreezerState", - "Value": "1" - } - } - ] - } ], "AggregateProfiles": [