文章列表
该消息是根据在BluetoothPbapSession里mDevice.createRfcommSocketToServiceRecord()时抛出的异常信息来生成的。
当异常信息包含“Service discovery failed”时,蓝牙导入判断错误类型为BluetoothImportResult.RESULT_PABP_NOT_SUPPORTED,
随即生成错误提示框,由BluetoothImportResult显示“XX不支持蓝牙导入电话本功能”错误。
所以当log里打印“Service discovery failed”时,即为该错误。
该问题实际为framework层蓝牙 ...