aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2020-12-17 17:55:29 +0000
committerDavide Garberi <dade.garberi@gmail.com>2021-10-19 15:09:38 +0200
commita6eaffdcda037bba0505ddb1ed58459a8a039677 (patch)
treed189a60f226ce15d4b6050f5acd9055e6207a05d
parentc36125cb56011a3794dab9fd372e30dc82d9fd6c (diff)
msm8996-common: Init ConfigPanel and PocketMode as soon as possible
It was recently noticed that waiting for BOOT_COMPLETED intent action is not enough to make sure that stuff is properly initialized before the user opens additional buttons settings. Address such issue by registering to INITIALIZE_LINEAGE_HARDWARE intent action as well, but keep listening to BOOT_COMPLETED action just in case the SDK is not present or not brought up. Change-Id: I55719348b1451d8817b202d343bd2fa3c0b346c1
-rw-r--r--configpanel/AndroidManifest.xml4
-rw-r--r--pocketmode/AndroidManifest.xml4
2 files changed, 6 insertions, 2 deletions
diff --git a/configpanel/AndroidManifest.xml b/configpanel/AndroidManifest.xml
index 2ed9338..a681732 100644
--- a/configpanel/AndroidManifest.xml
+++ b/configpanel/AndroidManifest.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2016 The CyanogenMod Project
- Copyright (C) 2017-2019 The LineageOS Project
+ Copyright (C) 2017-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.
@@ -24,6 +24,7 @@
<protected-broadcast android:name="org.lineageos.settings.device.CUST_UPDATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
+ <uses-permission android:name="lineageos.permission.HARDWARE_ABSTRACTION_ACCESS" />
<uses-sdk
android:minSdkVersion="27" />
@@ -59,6 +60,7 @@
<receiver android:name=".BootCompletedReceiver" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
+ <action android:name="lineageos.intent.action.INITIALIZE_LINEAGE_HARDWARE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
diff --git a/pocketmode/AndroidManifest.xml b/pocketmode/AndroidManifest.xml
index 90150ef..60f75ad 100644
--- a/pocketmode/AndroidManifest.xml
+++ b/pocketmode/AndroidManifest.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2016 The CyanogenMod Project
- Copyright (C) 2017-2019 The LineageOS Project
+ Copyright (C) 2017-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.
@@ -22,6 +22,7 @@
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" />
@@ -35,6 +36,7 @@
<receiver android:name=".BootCompletedReceiver" >
<intent-filter android:priority="99" >
<action android:name="android.intent.action.BOOT_COMPLETED" />
+ <action android:name="lineageos.intent.action.INITIALIZE_LINEAGE_HARDWARE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>