Bug 419901

Summary: Bluetooth backend fails on the android KDEconnect app
Product: [Applications] kdeconnect Reporter: liranpiade
Component: android-applicationAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED FIXED    
Severity: normal CC: kde, unico
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Android   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description liranpiade 2020-04-10 06:08:59 UTC
SUMMARY


STEPS TO REPRODUCE
1. Enable the bluetooth link in the compilation flags
2. Compile + Debug from Android studio
3. Watch the exception come up regarding the bluetooth backend

OBSERVED RESULT
E/BTLinkProvider/Server: Bluetooth error
    java.io.IOException: read failed, socket might closed or timeout, read ret: -1
        at android.bluetooth.BluetoothSocket.readAll(BluetoothSocket.java:772)
        at android.bluetooth.BluetoothSocket.waitSocketSignal(BluetoothSocket.java:725)
        at android.bluetooth.BluetoothSocket.accept(BluetoothSocket.java:499)
        at android.bluetooth.BluetoothServerSocket.accept(BluetoothServerSocket.java:171)
        at android.bluetooth.BluetoothServerSocket.accept(BluetoothServerSocket.java:157)
        at org.kde.kdeconnect.Backends.BluetoothBackend.BluetoothLinkProvider$ServerRunnable.run(BluetoothLinkProvider.java:170)
        at java.lang.Thread.run(Thread.java:919)
W/BluetoothAdapter: getBluetoothService() called with no BluetoothManagerCallback

EXPECTED RESULT
The KDEconnect bluetooth backend should connect

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro, Kernel 5.6
(available in About System)
KDE Plasma Version: N/A
KDE Frameworks Version: N/A
Qt Version: N/A

ADDITIONAL INFORMATION
Android version: 10 and 9
Android devices: GM1917, A0001, G8141