<?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-BLE-library onPairingRequestReceived called with pin does not overtake the system popup with a Samsung device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120255/android-ble-library-onpairingrequestreceived-called-with-pin-does-not-overtake-the-system-popup-with-a-samsung-device</link><description>Hi, 
 I&amp;#39;m developing an Android app that will be used on Samsung Galaxy Tab devices only in which the user can connect, through BLE, to another device, which is a module added onto a circuit board. I&amp;#39;m using your Android-BLE-library V2.9.0 to do so. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Mar 2025 15:04:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120255/android-ble-library-onpairingrequestreceived-called-with-pin-does-not-overtake-the-system-popup-with-a-samsung-device" /><item><title>RE: Android-BLE-library onPairingRequestReceived called with pin does not overtake the system popup with a Samsung device</title><link>https://devzone.nordicsemi.com/thread/529579?ContentTypeID=1</link><pubDate>Fri, 28 Mar 2025 15:04:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3386ff54-0498-4cee-b964-c5f68d4d3b4c</guid><dc:creator>brakinhoo7</dc:creator><description>&lt;p&gt;Hello Einar,&lt;/p&gt;
&lt;p&gt;Thanks a lot for your prompt reply!&lt;/p&gt;
&lt;p&gt;You&amp;#39;re totally right about the static passkey. For the moment,&amp;nbsp;I am still developing the app so I try to make it the easiest way, that is why&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to be more understandable: My app is developed to work with a machine that has a BLE module on it. But both BLE or USB connection are available. The process I try to set up is that through the USB connection I can communicate the passkey required to initiate the BLE connection between my Samsung device and my machine, so that this whole procces is automatic regarding the user. But to do so, I have to overtake the system process that asks the passkey to the user on a popup. I tried the onPairingRequestReceived() but it didn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;Regarding your answer, it seems to be more of an Android/Samsung issue than an issue from your library. I hoped that I could fine a workaround with your library, but that&amp;#39;s ok, I will look for another way.&lt;/p&gt;
&lt;p&gt;Thank you again Einar!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Android-BLE-library onPairingRequestReceived called with pin does not overtake the system popup with a Samsung device</title><link>https://devzone.nordicsemi.com/thread/529557?ContentTypeID=1</link><pubDate>Fri, 28 Mar 2025 14:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8850efa6-5ca4-475f-8705-964afde87aa9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Does this mean that you are using a static passkey and want your app to enter this static passkey? Please be aware that a static passkey can &lt;em&gt;very&lt;/em&gt; easily be brute forced, so in this case a passke will not add anything to the security at all, and the security woul be on the sale level as &amp;quot;just works&amp;quot;.&lt;/p&gt;
&lt;p&gt;That said, while I have not been able to confirm this, the the popup will (I think) still show up even if you also implement onPairingRequestReceived(), but the device will bond. This is because when a device wants to bond an Intent is sent to all apps. One of the app is the system, which shows the dialog. A different app would be the yours, which would provide the PIN. But that would not hide the already visible popup, so it will not be elegant.&lt;/p&gt;
&lt;p&gt;In sum, this approach (if I have understood it correctly), seem not so good as the visible popup will not be elegant, and you will also not get any benefits from using a passkey if it is static.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>