maguro:mms: Patch for getting MMS from chuncked packets.
maguro:mms: Patch for getting MMS from chuncked packets.

- Description
Orange FR sends MMS as chunked packets.
Chunked packets mean that each packet didn't have its own size field within message header.
But android allocates buffer for message body by size that is within message header.
So, in case of Orange FR, MMS apk cannot get correct message body even though MMS is retreived on device because MMS apk doesn't know the real size of message.

- Solution
MMS retrieved is kept on http stack as dummy packet.
MMS is checked if it is chunked or not before reading body size.
If it is chunked, temporary buffer for message body is allocated as maxium size.
And then, read the packet and fill that buffer until packet size is -1. (-1 means end of packet)
Finaly, copy temporary buffer to MMS body as loaded size.

Manually merge this change from yongsuk.kwon@samsung.com from
the partner repo to master. Bug 5257517

Change-Id: Ic48259729cc7090b8afdc113ec3c6b47edff0ed9

bmaupin/android-sms-plus