3

A client needs to completely disable bluetooth. The most basic level (aside from physically disconnecting the antennas or removing the airport card) seems to be disabling the kernel extensions.

I looked in /Volumes/<your system's drive name>/Library/Extensions/ while in recover mode, courtesy of this question, but there were no bluetooth extensions there.

Supposedly deleting /System/Library/Extensions/IO80211family.kext will disable wifi, but I also ran into issues trying to delete this without being in recovery mode. (Recovery mode shows this file in /Volumes/<your system's drive name>/System/Library/Extension, and wifi was successfully disabled after deleting that file from within recover mode, showing No Hardware Installed after rebooting.)

What file should I delete to achieve the same result for bluetooth?

3
  • 1
    Keep in mind that any user with administrative access can simply re-enable bluetooth by downloading and loading those extensions. It might also be re-enabled after any system update. If you are not modeling against a privileged user a MDM profile is a better solution. Commented Aug 6, 2019 at 2:38
  • @theologin The client requested this. Commented Aug 6, 2019 at 3:13
  • 1
    @Johnkeates These kernel extensions could be reinstalled via direct copy or OS reinstall, but there updates only check specified extensions. There is no such things as perfect security, but security-in-depth is still best practice, last I checked. Commented Aug 6, 2019 at 3:16

2 Answers 2

2

I'll leave this open to a more definitive answer, but after some guess-and-check I was able to disable the Bluetooth preferences pane with an error To see this preferences pane, you may need to connect a device to your computer. by removing the /System/Library/Extensions/IOBluetoothFamily.kext file.

Clarification as to which of the following found kernel extensions are specifically responsible for Bluetooth IO would be appreciated:

$ ls /System/Library/Extensions/*lue*
/System/Library/Extensions/AppleBluetoothDebug.kext:
Contents

/System/Library/Extensions/AppleBluetoothDebugService.kext:
Contents

/System/Library/Extensions/AppleBluetoothModule.kext:
Contents

/System/Library/Extensions/AppleBluetoothMultitouch.kext:
Contents

/System/Library/Extensions/AppleBluetoothRemote.kext:
Contents

/System/Library/Extensions/AppleMIDIBluetoothDriver.plugin:
Contents

/System/Library/Extensions/IOBluetoothFamily.kext:
Contents

/System/Library/Extensions/IOBluetoothHIDDriver.kext:
Contents
2

boot into recover mode, go to /Volumes/[your disk name]/System/Library/LaunchDaemons/

Disable the bluetooth daemon by renaming it:

mv com.apple.bluetoothd.plist com.apple.bluetoothd.plist.DISABLE
mv com.apple.bluetoothaudiod.plist com.apple.bluetoothaudiod.plist.DISABLE
mv com.apple.bluetoothReporter.plist com.apple.bluetoothReporter.plist.DISABLE

reboot and there will be no more bluetooth.

5
  • Will this disable it to the same extent that we're moving the current extension will? Commented Aug 5, 2019 at 16:48
  • 1
    It is a different approach than deleting/moving the kernel extensions. Here I am disabling the bluetooth system service. The final result is no bluetooth. Once disable [by renaming] it is impossible to load it again (unless rebooting in recovery and renaming back those files). If you prefer you can also delete them. Your approach to delete the kernel extension is more agressive, you remove the driver from the kernel. Unless you need to wipe it for some reason, disabling the services is less agressive and more safe to keep system stability.
    – Prado
    Commented Aug 5, 2019 at 17:36
  • 2
    Considering it is necessary to remove the kernel extensions, it depend of MacOS version. I checked it now on two systems: Catalina and El Capitan, they a different. You can see all the responsible exten for bluetooth by clicking on the apple logo on the upper left corner of the toolbar, select "About this mac" and press "System Report". Once opened, roll down to item Software -> Extensions. All kernel extensions will be listed making it easy to find the bluetooth extensions & their path/filenames. Catalina has 7, El Capitan has just 4. This is the best place to find them all.
    – Prado
    Commented Aug 5, 2019 at 17:48
  • I appreciate the detail in your comments, as well as the comparison of the two approaches. I recommend adding the information to your answer, as I found it helpful and educational, and other users may also benefit. Commented Aug 6, 2019 at 3:19
  • For anyone on Monterey having issues with lag due to bluetooth, disabling the two com.apple.bluetooth* appears to resolve resolve the issue. Obviously with bluetooth not being functional. Note: Bluetooth preferences panel is still visible. Commented Aug 23, 2022 at 5:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .