From b3e9fc2219f689d1f5bc27a020913e6289e66231 Mon Sep 17 00:00:00 2001 From: SzuWei Lin Date: Wed, 3 Jul 2019 17:45:47 +0800 Subject: [PATCH] Add default LMK properties to GSI These LMK properties are product properties. The configuration will be absent when GSI is installed as GSI doesn't mount the product partition. Without these settings, some CTS test cases could fail due to an aggressive LMK. The patch puts these properties in GSI as default values. Bug: 136212765 Bug: 134460917 Test: `run cts -m CtsFileSystemTestCases`, all pass Change-Id: I6fde8db51debcb9bb269aece3a3e4c7e5bb991f6 Merged-In: I6fde8db51debcb9bb269aece3a3e4c7e5bb991f6 (cherry picked from commit 9547929af43eeb48e4f766daeb822d8d89416691) --- target/board/gsi_system.prop | 5 +++++ target/board/gsi_system_user.prop | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/target/board/gsi_system.prop b/target/board/gsi_system.prop index 780aadc0ae..dd3227efb2 100644 --- a/target/board/gsi_system.prop +++ b/target/board/gsi_system.prop @@ -12,3 +12,8 @@ persist.sys.disable_rescue=true # TODO(b/78105955): disable privapp_permissions checking before the bug solved ro.control_privapp_permissions=disable + +# TODO(b/136212765): the default for LMK +ro.lmk.kill_heaviest_task=true +ro.lmk.kill_timeout_ms=100 +ro.lmk.use_minfree_levels=true diff --git a/target/board/gsi_system_user.prop b/target/board/gsi_system_user.prop index 217bd012ad..db6d880b7a 100644 --- a/target/board/gsi_system_user.prop +++ b/target/board/gsi_system_user.prop @@ -9,3 +9,8 @@ persist.sys.disable_rescue=true # TODO(b/78105955): disable privapp_permissions checking before the bug solved ro.control_privapp_permissions=disable + +# TODO(b/136212765): the default for LMK +ro.lmk.kill_heaviest_task=true +ro.lmk.kill_timeout_ms=100 +ro.lmk.use_minfree_levels=true