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: google please cleanup your translations....Mms cleanup

it is really at the moment a nightmare to see compile errors when
getting 100000 of warnings. Whatever we removed already on some
packages the warnings....but still a lot are there

Change-Id: Ibb8709e0d946d69fc13905dec19d2df3e5d989ce
Merge tag 'android-4.4.2_r1' into HEAD

Android 4.4.2 Release 1
Add Hungarian Translation

Change-Id: I44c690d2ec05dc42e2a57069c2fbaff23a40c701
TRDS: Dark Mms

PS2:
- added SlimRoms License

PS3:
- fix quickpopup
- fix numberdialog (both are hardcoded)

PS4:
- quickmessage font/divider theme support
- quickmessage textfield changed to white
- stretchable bubbles support

PS5:
- redirect colors of original layout xml

PS6:
- adjust text color of message counter and timestamp

PS7:
- fix chip recipient background

Change-Id: I1edc2236bc086b35fb1a657dd040b5057c1b84b5
Mms: remove duplicate "send" option in menu

Not sure how this got duplicated... but we'll take one of them out.
The mIsSmsEnabled checked is superfluous, as it is checked in
isPreparedForSending() anyway! ;)

Change-Id: I8d31ae8e81de77efb9e1ca8c17f97b4396f559b9
Mms: Clean up delivery report dialog.

Instead of launching another activity just to show the delivery report,
mimic how showMessageDetails works instead, using AlertDialog.Builder.
This ports the dialog over to Holo as well.

Signed-off-by: angelsl <hidingfromhidden@gmail.com>
Change-Id: Ia7ee549fe7ed9770a70482a042ebbc4bc12bab21
Mms Bubbles

Change-Id: Ic0d7bc714cad2464524cf14a3a05306c2b1777d3
trds: Mms Bubbles

Change-Id: I50fc993732f2ea51d460fa736a860e76b001c53c
Merge "Mms: Clean up delivery report dialog." into kk4.4
transparent triangle

not needed for new bubbles

Change-Id: Ib2defbcd5301daa48f2ccf1b98b950b2e68c6dce
trds: cleanup!

Change-Id: I74cf0f399a924bfd0ba1812f8dd01b066520aa07
Updated Hungarian Translations

Change-Id: Ie7baf423ed44340a8752257dcbbba7ec7fcc9910
improved mms bubbles

cleaner and simpler bubbles
fixed timestamp margin as well

Change-Id: Iaf0aa9b986c9974ab21e0bd96accb3d8dbe74ee8
Mms: CS Translation - taken original slim_strings and translated

Change-Id: Id85bb545d09793d88cdc80abd597851055efdea9
Mms: reload default drawable if it changed during the instance

Mms is holding the default contact drawable in a static drawable. This
has the side effect that when the drawable changes (eg because of an
configurationchange (in our special case TRDS) that the old drawable is
still holded and it does not update to the current actual one.

To avoid this make a fast compare with getConstantState and if it is
different refetch the default drawable and assign it to the static
drawable.

This fixes reported issue when Mms is open and the user switches it
and default images does not switch.

Change-Id: Id369588d675643e8ea8d443a39849ba9eeef0560
Merge "Mms: reload default drawable if it changed during the instance" into kk4.4
Fix Null pointer expection when Phone is in low memory

ThumbnailManager tries to get the bitmap and throws null
pointer exception when cache is null.

Change-Id: Iba557e5d9aa6c0990ee47c79788c4c1c55121c63
CRs-Fixed: 539366
Fix the send button disappearance after selecting the forward recipient

During onRestart method the bottom panel is hidden for the
ComposeMessageActivity.

Change-Id: Ica243945237003a37d0832c556e45c5b43dd0497
CRs-Fixed: 568266
The draft still exists after forwarding mms to the same sender

Forward message will be saved as draft before sent, and it will reload
this draft after come back to the current thread.

Do not load the draft for the same recipient address when forwarding
mms.

Change-Id: I2cc873a9bcbdf0e6481391a0237eb1d19f40d137
CRs-Fixed: 568255