aboutsummaryrefslogtreecommitdiff
path: root/pocketmode
diff options
context:
space:
mode:
authordianlujitao <dianlujitao@lineageos.org>2020-11-24 15:23:26 +0800
committerDavide Garberi <dade.garberi@gmail.com>2021-10-19 15:09:38 +0200
commitf09849b77f63f5ba62593c15cc8bb9644299207f (patch)
tree238785d37dcc1b050d1a638c544131c66188eff2 /pocketmode
parent575bf91c34ec5c3b42af6cc5451ad870e2fd4408 (diff)
msm8996-common: Add pocketmode to doze whitelist
Change-Id: I4b9f2267cfd6fe95d08ea0eb6f7415ba5d81c1b1
Diffstat (limited to 'pocketmode')
-rw-r--r--pocketmode/Android.mk10
-rw-r--r--pocketmode/pocketmode_whitelist.xml19
2 files changed, 29 insertions, 0 deletions
diff --git a/pocketmode/Android.mk b/pocketmode/Android.mk
index d340f03..80b0048 100644
--- a/pocketmode/Android.mk
+++ b/pocketmode/Android.mk
@@ -10,7 +10,17 @@ LOCAL_CERTIFICATE := platform
LOCAL_PRIVATE_PLATFORM_APIS := true
LOCAL_PRIVILEGED_MODULE := true
LOCAL_PRODUCT_MODULE := true
+LOCAL_REQUIRED_MODULES := pocketmode_whitelist.xml
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_PACKAGE)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := pocketmode_whitelist.xml
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_ETC)/sysconfig
+LOCAL_PRODUCT_MODULE := true
+LOCAL_SRC_FILES := $(LOCAL_MODULE)
+include $(BUILD_PREBUILT)
diff --git a/pocketmode/pocketmode_whitelist.xml b/pocketmode/pocketmode_whitelist.xml
new file mode 100644
index 0000000..cff2f84
--- /dev/null
+++ b/pocketmode/pocketmode_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="org.lineageos.pocketmode" />
+</config>