Skip to content

Instantly share code, notes, and snippets.

@ceres-c
Created January 8, 2022 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ceres-c/4bbf21c9e5feb0f45db54aed566975c0 to your computer and use it in GitHub Desktop.
Save ceres-c/4bbf21c9e5feb0f45db54aed566975c0 to your computer and use it in GitHub Desktop.
Magic Trackpad 2 dual boot BLE key sharing
chntpw -e /media/windows/Windows/System32/config/SYSTEM

in chntpw:

cd ControlSet001\Services\BTHPORT\Parameters\Keys\{computer-bluetooth-mac}
hex {device-bluetooth-id}

Take the output of the hexdump, remove spaces and insert as-is in

/var/lib/bluetooth/{computer-bluetooth-mac}/{device-bluetooth-id}/info

As parameter Key in LinkKey section

Example info file:

[General]
Name=Magic Trackpad 2
Class=0x000594
SupportedTechnologies=BR/EDR;
Trusted=true
Blocked=false
WakeAllowed=true
Services=00001124-0000-1000-8000-00805f9b34fb;00001200-0000-1000-8000-00805f9b34fb;

[DeviceID]
Source=1
Vendor=76
Product=613
Version=263

[LinkKey]
Key=<Insert hex key here>
Type=4
PINLength=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment