summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2020-05-06 22:03:30 +0300
committerMichael Bestas <mkbestas@lineageos.org>2020-12-08 19:39:11 +0200
commit8dd096c4cfb647960be1695a57246727878b8c8d (patch)
tree61db5f47142944d19e051357885264223e2806db
parenta62e7790816bbc2b0d8f58adae849266b35de5eb (diff)
DeskClock: Add sysconfig whitelist xml
Change-Id: I726064ca8112926631e77a399c5066a9a8de294e
-rw-r--r--Android.bp11
-rw-r--r--com.android.deskclock_whitelist.xml19
2 files changed, 30 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index ec6d1feb2..2d27ae94a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -26,4 +26,15 @@ android_app {
"androidx.gridlayout_gridlayout",
"androidx.recyclerview_recyclerview",
],
+ required: [
+ "com.android.deskclock_whitelist"
+ ],
+}
+
+prebuilt_etc {
+ name: "com.android.deskclock_whitelist",
+ product_specific: true,
+ sub_dir: "sysconfig",
+ src: "com.android.deskclock_whitelist.xml",
+ filename_from_src: true,
}
diff --git a/com.android.deskclock_whitelist.xml b/com.android.deskclock_whitelist.xml
new file mode 100644
index 000000000..da2015f55
--- /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>