Android denial of service attack using class 0 SMS messages

Bug 9702645
Bug 11970403 - Change to ClassZeroActivity to singleTask

Cherry pick the change from master.

Making every AlertDialog immediately visible can lead to exhaustion
of graphics-related resources, typically memory, resulting in a
broken bufferqueue/hw renderer, and subsequent system crash.

Make ClassZeroActivity a singleTask activity, and queue incoming
messages if one is already being displayed.

Change-Id: I0aef7b857364acc404e79581ba5e503571065483
MMS: Redesign of Mms auto-retrieval feature.

- Introduce new mapping to facilitate optimized Dds switches.
- Introduce safe-guards to revert back to original subs.
- New implementation to handle various race conditios due to
  multiple MO/MT MMS operations on alternate subs.

Change-Id: I890ccc18657fef137051847cc816946355a26ed5
CRs-Fixed: 583518
Fix to insert proper "from" address in MO MMS

In case of Multisim, add proper subscription info
to get proper "from" address while processing
MO MMS request.

Change-Id: Id6f6990c0a56e6f3d2450136d21570dfa5157082
CRs-Fixed: 596291
Merge "MMS: Redesign of Mms auto-retrieval feature."
Merge "Fix to insert proper "from" address in MO MMS"
Add link control support

Add support for link control while sending
multiple messages

Change-Id: Ie36269c409900dab36613a444b8c79eb9c0166b1
CRs-Fixed: 608922
Merge "Add link control support"
ix MT MMS download failure when auto-retrieve is off

If user click download button when the auto-retrieve is off, the
download status will be marked as STATE_PRE_DOWNLOADING | DEFERRED_MASK.
This value is too large while load NotificationInd in RetrieveTransaction.
Method load() use the state value to setOctet() in PduHeaders, then it will
cause InvalidHeaderValueException. That can cause that mms pdu will not be
loaded in MessageItem.

Change the STATE_PRE_DOWNLOADING to a legal value to avoid the exception.
Because the STATUS field is only used to store the state of downloading
process for NotificationInd.

Change-Id: Ica3b63f18dd38ec3b0003ac41d476e464559113f
CRs-Fixed: 606171
Merge "ix MT MMS download failure when auto-retrieve is off"
Merge tag 'android-4.4.2_r2' into merge_branch

Android 4.4.2 Release 2

* tag 'android-4.4.2_r2':
  Android denial of service attack using class 0 SMS messages

Change-Id: Id493a3931d2984b837ac50bf254869ae1dc2d6da
Merge "Merge tag 'android-4.4.2_r2' into merge_branch"
Revert "Mms: ES translations"

This reverts commit a3850995061aeaecc50c97388db702bdbe27e1ae.

Change-Id: I099094ebfb4138d9b4398de3c259663754d5261a
Merge "Revert "Mms: ES translations"" into cm-11.0
Merge branch 'qcril' of git://github.com/CyanogenMod/android_packages_apps_Mms into qcril
Mms: MS translations

Transifex import

Change-Id: Iaa37eb5d15926be88a6311bf96a3e85a6019eb42
MMS: Disable Android 4.2 specific hack regarding keyboard behavior.

In android 4.2 the keyboard activity resizing events were delayed by about
a half a second and there was no fade animation. This caused some apps
to behave oddly when displaying the keyboard upon loading including
the MMS app which google had implemented a hack to workaround this glitch.
In android 4.3 and newer the old 4.0-4.1 behavior was restored, making this
hack unnecessary. Disabling the hack removes the 1 second delay from the
message view displaying that was necessary for the 4.2 behavior but no longer
needed.

Change-Id: Ia9ba1d9217e26508285c1aea70aff9788a19f95e
Mms: Update IW translations

removed translations that aren't used.

Change-Id: I2d2ba620f52dc25a55b9af2d694ab6e72fc85517
Mms: PT-BR translations

Change-Id: Ie3b6334f79ee8078c7c9fb7fcd11eb78a628e5fe
Mms: FR translation

Change-Id: Ibde777d473047b5bc63464e046028ee53e6ae2cb
Send 'reject call with sms' on the correct subscription.

Send sms on the subscription on which the call is rejected.
Get subscription info from the intent 'ACTION_RESPOND_VIA_MESSAGE'
on which the call is rejected.

Change-Id: Id12239184da6e539c2b39ea799a71bd441443e1a
CRs-Fixed: 594214