fix buffer overflow crash in android app

read and drop old data received, the last 5 bytes have all the info
required by the client