DeskClock: Add sysconfig whitelist xml

Issue: FP2P-589
Change-Id: I726064ca8112926631e77a399c5066a9a8de294e
(adapted from https://github.com/LineageOS/android_packages_apps_DeskClock/commit/f0471fdc1cf8710747d22b63c2bd1508cdefad0c)
diff --git a/Android.mk b/Android.mk
index 851ea44..c5f3744 100644
--- a/Android.mk
+++ b/Android.mk
@@ -27,4 +27,15 @@
 
 LOCAL_USE_AAPT2 := true
 
+LOCAL_REQUIRED_MODULES += \
+        com.android.deskclock_whitelist.xml
+
 include $(BUILD_PACKAGE)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := com.android.deskclock_whitelist.xml
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/sysconfig
+LOCAL_SRC_FILES := $(LOCAL_MODULE)
+include $(BUILD_PREBUILT)
diff --git a/com.android.deskclock_whitelist.xml b/com.android.deskclock_whitelist.xml
new file mode 100644
index 0000000..da2015f
--- /dev/null
+++ b/com.android.deskclock_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.deskclock" />
+</config>