config: Add Deskclock to power whitelist

* Seems sometimes alarm cannot ring because of doze.

Change-Id: I3a35d2f02de365ea1d3a99ea75e0db9905d482a3
This commit is contained in:
Han Wang 2019-01-06 06:53:03 +01:00 committed by Bruno Martins
parent 9b4b5fa403
commit bf74b7f3d7
2 changed files with 23 additions and 0 deletions

View file

@ -95,6 +95,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
vendor/lineage/config/permissions/lineage-hiddenapi-package-whitelist.xml:system/etc/permissions/lineage-hiddenapi-package-whitelist.xml
# Power whitelist
PRODUCT_COPY_FILES += \
vendor/lineage/config/permissions/lineage-power-whitelist.xml:system/etc/sysconfig/lineage-power-whitelist.xml
# Include Lineage audio files
include vendor/lineage/config/lineage_audio.mk

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 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>