| 69 | bool CIntelBTPatcher::_randomAddressInit = false; |
| 70 | |
| 71 | bool CIntelBTPatcher::init() |
| 72 | { |
| 73 | DBGLOG(DRV_NAME, "%s", __PRETTY_FUNCTION__); |
| 74 | callbackIBTPatcher = this; |
| 75 | if (getKernelVersion() < KernelVersion::Monterey) { |
| 76 | lilu.onKextLoadForce(&IntelBTPatcher_IOBluetoothInfo, 1, |
| 77 | [](void *user, KernelPatcher &patcher, size_t index, mach_vm_address_t address, size_t size) { |
| 78 | callbackIBTPatcher->processKext(patcher, index, address, size); |
| 79 | }, this); |
| 80 | } else { |
| 81 | lilu.onKextLoadForce(&IntelBTPatcher_IOUsbHostInfo, 1, |
| 82 | [](void *user, KernelPatcher &patcher, size_t index, mach_vm_address_t address, size_t size) { |
| 83 | callbackIBTPatcher->processKext(patcher, index, address, size); |
| 84 | }, this); |
| 85 | } |
| 86 | return true; |
| 87 | } |
| 88 | |
| 89 | void CIntelBTPatcher::free() |
| 90 | { |
no test coverage detected