From 3203c8f38aed24cb392ca5c57af850878cb4f2bf Mon Sep 17 00:00:00 2001 From: Chinwen Chang Date: Sat, 18 Jan 2020 10:12:59 +0800 Subject: [PATCH] [ALPS04455690] Whitelist some lmkd properties that go into /vendor/build.prop Add whitelist for the following properties, ro.lmk.use_minfree_levels ro.lmk.low ro.lmk.medium ro.lmk.critical ro.lmk.kill_timeout_ms ro.lmk.swap_free_low_percentage This is just a temp solution because those properties should be put in system/sepolicy/public/property_contexts, but it is not ready currently. Once it is ready for those properties, this patch will be rolled back. MTK-Commit-Id: bc8b76b56605d264af1727cd234a5406da372744 Change-Id: Id8db6725e9dfeeeebd401c8922fe8004c5f5c5b4 CR-Id: ALPS04455690 Feature: Memory Optimization --- non_plat/property_contexts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/non_plat/property_contexts b/non_plat/property_contexts index 9fb18aa..3994dbc 100644 --- a/non_plat/property_contexts +++ b/non_plat/property_contexts @@ -333,3 +333,11 @@ persist.vendor.mtk.xcap.rawurl u:object_r:persist_xcap_rawurl_prop:s0 #=============mtk bt enable SAP profile property=============# ro.vendor.mtk.bt_sap_enable u:object_r:mtk_bt_sap_enable_prop:s0 + +#============lmkd properties========# +ro.lmk.use_minfree_levels u:object_r:exported3_default_prop:s0 exact bool +ro.lmk.low u:object_r:exported3_default_prop:s0 exact int +ro.lmk.medium u:object_r:exported3_default_prop:s0 exact int +ro.lmk.critical u:object_r:exported3_default_prop:s0 exact int +ro.lmk.kill_timeout_ms u:object_r:exported3_default_prop:s0 exact int +ro.lmk.swap_free_low_percentage u:object_r:exported3_default_prop:s0 exact int