Server part: Some fixes to server C++ parts

Signed-off-by: Frca <killerfrca@gmail.com>
Android part: Handle new packet expected format

Signed-off-by: Frca <killerfrca@gmail.com>