diff options
Diffstat (limited to 'pocketmode')
-rw-r--r-- | pocketmode/Android.mk | 10 | ||||
-rw-r--r-- | pocketmode/pocketmode_whitelist.xml | 19 |
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> |