summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2020-05-06 21:57:48 +0300
committerMichael Bestas <mkbestas@lineageos.org>2020-05-10 23:38:55 +0200
commit7b362f77cca4342e37a60221628722d40986e42a (patch)
treee1eed3f70970d1dc7f9a0a50375e7bb0622f8d19
parent8b63b3d4dd19c608835cc33b0f30df8d83b3f223 (diff)
downloadpackages_apps_Messaging-7b362f77cca4342e37a60221628722d40986e42a.tar.gz
packages_apps_Messaging-7b362f77cca4342e37a60221628722d40986e42a.tar.bz2
packages_apps_Messaging-7b362f77cca4342e37a60221628722d40986e42a.zip
Messaging: Add sysconfig whitelist xml
Change-Id: I2665ac3be3bb63daeaa0e5c109b73ca6152b95ce
-rw-r--r--Android.mk11
-rw-r--r--com.android.messaging_whitelist.xml19
2 files changed, 30 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 618a3ff..579caa8 100644
--- a/Android.mk
+++ b/Android.mk
@@ -74,6 +74,17 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_APPS)
LOCAL_COMPATIBILITY_SUITE := general-tests
+LOCAL_REQUIRED_MODULES += com.android.messaging_whitelist
+
include $(BUILD_PACKAGE)
+include $(CLEAR_VARS)
+LOCAL_MODULE := com.android.messaging_whitelist
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_ETC)/sysconfig
+LOCAL_PRODUCT_MODULE := true
+LOCAL_SRC_FILES := com.android.messaging_whitelist.xml
+include $(BUILD_PREBUILT)
+
include $(call all-makefiles-under, $(LOCAL_PATH))
diff --git a/com.android.messaging_whitelist.xml b/com.android.messaging_whitelist.xml
new file mode 100644
index 0000000..6bc77a8
--- /dev/null
+++ b/com.android.messaging_whitelist.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2019-2020 The LineageOS Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<config>
+ <allow-in-power-save package="com.android.messaging" />
+</config>