Fixed that processing malformed PDUs stored in the intent caused crash.

The eported issue is that a malware can broadcast a DATA_SMS_RECEIVED
intent with incorrect type of PDUs. The handling function in telephony
will crash due to casting exception. The other change has already
changed DATA_SMS_RECEIVED to a proected broadcast intent so ideally
only system apps can send this intent. However, if the system app
has a bug, this crash might still happen.

bug: 22540754

Change-Id: I2cc3898b54ea3963500b4d825f07dcdb564861eb
1 file changed