From 807fcf5fdb456245334244b0fcbd9750d3a07fdb Mon Sep 17 00:00:00 2001 From: Brendan Jackman Date: Thu, 13 Apr 2017 15:53:04 +0100 Subject: [PATCH] executor: Don't except `init` from freezing on Android Freezing init doesn't seem to break anything. Also scenarios have been observed where Android's init eats CPU while the rest of the system is frozen. Maybe it's spin-waiting on a lock or mailbox for a frozen process. --- libs/utils/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/utils/executor.py b/libs/utils/executor.py index 8bb84f2db..0613d621e 100644 --- a/libs/utils/executor.py +++ b/libs/utils/executor.py @@ -171,7 +171,7 @@ class Executor(): critical_tasks = { 'linux': ['init', 'systemd', 'sh', 'ssh'], 'android': [ - 'sh', 'adbd', 'init', + 'sh', 'adbd', 'usb', 'transport', # We don't actually need this task but on Google Pixel it apparently # cannot be frozen, so the cgroup state gets stuck in FREEZING if we -- GitLab