From 1c3389efa0b1eba77dc57c6edc45da290db5a54e Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Sat, 8 Jul 2023 00:29:09 +0200 Subject: [PATCH] Do not listen for PACKAGE_REPLACED broadcasts We already listen for MY_PACKAGE_REPLACED which is sent since API 12 --- AndroidManifest.xml | 8 -------- src/org/kde/kdeconnect/KdeConnectBroadcastReceiver.java | 8 -------- 2 files changed, 16 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 1c88c48a..97d156aa 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -138,14 +138,6 @@ SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted - - - - - diff --git a/src/org/kde/kdeconnect/KdeConnectBroadcastReceiver.java b/src/org/kde/kdeconnect/KdeConnectBroadcastReceiver.java index b0b4a239..b2278c0f 100644 --- a/src/org/kde/kdeconnect/KdeConnectBroadcastReceiver.java +++ b/src/org/kde/kdeconnect/KdeConnectBroadcastReceiver.java @@ -26,14 +26,6 @@ public class KdeConnectBroadcastReceiver extends BroadcastReceiver { Log.i("KdeConnect", "MyUpdateReceiver"); BackgroundService.Start(context); break; - case Intent.ACTION_PACKAGE_REPLACED: - Log.i("KdeConnect", "UpdateReceiver"); - if (!intent.getData().getSchemeSpecificPart().equals(context.getPackageName())) { - Log.i("KdeConnect", "Ignoring, it's not me!"); - return; - } - BackgroundService.Start(context); - break; case Intent.ACTION_BOOT_COMPLETED: Log.i("KdeConnect", "KdeConnectBroadcastReceiver"); BackgroundService.Start(context);