On both devices I tested, the bluetooth InputStream did not notice end-of-stream and thus the transfer hanged.
Using this workaround, if we know the size of the payload, we notice this condition and prevent reading too much.
If this happens on all devices, we could possibly cancel the transfer immediately instead of only logging.