特殊需求,如何屏蔽某个蓝牙设备无法连接 mac?
|
paloaltoApr 25, 2017
1
从 devices 里移除掉? |
|
paloaltoApr 25, 2017 via iPhone
3
“他在我电脑前很轻松的配对一下”,这句话的意思是别人能操作你的电脑吗?
从 devices 删除之后,需要经过电脑操作确认后,蓝牙设备才会再次连接成功。我没记错的话是这样的,你可以试试。 不过如果你的电脑能被其他人操作的话,那就没有什么好办法了。 |
|
thekocApr 26, 2017
6
@Themyth #5
增加难度的话: `system_profiler SPBluetoothDataType` 用这个命令可以查看蓝牙设备状况。 `defaults write /Library/Preferences/com.apple.Bluetooth.plist ControllerPowerState 0` 用这个命令可以关闭蓝牙。 配合起来可以做到检查到某个设备连接时自动关闭蓝牙。 如果要做到某个设备连接时,自动 Disable 掉这个指定设备,可能要用到原生代码了。 |
|
hackproApr 26, 2017
7
|