aboutsummaryrefslogtreecommitdiff
path: root/pocketmode/AndroidManifest.xml
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2019-05-10 21:25:31 +0200
committerDavide Garberi <dade.garberi@gmail.com>2019-05-10 23:26:10 +0200
commitc3d328b6be521feff20f9d10f755716d4d639cc7 (patch)
treee4ff8fa2805d9349181c7cdf976f2ed5f3e01e77 /pocketmode/AndroidManifest.xml
parente95cf897590b5ab6b25ac286e8baf6eaec9dd297 (diff)
msm8996-common: pocketmode: Allow control over PocketMode service
* Once the service is running, proximity sensor is constantly active when the display is turned off, resulting into a residual increase in battery consumption. Add a toggle so that users can decide whether they accept that and prefer to prevent accidental wake-ups triggered by the fingerprint sensor. * Keep the receiver that listens for the screen status registered only if the fingerprint wake-up feature is enabled at the same time as the accidental wake-up prevention feature. * Set PocketMode as a required module of ConfigPanel, to make sure it is only shipped on devices building the latter. * The configpanel part is integrated in b07a633bdeda835867aa3dc5a033529d7bd712dc Change-Id: Icfa23d2aef971e368476b6f1f7612493c2b69a20
Diffstat (limited to 'pocketmode/AndroidManifest.xml')
-rw-r--r--pocketmode/AndroidManifest.xml38
1 files changed, 27 insertions, 11 deletions
diff --git a/pocketmode/AndroidManifest.xml b/pocketmode/AndroidManifest.xml
index e462eb2..fe9e42f 100644
--- a/pocketmode/AndroidManifest.xml
+++ b/pocketmode/AndroidManifest.xml
@@ -1,29 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2016 The CyanogenMod Project
+ Copyright (C) 2017-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.
+-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.lineageos.pocketmode"
android:versionCode="1"
- android:versionName="1.1"
+ android:versionName="1.2"
android:sharedUserId="android.uid.system">
- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
+ <uses-permission android:name="lineageos.permission.HARDWARE_ABSTRACTION_ACCESS" />
<uses-sdk
- android:minSdkVersion="27"
- android:targetSdkVersion="27"/>
+ android:minSdkVersion="27" />
<application
android:label="ZukPocketMode"
- android:persistent="true">
+ android:persistent="true"
+ android:defaultToDeviceProtectedStorage="true"
+ android:directBootAware="true">
- <receiver android:name="org.lineageos.pocketmode.BootCompletedReceiver">
- <intent-filter>
- <action android:name="android.intent.action.BOOT_COMPLETED" />
- <category android:name="android.intent.category.DEFAULT" />
+ <receiver android:name=".Startup" >
+ <intent-filter android:priority="99" >
+ <action android:name="lineageos.intent.action.INITIALIZE_LINEAGE_HARDWARE" />
</intent-filter>
</receiver>
- <service android:name="org.lineageos.pocketmode.PocketModeService"
- android:permission="ZukPocketModeService">
+ <service android:name=".PocketModeService"
+ android:permission="PocketModeService">
</service>
<activity android:name="PocketMode"