Home: https://github.com/asmagill/mjolnir_asm.undocumented
Functions to get and set undocumented options and features within OS X. These are undocumented features from the "private" api's for Mac OS X and are not guaranteed to work with any particular version of OS X or at all. This code was based primarily on code samples and segments found at https://github.com/toy/blueutil.
This submodule provides access to Bluetooth power and discoverability states, and the ability to change them.
I make no promises that these will work for you or work at all with any, past, current, or future versions of OS X. I can confirm only that they didn't crash my machine during testing under 10.10pb2. You have been warned.
mjolnir._asm.undocumented.bluetooth.available() -> bool
Returns true or false, indicating whether bluetooth is available on this machine.
mjolnir._asm.undocumented.bluetooth.discoverable() -> bool
Returns true or false, indicating whether this machine is currently discoverable via bluetooth.
mjolnir._asm.undocumented.bluetooth.power() -> bool
Returns true or false, indicating whether bluetooth is enabled for this machine.
mjolnir._asm.undocumented.bluetooth.set_discoverable(bool)
Set bluetooth discoverable state to on (true) or off (false).
mjolnir._asm.undocumented.bluetooth.set_power(bool)
Set bluetooth power state to on (true) or off (false).