<?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>NRF Mesh Android Library, return device key even if provisioning fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/128367/nrf-mesh-android-library-return-device-key-even-if-provisioning-fails</link><description>We use the NRF Mesh Android Library (and are developing with iOS version as well). An issue that we are running into on a small number of devices is that the library things provisioning failed, but the device being provisioned thinks it succeeded. This</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 13 Jun 2026 10:18:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/128367/nrf-mesh-android-library-return-device-key-even-if-provisioning-fails" /><item><title>RE: NRF Mesh Android Library, return device key even if provisioning fails</title><link>https://devzone.nordicsemi.com/thread/567871?ContentTypeID=1</link><pubDate>Sat, 13 Jun 2026 10:18:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbf0be5f-7c64-4b39-937d-1e081ec69c2d</guid><dc:creator>lennyfrank</dc:creator><description>&lt;p&gt;If provisioning fails on the app side but succeeds on the device, is there any supported way to retrieve the device key afterward, or is the device effectively unrecoverable unless it has a separate reset mechanism? &lt;span style="color:#ffffff;"&gt;&lt;a style="color:#ffffff;" href="https://fnffree.io"&gt;FNF&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Mesh Android Library, return device key even if provisioning fails</title><link>https://devzone.nordicsemi.com/thread/567858?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2026 16:58:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7176bd4-900e-4593-96e3-2d0c2b79ec54</guid><dc:creator>jm_solar</dc:creator><description>&lt;p&gt;This is the android library link:&amp;nbsp;&lt;a id="" href="https://github.com/nordicsemi/Android-nRF-Mesh-Library"&gt;https://github.com/nordicsemi/Android-nRF-Mesh-Library&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And iOS:&amp;nbsp;&lt;a id="" href="https://github.com/nordicsemi/IOS-nRF-Mesh-Library"&gt;https://github.com/nordicsemi/IOS-nRF-Mesh-Library&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately for us our devices are installed in an non-accessible location that requires trained personnel to access. At the point where a trained person gets sent to retrieve the device they are just going to replace it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Our only option for an additional reset mechanism is something wireless due to this, which obviously has significant security implications compared to something with physical access.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;We have issued a patch for devices to detect this sort of incomplete provisioning and reset themselves, however we the devices in distribution won&amp;#39;t see this update until after successful install. We are also generally prefer to give ourselves as many options on the app side since it is much quicker to push changes, updates, etc. to users that way.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, network configuration is stored in a server with backups, not just locally on the users device and we&amp;#39;ve implemented syncing, locking, etc.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ultimately this is almost the Two Generals problem (except the device doesn&amp;#39;t need to know that the provisioner knows it is provisioned), ideally we would solve it with retries - but to do so we need the same key we used to try the first time.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF Mesh Android Library, return device key even if provisioning fails</title><link>https://devzone.nordicsemi.com/thread/567524?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2026 09:04:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37273692-3138-4e16-af8b-20047099daee</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In order to ensure we are talking about the same libraries, can you please refer to the nRF Mesh library you are using by link, and preferably also version? We can then consider adding the feature. I clearly do see the benefit in case of scenarios such as the one you describe.&lt;/p&gt;
&lt;p&gt;Regarding the devices you are provisioning, do they have any reset mechanism that can be triggered without connecting to them from a configuration device with the correct device key? Such as e.g. long press a button on the device, or some other action requiring physical access to it? Based on your inquiry I assume they do not. I therefore also assume you are properly taking backup of the network configuration database for recovering the devices in case the configuration device should get lost or damaged.&lt;/p&gt;
&lt;p&gt;In general, a requirement of knowing the device key for factory resetting the device may be risky in terms of device bricking. Please be vigilant, as given your inquiry I am sure you are, in mitigating this risk. Having a separate reset mechanism may of course also have security implications, and so may not always be feasible.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>