From a08581af05c3ad698a77d56320526e5abf5162dc Mon Sep 17 00:00:00 2001 From: Katharine Chui Date: Fri, 27 May 2022 21:42:21 +0800 Subject: [PATCH] allow deskclock to run in the background https://github.com/LineageOS/android_packages_apps_DeskClock/commit/8dd096c4cfb647960be1695a57246727878b8c8d --- base.mk | 4 ++++ files/com.android.deskclock_whitelist.xml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 files/com.android.deskclock_whitelist.xml diff --git a/base.mk b/base.mk index 8af2429..50cfa4f 100644 --- a/base.mk +++ b/base.mk @@ -232,3 +232,7 @@ PRODUCT_COPY_FILES += \ frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:system/etc/a2dp_audio_policy_configuration.xml \ include build/make/target/product/gsi_release.mk + +# Protect deskclock from power save +PRODUCT_COPY_FILES += \ + device/phh/treble/files/com.android.deskclock_whitelist.xml:system/etc/sysconfig/com.android.deskclock_whitelist.xml diff --git a/files/com.android.deskclock_whitelist.xml b/files/com.android.deskclock_whitelist.xml new file mode 100644 index 0000000..da2015f --- /dev/null +++ b/files/com.android.deskclock_whitelist.xml @@ -0,0 +1,19 @@ + + + + +