Add subaddress to SMS fingerprint calculation.
authorNaveen Kalla <nkalla@codeaurora.org>
Sun, 26 Sep 2010 22:55:37 +0000 (15:55 -0700)
committerNaveen Kalla <nkalla@codeaurora.org>
Sun, 26 Sep 2010 22:55:37 +0000 (15:55 -0700)
commit7d16427653e047e4901988e7ee04d637e65253b7
tree405d52b9c25e1617229e3bc7f3a1e6b53f6269a0
parent7d9c73fb6f6f79f7f92b77482a0edbd7b89f2564
Add subaddress to SMS fingerprint calculation.

As per SMS specification in 3GPP2 C.S0015-B, section 4.3.1.6, if the
Subaddress is included in a CDMA SMS message, it needs to be used for
duplicate detection. Subaddress, which is an optional field was omitted
while computing the SMS fingerprint. Hence it was never being used in
duplicate detection if it was included in the SMS. Add subaddress to the
SMS fingerprint.

Change-Id: Iad9e89887a17caba59033ab8f8d94b63b33cb4bb
telephony/java/com/android/internal/telephony/cdma/SmsMessage.java [changed mode: 0755->0644]
telephony/java/com/android/internal/telephony/cdma/sms/CdmaSmsSubaddress.java [new file with mode: 0644]
telephony/java/com/android/internal/telephony/cdma/sms/SmsEnvelope.java