<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Issue with nRF DFU App (v2.7.0) on Android 11 and 14: DFU Update Fails Due to Missing Location Permission?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116277/issue-with-nrf-dfu-app-v2-7-0-on-android-11-and-14-dfu-update-fails-due-to-missing-location-permission</link><description>Hi All 
 
 I am experiencing an issue with the nRF DFU app (v2.7.0) on devices running both Android 11 and Android 14. The issue occurs when I attempt to perform a DFU update via Bluetooth LE. - Upon starting the BLE scan in nRF DFU, I see the message</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Nov 2024 10:46:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116277/issue-with-nrf-dfu-app-v2-7-0-on-android-11-and-14-dfu-update-fails-due-to-missing-location-permission" /><item><title>RE: Issue with nRF DFU App (v2.7.0) on Android 11 and 14: DFU Update Fails Due to Missing Location Permission?</title><link>https://devzone.nordicsemi.com/thread/510651?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2024 10:46:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83f88f57-c29d-42f5-9d2b-6409f0360fcb</guid><dc:creator>cristian.anceschi</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;Thank you very much for your support.&lt;/p&gt;
&lt;p&gt;With the nRF DFU app settings left at their default values, the process ends with the error shown in the attached screenshot. The corresponding log file is also attached.&lt;/p&gt;
&lt;p&gt;Following your suggestions, I enabled the packet receipt notification in the nRF DFU application and set the value to 6. This has definitively resolved the flashing issue.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Cristian&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1731667499572v1.jpeg" alt=" " /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Log-2024_2D00_11_2D00_14-09_5F00_54_5F00_54.txt"&gt;devzone.nordicsemi.com/.../Log-2024_2D00_11_2D00_14-09_5F00_54_5F00_54.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with nRF DFU App (v2.7.0) on Android 11 and 14: DFU Update Fails Due to Missing Location Permission?</title><link>https://devzone.nordicsemi.com/thread/510409?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 08:13:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0b57dcd-2396-4822-b1c4-1e8333af3090</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In nRF DFU app we&amp;#39;re using &amp;quot;neverForLocation&amp;quot; flag (&lt;a href="https://developer.android.com/develop/connectivity/bluetooth/bt-permissions#assert-never-for-location"&gt;https://developer.android.com/develop/connectivity/bluetooth/bt-permissions#assert-never-for-location&lt;/a&gt;) when requesting for Bluetooth Scan permission. This&amp;nbsp;means that the app doesn&amp;#39;t need location permission but also doesn&amp;#39;t get iBeacons and Eddystone (and perhaps other) beacons in scan results.&amp;nbsp;&lt;/p&gt;
[quote userid="65729" url="~/f/nordic-q-a/116277/issue-with-nrf-dfu-app-v2-7-0-on-android-11-and-14-dfu-update-fails-due-to-missing-location-permission"]In nRF Connect, the app explicitly requests Location permissions, and the DFU update completes successfully without any issues.[/quote]
&lt;p&gt;In nRF Connect we actually do want to scan for any Bluetooth LE device, including beacons, therefore we are requesting for location.&lt;/p&gt;
[quote userid="65729" url="~/f/nordic-q-a/116277/issue-with-nrf-dfu-app-v2-7-0-on-android-11-and-14-dfu-update-fails-due-to-missing-location-permission"]When I perform the same DFU update using nRF Connect, the process works correctly.[/quote]
&lt;p&gt;The current version of nRF Connect is using a bit older version of DFU library than the nRF DFU app. I&amp;#39;m actually working now on integrating the latest version into the app.&lt;/p&gt;
&lt;p&gt;Answering your question, nRF DFU app should work with any DFU from nRF5 SDK from 4.3 up until 17.1. Indeed, we introduced some speed optimizations in the latest version, which may cause your device to respond with an error due to too slow flash save operations on the device.&amp;nbsp;Could you clarify what error are you getting here: &amp;quot;&lt;span&gt;it shows a generic error message&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Possible solutions:&lt;br /&gt;1. In nRF DFU app tap the Settings icon and enable Packet Receipt Notification and set the value to 6. This should fix the flash problem.&lt;br /&gt;2. Before doing DFU install &lt;a href="https://play.google.com/store/apps/details?id=no.nordicsemi.android.log" rel="noopener noreferrer" target="_blank"&gt;nRF Logger app&lt;/a&gt;. Then, when your upload fails, tap the log icon (magnifying glass) in the top-right corner, to see the logs. Please share them here.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with nRF DFU App (v2.7.0) on Android 11 and 14: DFU Update Fails Due to Missing Location Permission?</title><link>https://devzone.nordicsemi.com/thread/510403?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2024 07:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec851012-d197-45b7-89d2-dfc93f60ebd1</guid><dc:creator>cristian.anceschi</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;In the nRF DFU app, rel. 2.07, there are no explicit error messages related to the lack of location access. Once the DFU process is started, the update procedure either gets stuck, causing the app to freeze, or it shows a generic error message and the device being updated resets.&lt;/p&gt;
&lt;p&gt;The conclusion, possibly incorrect, comes from a comparison between versions 2.07 and 2.04. During installation, version 2.04 requests permission to access the mobile device&amp;rsquo;s location. Once this permission is granted, the app functions normally, and the DFU operation completes successfully. However, if you go to the settings of the nRF DFU app and deny location access, version 2.04 exhibits the same faulty behavior as version 2.07, meaning the DFU process can no longer be completed.&lt;/p&gt;
&lt;p&gt;That said, there is no issue on our end with switching to the nRF Connect app instead of using the nRF DFU app.&lt;/p&gt;
&lt;p&gt;Thanks and kind regards&lt;/p&gt;
&lt;p&gt;Cristian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with nRF DFU App (v2.7.0) on Android 11 and 14: DFU Update Fails Due to Missing Location Permission?</title><link>https://devzone.nordicsemi.com/thread/510372?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 20:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cddb9045-4962-47e6-8554-b96e4c1c844a</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are there any error messages or logs indicating the issue? How did you conclude that location access is causing trouble with DFU? I&amp;#39;m not sure what might be causing the issue,&amp;nbsp;I mostly need to ask this internally.&lt;/p&gt;
[quote user="cristian.anceschi"]Do you see any contraindications to having them use the latest version of the nRF Connect mobile application?[/quote]
&lt;p&gt;AFAIK, using nRF connect mbile application should be fine, &lt;a href="https://github.com/NordicSemiconductor/Android-nRF-Connect?tab=readme-ov-file#:~:text=nRF%20Connect%20supports%20the%20following%20DFU%20proptocols"&gt;See here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with nRF DFU App (v2.7.0) on Android 11 and 14: DFU Update Fails Due to Missing Location Permission?</title><link>https://devzone.nordicsemi.com/thread/510247?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2024 09:18:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:700c5ae1-fc99-4e84-8ab8-bc2c059cc6ec</guid><dc:creator>cristian.anceschi</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Abhijith&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your response.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The current project was developed on SDK 17.0.2. No problems with using the nRF Connect mobile application to perform a DFU.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;However, we have at some customers, some products developed on the outdated SDK 8, where there was no secure bootloader.&lt;/p&gt;
&lt;p&gt;Do you see any contraindications to having them use the latest version of the nRF Connect mobile application?&lt;/p&gt;
&lt;p&gt;Thanks and kind regards&lt;/p&gt;
&lt;p&gt;Cristian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue with nRF DFU App (v2.7.0) on Android 11 and 14: DFU Update Fails Due to Missing Location Permission?</title><link>https://devzone.nordicsemi.com/thread/510072?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2024 10:51:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2bf29d9-1c0e-422d-a52e-137f9962a45b</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The nRF DFU mobile app is not recommended to use in the nRF Connect SDK; this mobile application is only fit for updating the nRF5 SDK-based application, which uses secure bootloader.&lt;/p&gt;
&lt;p&gt;Are you working with the old SDK? If so, please let me know. If not, I recommend you use the nRF Connect mobile application or the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-Device-Manager"&gt;nRF device manager app&lt;/a&gt; for doing a DFU.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>