Fix receiving multi-part CDMA WAP messages.
authorJake Hamby <jhamby@google.com>
Tue, 10 Sep 2013 22:02:23 +0000 (15:02 -0700)
committerJake Hamby <jhamby@google.com>
Tue, 10 Sep 2013 22:02:23 +0000 (15:02 -0700)
commit8b61e10b480d3a7bae41025a97f3bd27ee5ed610
treed957c4167ab87a6a4b55e46ae2a343c41b9fd42a
parent90271d9ef1377b25b78359039fb2e87f32aba25b
Fix receiving multi-part CDMA WAP messages.

Fix ArrayIndexOutOfBoundsException in CDMA WAP message handling.
Add a new flag to raw DB table to indicate 3GPP2 WAP PDU messages.
Use the new flag to return the correct value for getIndexOffset()
in InboundSmsTracker.

Previously this only worked correctly for single-segment WAP PDUs
of type WAP push.

Bug: 10595053
Change-Id: I8820da124e8fa4707cbee0398690a475d26ff702
src/java/com/android/internal/telephony/InboundSmsHandler.java
src/java/com/android/internal/telephony/InboundSmsTracker.java
src/java/com/android/internal/telephony/cdma/CdmaInboundSmsHandler.java