From fdb718f300e96266a521c48c7e1d273d70350ac7 Mon Sep 17 00:00:00 2001 From: Nikolas Havrikov Date: Mon, 27 Sep 2021 08:27:21 +0000 Subject: [PATCH] Enable lowering IME binding priority This CL introduces the config_killableInputMethods configuration option, which is disabled by default. When enabled, this option lowers the IME binding priority to below the perceptible level to allow the lowmemorykiller to reclaim the IME process. Test: set the config value to true in an overlay Test: manually on an Android TV device Test atest CtsInputMethodTestCases Bug: 199887357 Change-Id: Ib191d964de15bbb84daa8bbeca6f2dca6f96311c --- core/res/res/values/config.xml | 3 ++ core/res/res/values/symbols.xml | 1 + .../InputMethodManagerService.java | 32 +++++++++++++++++-- 3 files changed, 34 insertions(+), 2 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index f1a961d7cd1ac..e66f5247499ce 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -2781,6 +2781,9 @@ com.android.inputmethod.latin + + false +