seemoo-lab / openhaystack

Build your own 'AirTags' 🏷 today! Framework for tracking personal Bluetooth devices via Apple's massive Find My network.
https://owlink.org
GNU Affero General Public License v3.0
8.62k stars 464 forks source link

Python Script Refactor #225

Closed Chapoly1305 closed 11 months ago

Chapoly1305 commented 11 months ago

Refactor.

  1. Convert the project to use Class structure.
  2. Convert BLE Advertising_Type from 3(Non connectable undirected advertising (ADV_NONCONN_IND)) to 0 (Connectable undirected advertising (ADV_IND)), which matches actual Airtag message, also supports display the name of device.
  3. Give proper notice to user if the ble address cannot be altered. For example, the Raspberry Pi4 ble hardware won't change its mac address.
  4. Print usage and help if no parameter is given.
  5. Allowing to set the ble device and device name with parameters. Easier to broadcast on different ble deivces.
  6. Removed logic of restarting the bluetooth service and use specific adapter reset command.
  7. Tested with https://github.com/biemster/FindMy/pull/38
LelouBil commented 4 months ago

Why was this PR closed ?