Android-DFU-Library icon indicating copy to clipboard operation
Android-DFU-Library copied to clipboard

Can I delete 'DfuBaseService'?

Open sieunju opened this issue 11 months ago • 3 comments

Target

Library

Describe the feature

Why?

  • The advantage of using the 'DfuBaseService' inherited service is that you can safely upload DFU. However, if you upload several DFUs at the same time, you have to add several of the relevant 'DfuBase Service' and declare it in 'Android Manifest'.

Solution

  • How about controlling DFU uploads to be processed within one class?

sieunju avatar Dec 17 '24 14:12 sieunju

Yes, true. This is a very old library, modern approach would be very different, with split for transport and logic, tests, etc. IntentService besides that is deprecated and it's the user that should decide how and where to run it, e.g. in WorkManager.

Anyway, you may cut the relevant part from the DfuBaseService and implement it as a method.

We have a (very) long plan to finish Version 2 of Kotlin BLE Library and rewrite DFU using it.

philips77 avatar Dec 17 '24 14:12 philips77

Aha, does the Version 2 of Kotlin BLE Library have a Device Firmware Update (DFU) feature?? 🙇‍♂️

@philips77

sieunju avatar Dec 18 '24 00:12 sieunju

No, it's lower layer. Handles GATT and GAP operations (connection, GATT, advertising) and allows peripheral emulation for test, kinds like CoreBluetooth Mock for iOS, but better. And it may be KMM at some point also.

The new DFU would be built on top of it as version 3 of DFU library.

philips77 avatar Dec 18 '24 08:12 philips77