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