如何从android应用程序检测蓝牙RFCOM通道崩溃

如何从android应用程序检测蓝牙RFCOM通道崩溃,android,crash,android-bluetooth,crashlytics,rfcomm,Android,Crash,Android Bluetooth,Crashlytics,Rfcomm,我有一个应用程序,其中有时蓝牙通道从操作系统层崩溃,然后蓝牙通道不开始工作,直到手机重新启动。由于这是操作系统层崩溃,我无法从我的应用程序中检测/处理它。以下是坠机事件: 02-20 05:32:45.751: I/BluetoothServiceJni(20779): SOCK FLAG = 3 *********************** 02-20 05:32:45.751: E/BluetoothServiceJni(20779): Socket listen failed: 2 02

我有一个应用程序,其中有时蓝牙通道从操作系统层崩溃,然后蓝牙通道不开始工作,直到手机重新启动。由于这是操作系统层崩溃,我无法从我的应用程序中检测/处理它。以下是坠机事件:

02-20 05:32:45.751: I/BluetoothServiceJni(20779): SOCK FLAG = 3 ***********************
02-20 05:32:45.751: E/BluetoothServiceJni(20779): Socket listen failed: 2
02-20 05:32:45.751: E/BluetoothAdapterService(1918354448)(20779): Failed to create socket channel
02-20 05:32:45.751: E/BluetoothSocketThread(762): Failed to listen for Bluetooth server socket connect.
02-20 05:32:45.751: E/BluetoothSocketThread(762): java.io.IOException: Error: -1
02-20 05:32:45.751: E/BluetoothSocketThread(762):   at android.bluetooth.BluetoothAdapter.createNewRfcommSocketAndRecord(BluetoothAdapter.java:1245)
02-20 05:32:45.751: E/BluetoothSocketThread(762):   at android.bluetooth.BluetoothAdapter.listenUsingRfcommWithServiceRecord(BluetoothAdapter.java:1161)
02-20 05:32:45.751: E/BluetoothSocketThread(762):   at com.google.glass.bluetooth.BluetoothAdapter.listenUsingRfcommWithServiceRecord(BluetoothAdapter.java:148)
02-20 05:32:45.751: E/BluetoothSocketThread(762):   at com.google.glass.bluetooth.companion.BluetoothSocketThread.runInternally(BluetoothSocketThread.java:67)
02-20 05:32:45.751: E/BluetoothSocketThread(762):   at com.google.glass.bluetooth.companion.CompanionServerThread.run(CompanionServerThread.java:61)
02-20 05:32:45.761: W/BluetoothAdapter(762): getBluetoothService() called with no BluetoothManagerCallback
我的问题是,有没有办法从我的应用程序中检测到与蓝牙通道操作系统相关的崩溃。 是否可以使用fabric crashlytics本机支持或其他任何方法检测崩溃