GithubHelp home page GithubHelp logo

bt-linkkeysync's People

Contributors

danielsogl avatar digitalbirdo avatar hoholee12 avatar johnkgamble avatar schirmeier avatar stefanlobbenmeier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bt-linkkeysync's Issues

Bluetooth 4.0 - EDIV, IRK, LTK.

Hey @digitalbirdo,

Are you still supporting LinkkeySync? I read on a forum that instead of Link Keys, BT 4.0 devices actually use EDIV, IRK and LTK. I didn't test this because this whole process is too time consuming for the setting to be lost if something where to happen (if I need to re-pair the devices due to some issue).

Anyway, I'm at a loss on how to succeed on this endeavor of dual booting my 4.0 BT devices. Any assistance would be greatly appreciated!

Thank you.

Regards

BCM94352HMB Success, special thanks!

Success, special thanks!
System is: OS X 10.11.6, windows 10; BCM94352HMB
Three devices to switch between dual systems can be used without re-pairing.
Device 1: Microsoft Sculpt Comfort Mouse
Device 2: philips 24in with Bluetooth audio display
Device 3: iphone SE

clover option

Dear ,

Thanks so much for your guide.

could you tell me how to use asus BT400 and apple keyboard to change OS on clover.

i install mac os 10.12 and windows 7 too.

How to fix BLE devices

I just made my BLE MS Designer mouse work on both Windows and macOS.
Steps are as follows:

  • Pair on macOS first, and then on Windows.
  • Export HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters\Keys\{bluetooth adapter MAC}\{BLE device MAC} to a reg file and reboot into macOS.
  • Disable Bluetooth.
  • Modify /Library/Preferences/com.apple.Bluetooth.plist replacing all instances of the previous MAC address of the BLE device with the new one, and also modify /private/var/root/Library/Preferences/blued.plist (up to Sierra) or /private/var/root/Library/Preferences/com.apple.Bluetooth.plist (High Sierra onwards) as follows:
    -- Expand SMPDistributionKeys, and expand again the dictionary named after the bluetooth adapter MAC, you'll find one sub-dictionary for each BLE device, named after their MACs. Replace the MAC of the device you're dealing with with the new one, and expand that dictionary.
    -- LTK, RAND, IRK, address and EDIV need to be changed. They're respectively LTK, ERand, IRK, Address and EDIV from the reg file, nothing needs to be endian swapped except for the EDIV (as an example, "EDIV"=dword:000080b4 in the reg file means the macOS EDIV is b480) and the Address (as an example, "Address"=hex(b):46,78,f9,ba,1a,db,00,00 in the reg file means the macOS Address is db1abaf9 7846).
  • Save the files and reboot, re-enable Bluetooth.

Error

HEllo

I have this error

blued.plist.zip
File "/Users/fabien/Desktop/BT-LinkkeySync.py", line 40, in
print(" Bluetooth 2.0: "+str(len(pl["LinkKeys"].keys()))+ " Links keys found")
KeyError: 'LinkKeys'

Thanks for your aid

Support key sync from Windows to MacOS

I just did this manually and it was pretty straightforward.

From a paired device in Windows 10 (the Bose 700s, which interestingly support LE but were not paired by LE), I exported the link key data, changed the endianness to MacOS, then replaced this in the Mojave /private/var/root/Library/Preferences/com.apple.bluetoothd.plist (I used a hex editor to find and replace the existing paired key with Windows').

The only gotcha was that I had to not only disable Bluetooth before modifying the plist file, but also perform a system reboot before starting Bluetooth again. Otherwise, something was reverting the key change to the plist file. I tried to see if I could figure out which specific service was doing this but didn't have any luck.

I appreciate that perhaps replacing the key on Windows is easier than the above but wanted to share that it is indeed possible nevertheless.

please support 10.13

I've ran on 10.13 but the key has nothing in it.
therefore cannot import on windows

It does not work on Monterey

It does not work on my computer with macOS 12 Monterey, I can't find /private/var/root/Library/Preferences/com.apple.bluetoothd.plist.

KeyError: 'LinkKeys'

I'm currently using MacOS Majave 10.14 beta.
Ross-MacBook-Pro:Desktop rossoknarun$ sudo ./BT-Linkkeysync.py

BT-Linkkeysync by DigitalBird

get Bluetooth Link Keys from macOS and store it to blued.plist
convert exported list from binary to xml
parse the converted plist
Convert the Link Keys and store them to btkeys.reg
Traceback (most recent call last):
File "./BT-Linkkeysync.py", line 45, in
print(" Bluetooth 2.0: "+str(len(pl["LinkKeys"].keys()))+ " Links keys found")
KeyError: 'LinkKeys'

what I did wrong?

`git clone https://github.com/digitalbirdo/BT-LinkkeySync
Cloning into 'BT-LinkkeySync'...
remote: Enumerating objects: 42, done.
remote: Total 42 (delta 0), reused 0 (delta 0), pack-reused 42
Unpacking objects: 100% (42/42), done.
Mac-Pro-Rodion:src rodion$ cd BT-LinkkeySync/
Mac-Pro-Rodion:BT-LinkkeySync rodion$ chmod +x BT-LinkkeySync.py
Mac-Pro-Rodion:BT-LinkkeySync rodion$ sudo ./BT-LinkkeySync.py
Password:

BT-Linkkeysync by DigitalBird

get Bluetooth Link Keys from macOS and store it to blued.plist
convert exported list from binary to xml
parse the converted plist
Convert the Link Keys and store them to btkeys.reg
Bluetooth 2.0: 1 Links keys found
Traceback (most recent call last):
File "./BT-LinkkeySync.py", line 52, in
f.write('\r\n"'+device.replace("-","")+'"=hex:'+ convertToWinRep(pl["LinkKeys"][adapter][device].data.hex()))
AttributeError: 'str' object has no attribute 'hex'
`

Intel® 9260 802.11AC (2 x 2) & Bluetooth® 5.0


BT-Linkkeysync by DigitalBird

get Bluetooth Link Keys from macOS and store it to blued.plist
convert exported list from binary to xml
parse the converted plist
Convert the Link Keys and store them to btkeys.reg
No Bluetooth 2.0 information available
No Bluetooth 4.0 information available
Registry file generated and ready for import

Please update for this device!

Helpful correction in python script

In line 15 of the python script I would propose changing true into True, because otherwise you run into an syntax error if you change False against true. A simple-hearted as me made that experience ...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.