[android] Fix truncating of messages longer than 4096 characters (#8735)