From b0803432d865fa051bbb26f9c3005516336f4f25 Mon Sep 17 00:00:00 2001 From: Peter Serwylo Date: Thu, 20 Apr 2017 14:02:01 +1000 Subject: [PATCH] Ensure PendingIntents use explicit Intents. The only pending intents that were not explicit were the four from the NotificationHelper class. These now explicitly specify the NotificationBroadcastReceiver as their destination, which is not exported. That then forwards the intents onto relevant methods of AppUpdateStatusManager. --- app/src/main/AndroidManifest.xml | 6 +++ .../java/org/fdroid/fdroid/FDroidApp.java | 2 +- .../fdroid/NotificationBroadcastReceiver.java | 38 +++++++++++++++ .../org/fdroid/fdroid/NotificationHelper.java | 46 ++++--------------- 4 files changed, 54 insertions(+), 38 deletions(-) create mode 100644 app/src/main/java/org/fdroid/fdroid/NotificationBroadcastReceiver.java diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index d9ed11d1f..1385e1827 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -229,6 +229,7 @@ + @@ -238,12 +239,17 @@ + + + + +