<?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>Android pairing without bonding - nRF Connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43338/android-pairing-without-bonding---nrf-connect</link><description>Hi, 
 Are there any known Android bugs where Android should not bond, but does? I have tried searching the web without too much success. 
 My central device is an older Android phone, Nexus 6, running Android 7.1.1. Using nRF Connect. With that said,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Feb 2019 14:29:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43338/android-pairing-without-bonding---nrf-connect" /><item><title>RE: Android pairing without bonding - nRF Connect</title><link>https://devzone.nordicsemi.com/thread/172332?ContentTypeID=1</link><pubDate>Thu, 21 Feb 2019 14:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:397cd907-dbb0-45d7-ae97-6e910741a511</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;At least the Android device is behaving consistenly. I reached out to our App developer and this is his response&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&amp;quot;I don’t know if only pairing is supported on Android. This for sure can’t be triggered from Android. Perhaps it just assumes that if it’s paired, it should also start encryption.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android pairing without bonding - nRF Connect</title><link>https://devzone.nordicsemi.com/thread/170986?ContentTypeID=1</link><pubDate>Wed, 13 Feb 2019 21:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8193d36d-9643-464b-9486-a5d46ff55687</guid><dc:creator>Mateusz</dc:creator><description>&lt;p&gt;Out of curiosity, I also tried pairing with NXP&amp;#39;s&amp;nbsp;KW41Z and got the same result. Android tried to&amp;nbsp;start the encryption process after re-connecting, even though the peripheral responded with no bonding earlier. Again, with SC on. Would be nice to check what would happen with SC off.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android pairing without bonding - nRF Connect</title><link>https://devzone.nordicsemi.com/thread/170174?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 16:38:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4202e95c-a41d-450f-8aeb-d60c207b180b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Ok,&amp;nbsp; so the LL_ENC_REQ is actually sent on air, that busts my theory that this is Android checking if the key is stored or not. The&amp;nbsp;&lt;span&gt;LL_ENC_REQ&amp;nbsp; also contains what appears to be valid key div and init vectors.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I will ask our Android developer if he has seen this issue before.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android pairing without bonding - nRF Connect</title><link>https://devzone.nordicsemi.com/thread/170165?ContentTypeID=1</link><pubDate>Fri, 08 Feb 2019 15:45:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bcca610-301e-488e-b4f8-fb02b170424d</guid><dc:creator>Mateusz</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Bj&amp;oslash;rn,&lt;/p&gt;
&lt;p&gt;See attached. This time, I used Android 9 with a Moto x4 phone, so it appears that the same thing is happening with latest Android.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve used nRF Sniffer v2, as requested.&lt;/p&gt;
&lt;p&gt;I do see LL_ENC_REQ in frame 545 of android-next-pairing.pcapng.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/android_2D00_initial_2D00_pairing.pcapng"&gt;devzone.nordicsemi.com/.../android_2D00_initial_2D00_pairing.pcapng&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/android_2D00_next_2D00_pairing.pcapng"&gt;devzone.nordicsemi.com/.../android_2D00_next_2D00_pairing.pcapng&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android pairing without bonding - nRF Connect</title><link>https://devzone.nordicsemi.com/thread/169911?ContentTypeID=1</link><pubDate>Thu, 07 Feb 2019 12:29:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b558f633-dc01-474a-acb8-4d680fed78c7</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;My bad, they open fine Wireshark here as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking at the&amp;nbsp;LE Start Encryption Command in the Bluetooth Specification, I see that&amp;nbsp; it takes&amp;nbsp;Connection_Handle, Random_Number, Encrypted_Diversifier, Long_Term_Key as parameters.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The LE_Start_Encryption command is used to authenticate the given&lt;/em&gt;&lt;br /&gt;&lt;em&gt;encryption key associated with the remote device specified by the&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Connection_Handle, and once authenticated will encrypt the connection.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e419763e459547c2bc63b286e9888ccc/pastedimage1549539454673v1.png" alt=" " /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So it would appear that Android device has stored the&amp;nbsp;Long_Term_Key from the previous connection and is trying to use this to re-establish the encrypted link. The Long term key is infact identical to the one used in conneted.log . In connected.log I also see that the the Android device is sending the Pairing request with the Bonding flag set to true, but the nRF sends a Paring response with the No Bonding flag set.However, this should result in both devices opting for no bonding.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would like to know&amp;nbsp;if the LL_ENC_REQ is actually sent on-air to the nRF or if this is something the Android BLE stack does to check if the encryption key has been stored or not. Could you capture a trace with &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer/Download#infotabs"&gt;nRF Sniffer v2&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android pairing without bonding - nRF Connect</title><link>https://devzone.nordicsemi.com/thread/169531?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 13:49:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29d5bafe-1f80-4140-a18f-f632c08ca8c1</guid><dc:creator>Mateusz</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Bj&amp;oslash;rn,&lt;/p&gt;
&lt;p&gt;Yes, I&amp;nbsp;think they should have probably ended with *.bin or *.btsnoop. With that said, I just tried downloading them and they open fine in Wireshark, so they haven&amp;#39;t been garbled up in any way&amp;nbsp;after upload. Wireshark does seem to have an option to export data to *.txt, but I&amp;nbsp;believe most data goes missing with that option.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android pairing without bonding - nRF Connect</title><link>https://devzone.nordicsemi.com/thread/169500?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 12:30:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:942928f3-4fa2-4fad-9492-27d9d95f60ed</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Mateusz,&lt;/p&gt;
&lt;p&gt;can you attach the btsnoop traces as readable files? The encoding isnt playing nice with the embedded code windows here on DevZone.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>