NordicSemiconductor / Android-DFU-Library

Device Firmware Update library and Android app
http://www.nordicsemi.com/dfu
BSD 3-Clause "New" or "Revised" License
763 stars 269 forks source link

Android 14 - Permission FOREGROUND_SERVICE_CONNECTED_DEVICE requires video for play store #424

Closed juliansteenbakker closed 10 months ago

juliansteenbakker commented 10 months ago

https://github.com/NordicSemiconductor/Android-DFU-Library/blame/d5708d2c36ba6410f1212648c10ff99f28aa61d7/profile/main/src/main/AndroidManifest.xml#L37

image

When updating my app, i am now being asked to upload a video showing why i need this permission. I was wondering if this permission is required for DFU, since the service is not exported.

philips77 commented 10 months ago

If you want to run te DFU service as a foreground service, then I believe yes. You may also follow https://github.com/NordicSemiconductor/Android-DFU-Library/issues/423#issuecomment-1845251018 and the service will run in background. This only matters if your app allows the DFU to run when app is not visible for longer than 5 minutes (?). If not, just disable it and remove the permission, together with FOREGROUND_SERVICE one.