Messaging: Add sysconfig allowlist xml

Change-Id: I2665ac3be3bb63daeaa0e5c109b73ca6152b95ce
diff --git a/Android.bp b/Android.bp
index 5394330..9982616 100644
--- a/Android.bp
+++ b/Android.bp
@@ -89,6 +89,7 @@
     required: [
         "libframesequence",
         "libgiftranscode",
+        "com.android.messaging.allowlist",
     ],
     optimize: {
         obfuscate: true,
@@ -100,3 +101,11 @@
 
     product_specific: true,
 }
+
+prebuilt_etc {
+    name: "com.android.messaging.allowlist",
+    product_specific: true,
+    sub_dir: "sysconfig",
+    src: "com.android.messaging.allowlist.xml",
+    filename_from_src: true,
+}
diff --git a/com.android.messaging.allowlist.xml b/com.android.messaging.allowlist.xml
new file mode 100644
index 0000000..6bc77a8
--- /dev/null
+++ b/com.android.messaging.allowlist.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>