You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
The compat library may be found on jcenter and Maven Central repository. Add it to your project by adding the following dependency:
8
8
9
9
```Groovy
10
-
compile 'no.nordicsemi.android:dfu:0.6.3'
10
+
compile 'no.nordicsemi.android:dfu:1.0.0'
11
11
```
12
12
13
13
If you use proguard, add the following line to your proguard rules:
@@ -44,12 +44,13 @@ The library is compatible with nRF51 and nRF52 devices with S-Series Soft Device
44
44
***SDK 7.0.0** - The extended init packet is required. The init packet contains additional validation information: device type and revision, application version, compatible Soft Devices and the firmware CRC.
45
45
***SDK 8.0.0** - The bond information may be preserved after an application update. The new application, when first started, will send the Service Change indication to the phone to refresh the services.
46
46
- Buttonless update support for bonded devices - sharing the LTK between an app and the bootloader.
47
+
***SDK 12.0.0** - New Secure DFU has been released. This library is fully backwards compatible so supports both the new and legacy DFU.
47
48
48
49
Check platform folders for mode details about compatibility for each library.
-[How to create init packet](https://github.com/NordicSemiconductor/Android-nRF-Connect/tree/master/init%20packet%20handling"Init packet handling")
54
55
-[nRF51 Development Kit (DK)](http://www.nordicsemi.com/eng/Products/nRF51-DK"nRF51 DK") (compatible with Arduino Uno Revision 3)
55
56
-[nRF52 Development Kit (DK)](http://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF52-DK"nRF52 DK") (compatible with Arduino Uno Revision 3)
Copy file name to clipboardExpand all lines: documentation/README.md
+50-51Lines changed: 50 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@ The DFU Library for Android 4.3+ adds the DFU feature to the Android project.
4
4
5
5
### Features:
6
6
7
-
* Allows to program Application, Soft Device and Bootloader Over-the-Air on the nRF51 Series SoC over Bluetooth Smart.
7
+
* DFU Library version 1.0.0+ supports **Secure DFU** introduced in SDK 12.0.0 and is fully backwards compatible with all versions of Legacy DFU.
8
+
* Allows to program Application, Soft Device and Bootloader Over-the-Air on the nRF5 Series SoC over Bluetooth Smart.
8
9
* Supports HEX or BIN files.
9
10
* Supports zip files with Soft Device, Bootloader and Application together.
10
11
* Supports the Init packet (which has been required since Bootloader/DFU from SDK 7.0+).
@@ -27,13 +28,13 @@ In case of any communication error the peripheral device will never be bricked.
27
28
***Android Studio IDE** or **Eclipse ADT**
28
29
29
30
Projects are compatible with Android Studio and the Gradle build engine. It is possible to convert them to Eclipse ADT projects. See Integration for more details.
30
-
***nRF51 device for testing.**
31
+
***nRF5 device for testing.**
31
32
32
-
A nRF51 Series device is required to test the working solution. If your final product is not available, use the nRF51 DK, which you can find [here](http://www.nordicsemi.com/eng/Products/nRF51-DK"nRF51 DK").
33
+
A nRF5 Series device is required to test the working solution. If your final product is not available, use the nRF51 DK, which you can find [here](http://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF52-DK"nRF52 DK").
33
34
34
35
### Integration
35
36
36
-
The DFULibrary is compatible as such with Android Studio 1.0.2 IDE. If you are using Eclipse ADT, you will have to convert the project to match the Eclipse project structure.
37
+
The DFULibrary is compatible as such with Android Studio IDE. If you are using Eclipse ADT, you will have to convert the project to match the Eclipse project structure.
37
38
38
39
#### Android Studio
39
40
@@ -103,19 +104,19 @@ import android.os.Bundle;
103
104
publicclassNotificationActivityextendsActivity {
104
105
@Override
105
106
protectedvoidonCreate(BundlesavedInstanceState) {
106
-
super.onCreate(savedInstanceState);
107
-
108
-
// If this activity is the root activity of the task, the app is not running
Please, see [How to create init packet](https://github.com/NordicSemiconductor/nRF-Master-Control-Panel/tree/master/init%20packet%20handling"Init packet handling") document for more information about the init packet.
142
+
Please, see [How to create init packet](https://github.com/NordicSemiconductor/Android-nRF-Connect/tree/master/init%20packet%20handling"Init packet handling") document for more information about the init packet.
147
143
148
144
The service will send local broadcast events using **LocalBroadcastManager**.
<li><ahref="no/nordicsemi/android/dfu/ApplicationTest.html" title="class in no.nordicsemi.android.dfu" target="classFrame">ApplicationTest</a></li>
16
15
<li><ahref="no/nordicsemi/android/dfu/internal/ArchiveInputStream.html" title="class in no.nordicsemi.android.dfu.internal" target="classFrame">ArchiveInputStream</a></li>
17
16
<li><ahref="no/nordicsemi/android/dfu/internal/scanner/BootloaderScanner.html" title="interface in no.nordicsemi.android.dfu.internal.scanner" target="classFrame"><spanclass="interfaceName">BootloaderScanner</span></a></li>
18
17
<li><ahref="no/nordicsemi/android/dfu/internal/scanner/BootloaderScannerFactory.html" title="class in no.nordicsemi.android.dfu.internal.scanner" target="classFrame">BootloaderScannerFactory</a></li>
<li><ahref="no/nordicsemi/android/dfu/internal/exception/HexFileValidationException.html" title="class in no.nordicsemi.android.dfu.internal.exception" target="classFrame">HexFileValidationException</a></li>
34
33
<li><ahref="no/nordicsemi/android/dfu/internal/HexInputStream.html" title="class in no.nordicsemi.android.dfu.internal" target="classFrame">HexInputStream</a></li>
35
34
<li><ahref="no/nordicsemi/android/dfu/internal/manifest/InitPacketData.html" title="class in no.nordicsemi.android.dfu.internal.manifest" target="classFrame">InitPacketData</a></li>
35
+
<li><ahref="no/nordicsemi/android/error/LegacyDfuError.html" title="class in no.nordicsemi.android.error" target="classFrame">LegacyDfuError</a></li>
36
36
<li><ahref="no/nordicsemi/android/dfu/internal/manifest/Manifest.html" title="class in no.nordicsemi.android.dfu.internal.manifest" target="classFrame">Manifest</a></li>
37
37
<li><ahref="no/nordicsemi/android/dfu/internal/manifest/ManifestFile.html" title="class in no.nordicsemi.android.dfu.internal.manifest" target="classFrame">ManifestFile</a></li>
38
38
<li><ahref="no/nordicsemi/android/dfu/R.html" title="class in no.nordicsemi.android.dfu" target="classFrame">R</a></li>
39
39
<li><ahref="no/nordicsemi/android/dfu/R.attr.html" title="class in no.nordicsemi.android.dfu" target="classFrame">R.attr</a></li>
40
40
<li><ahref="no/nordicsemi/android/dfu/R.drawable.html" title="class in no.nordicsemi.android.dfu" target="classFrame">R.drawable</a></li>
41
41
<li><ahref="no/nordicsemi/android/dfu/R.string.html" title="class in no.nordicsemi.android.dfu" target="classFrame">R.string</a></li>
42
42
<li><ahref="no/nordicsemi/android/dfu/internal/exception/RemoteDfuException.html" title="class in no.nordicsemi.android.dfu.internal.exception" target="classFrame">RemoteDfuException</a></li>
43
+
<li><ahref="no/nordicsemi/android/error/SecureDfuError.html" title="class in no.nordicsemi.android.error" target="classFrame">SecureDfuError</a></li>
43
44
<li><ahref="no/nordicsemi/android/dfu/internal/exception/SizeValidationException.html" title="class in no.nordicsemi.android.dfu.internal.exception" target="classFrame">SizeValidationException</a></li>
44
45
<li><ahref="no/nordicsemi/android/dfu/internal/manifest/SoftDeviceBootloaderFileInfo.html" title="class in no.nordicsemi.android.dfu.internal.manifest" target="classFrame">SoftDeviceBootloaderFileInfo</a></li>
45
46
<li><ahref="no/nordicsemi/android/dfu/internal/exception/UnknownResponseException.html" title="class in no.nordicsemi.android.dfu.internal.exception" target="classFrame">UnknownResponseException</a></li>
<li><ahref="no/nordicsemi/android/dfu/ApplicationTest.html" title="class in no.nordicsemi.android.dfu">ApplicationTest</a></li>
16
15
<li><ahref="no/nordicsemi/android/dfu/internal/ArchiveInputStream.html" title="class in no.nordicsemi.android.dfu.internal">ArchiveInputStream</a></li>
17
16
<li><ahref="no/nordicsemi/android/dfu/internal/scanner/BootloaderScanner.html" title="interface in no.nordicsemi.android.dfu.internal.scanner"><spanclass="interfaceName">BootloaderScanner</span></a></li>
18
17
<li><ahref="no/nordicsemi/android/dfu/internal/scanner/BootloaderScannerFactory.html" title="class in no.nordicsemi.android.dfu.internal.scanner">BootloaderScannerFactory</a></li>
<li><ahref="no/nordicsemi/android/dfu/internal/exception/HexFileValidationException.html" title="class in no.nordicsemi.android.dfu.internal.exception">HexFileValidationException</a></li>
34
33
<li><ahref="no/nordicsemi/android/dfu/internal/HexInputStream.html" title="class in no.nordicsemi.android.dfu.internal">HexInputStream</a></li>
35
34
<li><ahref="no/nordicsemi/android/dfu/internal/manifest/InitPacketData.html" title="class in no.nordicsemi.android.dfu.internal.manifest">InitPacketData</a></li>
35
+
<li><ahref="no/nordicsemi/android/error/LegacyDfuError.html" title="class in no.nordicsemi.android.error">LegacyDfuError</a></li>
36
36
<li><ahref="no/nordicsemi/android/dfu/internal/manifest/Manifest.html" title="class in no.nordicsemi.android.dfu.internal.manifest">Manifest</a></li>
37
37
<li><ahref="no/nordicsemi/android/dfu/internal/manifest/ManifestFile.html" title="class in no.nordicsemi.android.dfu.internal.manifest">ManifestFile</a></li>
38
38
<li><ahref="no/nordicsemi/android/dfu/R.html" title="class in no.nordicsemi.android.dfu">R</a></li>
39
39
<li><ahref="no/nordicsemi/android/dfu/R.attr.html" title="class in no.nordicsemi.android.dfu">R.attr</a></li>
40
40
<li><ahref="no/nordicsemi/android/dfu/R.drawable.html" title="class in no.nordicsemi.android.dfu">R.drawable</a></li>
41
41
<li><ahref="no/nordicsemi/android/dfu/R.string.html" title="class in no.nordicsemi.android.dfu">R.string</a></li>
42
42
<li><ahref="no/nordicsemi/android/dfu/internal/exception/RemoteDfuException.html" title="class in no.nordicsemi.android.dfu.internal.exception">RemoteDfuException</a></li>
43
+
<li><ahref="no/nordicsemi/android/error/SecureDfuError.html" title="class in no.nordicsemi.android.error">SecureDfuError</a></li>
43
44
<li><ahref="no/nordicsemi/android/dfu/internal/exception/SizeValidationException.html" title="class in no.nordicsemi.android.dfu.internal.exception">SizeValidationException</a></li>
44
45
<li><ahref="no/nordicsemi/android/dfu/internal/manifest/SoftDeviceBootloaderFileInfo.html" title="class in no.nordicsemi.android.dfu.internal.manifest">SoftDeviceBootloaderFileInfo</a></li>
45
46
<li><ahref="no/nordicsemi/android/dfu/internal/exception/UnknownResponseException.html" title="class in no.nordicsemi.android.dfu.internal.exception">UnknownResponseException</a></li>
0 commit comments