Repository navigation
Adding AirPods IRK makes device appear as "Unmatched device" #757
Replies: 1 comment 6 replies
|
Your key is most likely correct, it's just in the wrong byte order for CAPod. The Home Assistant guide says the IRK from the Windows registry can be used as-is. That's true for Home Assistant, but CAPod expects the opposite order:
So the registry value never resolves your AirPods' rotating address. Because an Identity Key is set, CAPod then lists them under "Unmatched devices", which is exactly what you see when you add the key and not when you remove it. Fix: reverse the 16 bytes (pairs of hex digits, not single characters) and paste the result as the Identity Key.
PowerShell: $h = '00112233445566778899AABBCCDDEEFF' # the IRK from the .reg file, commas removed
$b = [regex]::Matches($h, '..') | ForEach-Object Value
[array]::Reverse($b); -join $bor Python: Running both algorithms on a test address confirms it. An address generated with a Home Assistant–style key resolves in CAPod's code 0 times out of 20 with the key as-is, and 20 out of 20 after reversing the key. About the Pixel 5 on Android 14: you don't need the updated Bluetooth stack for this. It's only needed for CAPod to read the keys from the AirPods by itself. A manually entered IRK only has to match the BLE broadcasts, and that works on your phone. Encryption key: as far as I know, the Windows registry only stores the standard BLE keys (IRK, LTK…), not Apple's own encryption key ( (Maybe worth a note in the wiki next to the Windows link, since that guide says no reversing is needed.) |
Uh oh!
There was an error while loading. Please reload this page.
I manually extracted my AirPods Pro 2 keys using the guide linked in CAPod documentation for Windows (https://www.home-assistant.io/integrations/private_ble_device/#on-windows---for-any-devices-that-will-connect-to-a-computer).
But when I add IRK to my device profile on CAPods, my AirPods then appear has "unmatched device"... (if I remove the key, AirPods appear has matched device again).
All of this is a bit obscure to me so I might have done something wrong, but I followed the guide thoroughly several times to make sure I had the right key.
Please note that I have a Google Pixel 5 using Android 14, so I don't have the updated Android Bluetooth stack, I'm not quite sure if it is mandatory to use IRK/LRK features within CAPods.
All reactions