[DEBUG](Android) Fix large BLEFTP reads.

- Fix a bug which could cause the BLEFTP to crash when reading large
  packets.
- Use a more generous buffer allocation algorithm to prevent
  reallocating for each received block.
- Add a few comments.