KeyHandler: Remove BootCompletedReceiver
No longer needed. Change-Id: Ib6d7388dc61b3c807710c77339a8bab0256fbaf4
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:sharedUserId="android.uid.system"
|
android:sharedUserId="android.uid.system"
|
||||||
package="org.lineageos.settings.device">
|
package="org.lineageos.settings.device">
|
||||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
|
||||||
<uses-permission android:name="android.permission.VIBRATE" />
|
<uses-permission android:name="android.permission.VIBRATE" />
|
||||||
|
|
||||||
<application
|
<application
|
||||||
@@ -27,15 +26,6 @@
|
|||||||
android:defaultToDeviceProtectedStorage="true"
|
android:defaultToDeviceProtectedStorage="true"
|
||||||
android:directBootAware="true">
|
android:directBootAware="true">
|
||||||
|
|
||||||
<receiver
|
|
||||||
android:name="org.lineageos.settings.device.BootCompletedReceiver"
|
|
||||||
android:exported="false">
|
|
||||||
<intent-filter>
|
|
||||||
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
|
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
|
||||||
</intent-filter>
|
|
||||||
</receiver>
|
|
||||||
|
|
||||||
<provider
|
<provider
|
||||||
android:name=".ConfigPanelSearchIndexablesProvider"
|
android:name=".ConfigPanelSearchIndexablesProvider"
|
||||||
android:authorities="org.lineageos.settings.device"
|
android:authorities="org.lineageos.settings.device"
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (C) 2021 The LineageOS Project
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.lineageos.settings.device
|
|
||||||
|
|
||||||
import android.content.BroadcastReceiver
|
|
||||||
import android.content.Context
|
|
||||||
import android.content.Intent
|
|
||||||
import android.util.Log
|
|
||||||
|
|
||||||
class BootCompletedReceiver : BroadcastReceiver() {
|
|
||||||
override fun onReceive(context: Context, intent: Intent) {
|
|
||||||
Log.d(TAG, "Starting")
|
|
||||||
context.startService(Intent(context, KeyHandler::class.java))
|
|
||||||
}
|
|
||||||
|
|
||||||
companion object {
|
|
||||||
private const val TAG = "KeyHandler"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user