From 72e8028ad6caf80d6f9ce9f9136a9b3f838c3f27 Mon Sep 17 00:00:00 2001 From: mormegil Date: Sat, 31 Aug 2024 16:45:38 +0200 Subject: [PATCH] Update Nordic DFU library to fix Pinetime firmware upgrade on Android 14 Since we raised `targetSdkVersion` to 34 in fad092b6f8fc5187d863be1bb, attempt to upgrade Pinetime firmware on Android 14+ causes Gadgetbridge to die with "One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts" unhandled java.lang.SecurityException. This was caused by the Nordic Semi DFU library not supporting A14 until version 2.3.2 (see https://github.com/NordicSemiconductor/Android-DFU-Library/issues/412 and https://github.com/NordicSemiconductor/Android-DFU-Library/pull/413). So, upgraded the library to the current release 2.5.0. --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 15020757e..a2ed9cf6d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -227,7 +227,7 @@ dependencies { implementation 'com.google.android.flexbox:flexbox:3.0.0' implementation "com.google.code.gson:gson:2.11.0" - implementation "no.nordicsemi.android:dfu:1.12.0" + implementation "no.nordicsemi.android:dfu:2.5.0" implementation "com.github.tony19:logback-android:3.0.0" implementation "org.slf4j:slf4j-api:2.0.16" implementation "com.github.PhilJay:MPAndroidChart:3.1.0"