Skip to content

net/bluetooth potentially broken on android-8/9

See these lint errors:

/home/mvdan/git/fcl/F-Droid/src/org/fdroid/fdroid/net/bluetooth/BluetoothClient.java:29: Error: Call requires API level 10 (current min is 8): android.bluetooth.BluetoothDevice#creat
eInsecureRfcommSocketToServiceRecord [NewApi]
            socket = device.createInsecureRfcommSocketToServiceRecord(BluetoothConstants.fdroidUuid());
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mvdan/git/fcl/F-Droid/src/org/fdroid/fdroid/net/bluetooth/BluetoothServer.java:71: Error: Call requires API level 10 (current min is 8): android.bluetooth.BluetoothAdapter#list
enUsingInsecureRfcommWithServiceRecord [NewApi]
            serverSocket = adapter.listenUsingInsecureRfcommWithServiceRecord("FDroid App Swap", BluetoothConstants.fdroidUuid());
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Any ideas @eighthave @n8fr8?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information