• Home
  • History
  • Annotate
  • only in /packages/apps/CellBroadcastReceiver/src/
History log of /packages/apps/CellBroadcastReceiver/src/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3d91c54e6649ec46ddd728079702aba2f0ae96b8 17-Oct-2015 Jack Yu <jackyu@google.com> DO NOT MERGE. Fixed emergency alert TTS not playing on bluetooth speaker.

Added an extra param so TTS engine knows where to route the audio.
Also release the audio focus at the time after tone + TTS are played,
not just tone so TTS won't mix with other audio stream (e.g. music)

bug: 24366038
Change-Id: I8f045f9264ea49d00125a53f3180c9924b02b08c
om/android/cellbroadcastreceiver/CellBroadcastAlertAudio.java
170b39b30ef6340a99fde0e1e6a46cf935e4cde6 29-Sep-2015 Jack Yu <jackyu@google.com> Fixed that emergency alert reminder does not trigger every 2 minutes.

The alert was not triggered because the device was in deep sleep. The
OS shifts the alarms in order to minimize wakeups and battery use. Since
this is emergency scenario, we use AlarmManager.setExact to trigger
the alarm in every 2 or 15 minutes precisely.

bug: 24391040
Change-Id: I7a3812b48543a6e4dfc0efe4791d21da9feab771
(cherry picked from commit 2c71594ba2d74e37a2e80948c3bb36150ff9ad6d)
om/android/cellbroadcastreceiver/CellBroadcastAlertReminder.java
0564f700425f767fa5c86e7828ec4f16554c220e 25-Sep-2015 Jack Yu <jackyu@google.com> Merge "Fixed that "Turn on notification" does not work." into mnc-dr-dev
3f85c34423cf35cf92a4c1f374689959dc0ed55e 24-Sep-2015 Jack Yu <jackyu@google.com> Fixed that "Turn on notification" does not work.

We should set the preference change listener if turn on
notification option is available. Previously we only do that
when developer options is turned on.

bug: 23886750
Change-Id: I0850d39c0478f6772fbe89aeda0faa3894526b36
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
325f3be30df819355b77d32cdf15bb535c219484 16-Sep-2015 Jack Yu <jackyu@google.com> Merge "Always show "Turn on Notification" for some carriers." into mnc-dr-dev
3f0f50fec447cf296a86ebcdfbe8f6e5dada6040 16-Sep-2015 Jack Yu <jackyu@google.com> am a0b0023a: Fixed the incorrect audio duration used for ETWS messages.

* commit 'a0b0023aceb11d95af802d80bb25a852ca84755b':
Fixed the incorrect audio duration used for ETWS messages.
a0b0023aceb11d95af802d80bb25a852ca84755b 16-Sep-2015 Jack Yu <jackyu@google.com> Fixed the incorrect audio duration used for ETWS messages.

The incorrect audio duration caused no beep and no text-to-speech
messages played when the device recieves ETWS messages. Fixed by
multiplying the duration by 1000.

Bug: 23946090
Change-Id: Ic36281d30f3eefb59ca9c4c192245ccf16768805
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
5c99d6fe60b213790fbdaa9d05c5d11fc8a3652c 15-Sep-2015 Jack Yu <jackyu@google.com> Make CMAS monthly test messages additional language enabled for all SIMs.

Before we only enabled this for Taiwan SIMs (mcc: 466), now make this
changes apply for all SIMs because the when Taiwanese government tests
this, they don't use Taiwanese SIMs.

bug:23892625
Change-Id: I670025231d7bdca1d11e25c2ecfba9f473f44f28
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
775699f2776c4822a07742e4fb8b495687864966 15-Sep-2015 Jack Yu <jackyu@google.com> Always show "Turn on Notification" for some carriers.

For Softbank we want to show "Turn on Notifications" checkbox in
Settings->More->Emergency broadcasts setting menu regardless
developer options is turned on or not.

bug:23886750
Change-Id: Ia926505a24412897cd1cc313b0adaa7c277efdc1
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
1eb6c1cf7b8f8702a9a313dcdce81d0e12077897 10-Sep-2015 Jack Yu <jackyu@google.com> Added CMAS monthly test additional language messages support.

Added CMAS monthly test additional language messages support if
the SIM or current network's country is Taiwan. Allowing
users to turn on/off through
Settings->More->Emergency broadcasts->Show CMAS test broadcasts
(This hidden menu is only shown when Developer options is turned on).

bug: 23892625
Change-Id: I2433abd3b747acb2d3e62d506119f406c7317975
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
07a6c46779929e0380bc8963ab322e58e5e1dcaa 02-Sep-2015 Jack Yu <jackyu@google.com> Fixed that severe CMAS messages were not disabled.

This fixed the bad user experience that when the user disables
both extreme and severe emergency messages through the UI, the
user is still able to get the severe emergency messages.

bug: 23644848
Change-Id: I70c26066dd500be0f57516132e68754cbfbb7847
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
870b4faa87c2cc67e2cc214da7ed31693ebb13fc 04-Aug-2015 Jack Yu <jackyu@google.com> Merge "Fixed that CMAS duplicate detection is not working" into mnc-dev
631632ab58391fc1be9c08d5e473731def0c9b0f 03-Aug-2015 Jack Yu <jackyu@google.com> Fixed that CMAS duplicate detection is not working

Now we'll have different duplicate detection algorithm between
ETWS and CMAS message.

If this is an ETWS message, then we want to include the body message
to be a factor for duplicate detection. We found that some Japanese
carriers send ETWS messages with the same serial number,
therefore the subsequent messages were all ignored.

In the other hand, US carriers have the CMAS requirement that only
serial number, location, and category should be used for duplicate
detection.

bug: 22787502
Change-Id: I92ef2d47a76622ee1be0d23ae26bf20a1dcaf203
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
db67df1f6c753963318cdc508c8342cdc941271f 03-Aug-2015 Julia Reynolds <juliacr@google.com> Don't vibrate cell broadcast alerts if phone is on silent.

Bug: 10226186
Change-Id: I1b7d470cf3b9c9b21c79f54e08285fd06478e4e8
om/android/cellbroadcastreceiver/CellBroadcastAlertAudio.java
dd9555e7e5eb29852576197de1c61fa99007ba34 22-Jul-2015 Jack Yu <jackyu@google.com> Allow carriers to force disable ETWS/CMAS test messages.

This feature can be enabled in carrier config XML. When enabled, the user will not see
ETWS/CMAS enable/disable option in emergency broadcast preference menu.

bug: 22396039
Change-Id: I67b09e283a85f2af682fa7f2d1cd81d7d7db5cf2
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
c4ef6116a83db3b93f93d32be29a36bf54622d9d 14-Jul-2015 Sanket Padawe <sanketpadawe@google.com> Make CellBroadCast MSIM aware

Bug: 22360525
Change-Id: Ie5306b47628e4f9a547a4f8fde7fa842a77e65a7
om/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
om/android/cellbroadcastreceiver/CellBroadcastAlertReminder.java
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
141aca85bca75dd69830539594ac74115f966568 13-Jul-2015 Amit Mahajan <amitmahajan@google.com> Send broadcast twice - once for READ_PHONE_STATE & once for PRIVILEGED

Bug: 22376654
Change-Id: I437f9bf324950cb70bae5be76699824da5897a6f
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
50595fdfb0e3b876c80a5937b43d1cc95c36b846 22-Jun-2015 Jack Yu <jackyu@google.com> Added the body hash code to the message id for duplicate message detection.

bug: 21103998
Change-Id: If077d89867f75659bd2ee73985f950dd2f5d37c8
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
75e70083cfaab821a3847b56e7cbb55c8283687a 16-Jun-2015 Amit Mahajan <amitmahajan@google.com> Change to make serviceState in CellBroadcastReceiver static.

BroadcastReceiver obj is considered by system to be finished after
onReceive() so state cannot be maintained as a non-static member
variable of receiver.

Bug: 17976174
Change-Id: Ia26843c3f83cfcc6f8ebe2ee1da7676eb57b07e1
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
7f6bd914f3ed40979239bd0ff2cb4760ef6718ca 03-Jun-2015 Amit Mahajan <amitmahajan@google.com> Change to ensure CellBroadcast service does not hold wakeLock indefinitely

- If TextToSpeech.speak() fails, stop the service
- Stop service onUtteranceCompleted

Bug: 21580321
Change-Id: I04b31657a19ffc73f13ad1a83a951d02238ace85
om/android/cellbroadcastreceiver/CellBroadcastAlertAudio.java
4a86bd30bf25c528f16d2d0b5162549f6c99c59c 03-May-2015 Svet Ganov <svetoslavganov@google.com> Add read cell broadcast app op - cell broadcast receiver

Change-Id: I3ad632a514bf68dc570cef353a61d6ba16b52318
om/android/cellbroadcastreceiver/CellBroadcastContentProvider.java
0224babc0bec527dd7e44babb2cd644836f8e1fb 14-Nov-2014 xinhe <xinhe@google.com> CMAS opt-out setting does not work when switching from Secondary user to
Device owner

Fix includes:
(1) Only device owner is alloed to set/change preference
(2) CBS intents are sent to all users
(3) Cell broadcast alter is only displayed on the active user
(4) Cell broadcast messages are saved in all users' mail box
(5) Cell broadcast test app send intents to all users
(6) Remove airplane mode trigger cellbroadcast MID configure. This should
be taken care of by ServiceStateChange

Bug:18223949
Change-Id: I6b6162e7f52a6cd958ef08267f7f239e70489ec8
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastListActivity.java
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
be3d818f9a99b783e5d40f1829c76980c637dfb3 08-Nov-2014 xinhe <xinhe@google.com> Update enabe/disableCellBroadcast with RAN argument

Allow them to take an explicit argument indicating GSM or CDMA range and
fix the extreme alert disable error.

Bug: 18202935
Change-Id: If6365677c782604abfbe5ad49aa01859ebc05a09
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
0220a7cbf9bf18af0b4453647b436c7c47d7b6d6 06-Nov-2014 Sreevidya <a21190@motorola.com> Make Severe alerts dependent on Extreme alerts

As per ATIS-TIA-J-STD-100, Joint CMAS MDB document,
Severe alerts shall be dependent on Extreme.

Unregister Severe alerts along with Extreme alerts,
if Extreme alerts are unchecked.

Bug:18223949
Change-Id: I21e7e062d519ea47be22600481c4d7de2d6185f0
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
7038d7caea4420724e76039d70f87d86282b6c92 04-Nov-2014 xinhe <xinhe@google.com> The Cellboradcast remind sound is too soft

Bug:18017320
Change-Id: I538b617f02347670778aa096d844dc29adf2bec3
om/android/cellbroadcastreceiver/CellBroadcastAlertReminder.java
08454ad6c6dd6e37069e40a83a67e4b680192ed9 29-Oct-2014 xin He <xinhe@google.com> Revert "Register both SMS-B and CB channels to support LTE"

This reverts commit cba619c3e8f416683e7b8dc44af9a0e9145b2ad6.

The original change try to turn on cellbroadcast listening on both GSM and CDMA
channels at that same time.Thus some unexpected cellbroadcast message come in.
We plan to revert this change.

Bug:18128785
Change-Id: I3f6ef385659ddf6446f7986746cec61013de1362
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
cba619c3e8f416683e7b8dc44af9a0e9145b2ad6 08-Oct-2014 Sreevidya <a21190@motorola.com> Register both SMS-B and CB channels to support LTE

Bug:17892427
Change-Id: Ibf66b230fe9743a589b3adea22f9bde1fba68c99
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
2ed83017c08758e9f215a3dd36242c17a7c0bc6c 12-Sep-2014 aniket <aniket@motorola.com> PLMN10 PWS test fails for Taiwan region certification

Solution: Update 4383 messageId name as defined in framework
SmsCbConstants.java.

Bug: 17886894
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
0a2aef9d9ece08c4821f3eaf8208314af4d77dd0 01-Oct-2014 xinhe <xinhe@google.com> Fix for CMAS is not turned on

CMAS is not turned on for several reasons:
(1) Exception happends when default SMS sub Id is not available.
(2) Cellbroadcast thread can die before the servicestate change triggered

Bug:17571958
Change-Id: I7b210226fa24f266896763ff80235c4ed4b936eb
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
254c7fee700d754fff3d62f3d35ca13f12752b7b 30-Aug-2014 Daniel Sandler <dsandler@android.com> Fix text colors in the CellBroadcast list.

Also make sure the notification form is visible on
lockscreens, and other L improvements.

Bug: 17311748
Bug: 17333464
Change-Id: I23231a767d298f7a10d6c484d0beca075799382e
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
b0b97be3c5c11b25b620660525aeb6919c3bccac 12-May-2014 Julia Reynolds <juliacr@google.com> Settings user restriction changes: cell broadcasts

Bug: 14081992
Change-Id: Ibfdecf85c981174c6992b8a14341f52d31c9f40f
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
3cd541f9b99ec406ac51b74b4471301e1727bad8 15-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Search - update CellBroadcastSearchIndexableProvider

- use the queryNonIndexableKeys(...) API for returning the non
indexable Strings (thru their key)

Change-Id: I29623e039e1ceebe5d580bfe4e279aefe4eda855
om/android/cellbroadcastreceiver/CellBroadcastSearchIndexableProvider.java
352d68a1f9397795a9124d64bbbc3a9d3c22139f 12-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Update CellBroadcastSearchIndexableProvider for supporting queryNonIndexableKeys(...)

- add the new requested method "queryNonIndexableKeys" from the contract

Change-Id: Ieb5220cdbc7071f3ec932078049deba46008877a
om/android/cellbroadcastreceiver/CellBroadcastSearchIndexableProvider.java
2db64cf341fb8ffcce5c548bb62b6bda55baaf05 10-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Fix CellBroadcastSearchIndexableProvider log tag

- use the correct log tag

Change-Id: I19baa07f8ce7624f2436ae6684f7931cfc44392d
om/android/cellbroadcastreceiver/CellBroadcastSearchIndexableProvider.java
eda3757c9a738533f9ee01d0d2a16eb3847d46b0 10-Apr-2014 Fabrice Di Meglio <fdimeglio@google.com> Add "Cell broadcasts" settings indexing for Search in Settings

- make the apk a privileged one (required for Settings Search)
- add CellBroadcastSearchIndexableProvider which is a SearchIndexablesProvider
for providing the search data to index

Related to bug #13929390

Change-Id: Ia25f613a01623339fa78ddf10eb4f1c471fd833e
om/android/cellbroadcastreceiver/CellBroadcastSearchIndexableProvider.java
b8811919bee383b5ef3f6dde88071b1daa16ab5f 18-Feb-2014 Wink Saville <wink@google.com> Merge "CBS : Update the "Delete All" display."
031abe308236681053d57b1816158f73e1d474be 13-Nov-2013 Jake Hamby <jhamby@google.com> Enable Cell Broadcast channels 919-928 for Israel.

At boot time, enable CB channels 919-928 for networks and
SIM cards in Israel (government mandated requirement).

Bug: 11411063
Change-Id: Ied78f735d6ecf948a03a012e5dc5ffebfffa8103
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
74bb9795fc2aed9b99c7825869377baa6b4a8134 13-May-2013 Anju Mathapati <anjucm@codeaurora.org> Use proper check to detect duplicates for CMAS messages

As per spec 3GPP 23.041, in order to determine a duplicate,
combination of message identifier, serial number and PLMN
should be used.

bug: 10971065
Change-Id: I59d2a828bc7a7a9e42a460168521a5641799dd76
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
faaf63301da2ec840a9fa750196edeb1f74c23c5 08-May-2013 Jake Hamby <jhamby@google.com> am 2e572064: Merge "4373 & 4374 part of Severe Alerts"

* commit '2e572064f74d19a91436c6ff7723c9a18230f954':
4373 & 4374 part of Severe Alerts
e348e51fedf48b9d07f5f737c0ae2ca10acdd356 29-Apr-2013 Anju Mathapati <anjucm@codeaurora.org> 4373 & 4374 part of Severe Alerts

As per specification change 23.041 V9.6.0,
4373 & 4374 have been moved from Extreme
Alerts to Severe Alerts

Bug: 8847901
Change-Id: I7d0b45a9285f89e57671ecc9e18cb6308e4cca34
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
om/android/cellbroadcastreceiver/CellBroadcastDatabaseHelper.java
66e6f6f52f19c8eac696dd8fbb0cee2e6044da61 04-Mar-2013 Jake Hamby <jhamby@google.com> Merge "Add CMAS reminder alert feature." into jb-mr2-dev
4589e8a8dde484424a96d4644772d793043ad029 27-Feb-2013 Jake Hamby <jhamby@google.com> Add CMAS reminder alert feature.

Carrier requirement: add "alert reminder" feature for CMAS alerts.
If the alert is not dismissed, a reminder sound is played based on
user preference. The user can select one of the following behaviors:
- "Once" = one alert reminder after 2 minutes
- "Every 2 minutes"
- "Every 15 minutes"
- "Off" = no alert reminders

The notification sound is the user's preferred notification sound, or
the user's preferred alarm sound as a fallback.

Bug: 7045215
Change-Id: Id7858a11dd9b2227aea8ea4a826ed0e78c1ffcb6
om/android/cellbroadcastreceiver/CellBroadcastAlertAudio.java
om/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
om/android/cellbroadcastreceiver/CellBroadcastAlertReminder.java
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
3880548e290746d40f0a669a2d35064bfc380095 07-Aug-2012 Rika Brooks <rbrooks@codeaurora.org> CB: Enable or Disable broadcast messages

Send set config broadcast messages to modem when user changes
preferences from CellBroadcast App. This is necessary to reduce
power consumpution.

Bug: 8285107
Change-Id: I6953aa8e07769437ccc3661f46e86faca602a4fb
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
e017261eb3887451451ceb00e2491016c44e2755 05-Feb-2013 Jake Hamby <jhamby@google.com> am 6d492b6d: Merge "CB: Add CDMA CMAS"

# By Rika Brooks
# Via Gerrit Code Review (1) and Rika Brooks (1)
* commit '6d492b6d2d628dd2c97b3ca5dd9e0a031905cb15':
CB: Add CDMA CMAS
a028d57ae657c29873abd1ba6969f6e4ce835eba 25-Jul-2012 Rika Brooks <rbrooks@codeaurora.org> CB: Add CDMA CMAS

Add CDMA CMAS enabling/disabling

Change-Id: I5d70175862547475f49e08328ab3dcc5560e9096
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
9ac73b3569a334ded9a794396d044b4db5f7d1ae 10-Jan-2013 Jake Hamby <jhamby@google.com> am 9e00abc6: Merge "CB: Turn on CMAS Presidential"

* commit '9e00abc65a29e51683e5cc55e848c6a05ac109a3':
CB: Turn on CMAS Presidential
9e00abc65a29e51683e5cc55e848c6a05ac109a3 10-Jan-2013 Jake Hamby <jhamby@google.com> Merge "CB: Turn on CMAS Presidential"
59d4bf2a4fe3c1ad7749b414da3f29ea7e91d4d2 05-Dec-2012 Emmanuel Delaude <emmanuelx.delaude@intel.com> CBS : Update the "Delete All" display.

In the CellBroadcastReceiver application, when the user
presses for the first time the menu touch, with one or
more SMS_CB received already, the "Delete All" is not
displayed.

This patch updates the menu display of the
CellBroadcastReceiver application. With this patch,
the "delete all" appears correctly in the settings
menu, if one or several SMS are present in the application.

Change-Id: I7bc6397ce4f024378cd964a44c6ec2a8f3bdbbf4
Author: Emmanuel Delaude <emmanuelx.delaude@intel.com>
Signed-off-by: Emmanuel Delaude <emmanuelx.delaude@intel.com>
Signed-off-by: Arun Ravindran <arun.ravindran@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 65376
om/android/cellbroadcastreceiver/CellBroadcastListActivity.java
8524c0a36abccf29818d6e18c1080208cfee3ec4 30-Nov-2012 Jake Hamby <jhamby@google.com> Enable support for area info cell broadcasts in Brazil.

Brazilian operators require support for displaying the most recent
area info cell broadcast (message identifier == 50) received.
Handle this with a broadcast that the Settings app can receive
and display in the status screen. Settings can also request
CellBroadcastReceiver to send the most recent area info received.

Also, when the SIM country code is Brazil, show the checkbox to
enable/disable channel 50 in cell broadcast settings, and enable
channel 50 in the radio at startup unless the user disables it.

Also update the test application to allow message identifier to be
set for GSM and UMTS cell broadcasts (excluding ETWS) for testing
the handling of different message identifiers, and change the
message identifier of the test cell broadcast PDUs from 50 to 1.
To override the message identifier, set the category field in the
test app to a non-zero value.

Bug: 7445881
Change-Id: Ibca8d33c32c0391d0d4eee444c86dd93878d7d1e
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
om/android/cellbroadcastreceiver/CellBroadcastReceiverApp.java
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
3500edaa3e297762f096fb84af9c83a2b12ff7de 30-Nov-2012 Jake Hamby <jhamby@google.com> Delay cell broadcast config until modem is ready to handle.

Delay setting cell broadcast configuration until the service state
changes to STATE_IN_SERVICE or STATE_EMERGENCY_ONLY. Some radios
will return a GENERIC_FAILURE if RIL_REQUEST_GSM_SET_BROADCAST_CONFIG
is sent before the radio is ready.

Bug: 7586093
Change-Id: I90d53365ce432d0382f042936dd1e2f4281d276c
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
4be1ab169dadd108cceff8f76067cf874bda9d97 19-Oct-2012 Jake Hamby <jhamby@google.com> Update CMAS duplicate message detection for carrier requirement.

There is a carrier requirement for CMAS to use only an in-memory
table for duplicate message ID detection. When the max number of
65535 messages is received, the oldest message ID is removed from
the list. After a reboot, a previously received message ID will be
considered a new message. This is required for CMAS lab testing.

The app does not care if there are multiple rows in the SQLite DB
with the same message ID, because the primary key is a unique ID.
Remove the duplicate message detection from the CBContentProvider
and use only the in-memory duplicate detection in CBAlertService.
This is safe for other types of alerts such as ETWS, and has the
benefit that a new alert will not be suppressed due to a very old
alert with the same message ID that was never deleted from the DB.

Message IDs are now stored in an ArrayList as well as a HashSet
in CellBroadcastAlertService. When the 65535 message limit is
reached, an index is used into the ArrayList to remove the oldest
message ID from the HashSet. The new message ID replaces the old
one in the ArrayList, so the size stays fixed at 65535 entries and
no array copies are needed to replace the oldest message ID.

Bug: 7045601
Change-Id: I2d08bf8131aa473648c5810913b62baa09a97756
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastContentProvider.java
57273ebfa13f96bf5aba9902b70e2b179fec9e4c 09-Oct-2012 Jake Hamby <jhamby@google.com> Multiple fixes to CMAS app.

* Allow screen to turn off after 30 seconds for emergency alerts.
* When multiple alerts are received, show them in reverse order.
* After showing the first CMAS alert received on device (other than
Presidential Alert), show opt-out dialog to allow user to
opt-in or out of the various levels of CMAS alert.
* Start/stop animating warning icon in activity pause/resume.
* When multiple non-emergency alerts are received, show them all
(most recent displayed first) when user selects the notification.
* For emergency alerts, start the dialog activity directly instead
of creating a PendingIntent and full screen notification.
* Correctly save/restore the list of alerts in the alert dialog
in onSaveInstanceState() when recreated after screen rotation.
* Fix test app to increment the message ID and to send the correct
alerts when multiple alerts are selected with 5 second delay.

Bug: 6993660
Bug: 7041847
Bug: 7045506
Change-Id: Ic3ec08f0ebd693244891a4bf3a29479b832c2a3e
om/android/cellbroadcastreceiver/CellBroadcastAlertAudio.java
om/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java
om/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastAlertWakeLock.java
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
om/android/cellbroadcastreceiver/CellBroadcastContentProvider.java
om/android/cellbroadcastreceiver/CellBroadcastListActivity.java
om/android/cellbroadcastreceiver/CellBroadcastOptOutActivity.java
om/android/cellbroadcastreceiver/CellBroadcastReceiverApp.java
om/android/cellbroadcastreceiver/CellBroadcastResources.java
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
c40199db68df62824ca67eaaf2bb967d62cd7850 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> Clean up Global settings stragglers.

Bug: 7242121
Change-Id: I76fe153787b5d925a1699b0923e4964ec4cb26af
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
5f5b3bde0c80e3ab648598a1283bde3442491afd 10-Sep-2012 Jake Hamby <jhamby@google.com> am 8f8925e4: am 68dc486f: Fix ETWS earthquake alert to vibrate when in silent mode.

* commit '8f8925e42b72cf48aa0e569b1bfded0daeb6cbe6':
Fix ETWS earthquake alert to vibrate when in silent mode.
8f8925e42b72cf48aa0e569b1bfded0daeb6cbe6 10-Sep-2012 Jake Hamby <jhamby@google.com> am 68dc486f: Fix ETWS earthquake alert to vibrate when in silent mode.

* commit '68dc486fc39a727c43199c2df72dcf658367a63f':
Fix ETWS earthquake alert to vibrate when in silent mode.
68dc486fc39a727c43199c2df72dcf658367a63f 10-Sep-2012 Jake Hamby <jhamby@google.com> Fix ETWS earthquake alert to vibrate when in silent mode.

A recent change to emergency alert behavior for CMAS is incompatible with
the required behavior for ETWS alerts:
- CMAS alerts should not vibrate when the device is in silent mode.
- CMAS alert audio/vibration should stop when a key is pressed.
- ETWS alerts should always vibrate, even if the device is in silent mode.
- ETWS alert audio/vibration should not stop if a key is pressed.
This change restores the correct behavior for ETWS alerts. Other alerts
will use the CMAS behavior.

Bug: 7116590
Change-Id: I1e1598ee5fb489be50138faf5cb56dabe8e802ed
om/android/cellbroadcastreceiver/CellBroadcastAlertAudio.java
om/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
96c440f02638c931d4934a9867bb98a16c507267 27-Aug-2012 Jake Hamby <jhamby@google.com> am 7d709256: am bf70b6f8: Fix behavior of CMAS audio alert and vibration.

* commit '7d7092565b7960e4f0823be387af9a89139f1136':
Fix behavior of CMAS audio alert and vibration.
7d7092565b7960e4f0823be387af9a89139f1136 27-Aug-2012 Jake Hamby <jhamby@google.com> am bf70b6f8: Fix behavior of CMAS audio alert and vibration.

* commit 'bf70b6f871ac58439b5e98a305478a773e872b68':
Fix behavior of CMAS audio alert and vibration.
e714228c88ce450095e390b425941b645a476c11 27-Aug-2012 Jake Hamby <jhamby@google.com> am c945c451: am a93243d1: Add "View details" context menu to CMAS alert list view.

* commit 'c945c45175e820946c0ad5cb5f77e464828a85da':
Add "View details" context menu to CMAS alert list view.
bf70b6f871ac58439b5e98a305478a773e872b68 25-Aug-2012 Jake Hamby <jhamby@google.com> Fix behavior of CMAS audio alert and vibration.

Fix bugs in CMAS audio alert and vibration behavior:
* Use audio duration of 10.5 seconds for all CMAS alerts.
* Fix vibration cadence to match CMAS tone cadence.
* Mute audio when volume or camera keys are pressed.
* Don't play audio or vibration in silent mode.
* Don't play audio in vibrate mode.
* Use notification volume rather than alarm volume.
* Catch IllegalStateExceptions when stopping audio/TTS (sometimes
throws "Unable to retrieve AudioTrack pointer for stop()").
* Add Vibrate setting to CMAS settings for disabling vibration.

Bug: 7045214
Change-Id: Id98ea4f42f326b9a253407b9bbe67ca6acc6a20c
om/android/cellbroadcastreceiver/CellBroadcastAlertAudio.java
om/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
c945c45175e820946c0ad5cb5f77e464828a85da 27-Aug-2012 Jake Hamby <jhamby@google.com> am a93243d1: Add "View details" context menu to CMAS alert list view.

* commit 'a93243d13ef0c0b29d871d483642e39c01db7c26':
Add "View details" context menu to CMAS alert list view.
a93243d13ef0c0b29d871d483642e39c01db7c26 24-Aug-2012 Jake Hamby <jhamby@google.com> Add "View details" context menu to CMAS alert list view.

For CMAS cell broadcasts, show the CMAS details (alert category,
response type, severity, urgency, certainty) in a context menu
accessed by long-pressing the alert and selecting "View details".
The CMAS alert details are no longer shown in the alert dialog
when a broadcast is received or short-pressed in the list view.

Also changed the CMAS detail headings and values to match the
strings in TIA-1149-0-1 (CMAS over CDMA systems) and removed the
trailing spaces from the heading string resources because they
are stripped out by aapt. Instead, we append a space between
the headings and the values.

For i18n purposes, we may want to consider switching to using a
format string for the headings so that the values can be placed
before, after, or in the middle of the heading.

Bug: 7041437
Change-Id: I18c40b14d8dcb811611c1da81e1cd2f6f51a5aa4
om/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
om/android/cellbroadcastreceiver/CellBroadcastListActivity.java
om/android/cellbroadcastreceiver/CellBroadcastListItem.java
om/android/cellbroadcastreceiver/CellBroadcastResources.java
2b8e4ddb079b781cd8035b99d3f34f0d15a99ca4 14-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 500f2c65: am b6e1c8ac: Merge "CellBroadcastReceiver: Use ICS alert drawable"

* commit '500f2c6529ebb7f7a5c33fbfbc1742a1d9fd07a9':
CellBroadcastReceiver: Use ICS alert drawable
500f2c6529ebb7f7a5c33fbfbc1742a1d9fd07a9 13-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am b6e1c8ac: Merge "CellBroadcastReceiver: Use ICS alert drawable"

* commit 'b6e1c8acc3957f6f8ec5ca4af60319fc9595b4fb':
CellBroadcastReceiver: Use ICS alert drawable
1da698fa2e034f9ed46c1e2dfea4368afb6c0026 13-Aug-2012 Björn Lundén <blunden2@gmail.com> CellBroadcastReceiver: Use ICS alert drawable

Still points to the GB compability drawable.

Change-Id: Ie0af5057113c5354537f098f3303e8e350883dad
om/android/cellbroadcastreceiver/CellBroadcastListActivity.java
b691740cc6c5e05f47b2eb8f0e766e6dfac9bfe7 05-Jun-2012 Rika Brooks <rbrooks@codeaurora.org> CB: Turn on CMAS Presidential

Per 3GPP TS 22.268 Section 6.2, CMAS Presidential must be turned on.

Change-Id: I37e2d583e132172658ffb2ed00db2dfd695bbc29
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
72a186a3cde308346152f85cfa1c98cc4bc11609 06-Aug-2012 Jake Hamby <jhamby@google.com> am 34d4c509: am d716ca0c: Add message ID cache to detect duplicate broadcasts.

* commit '34d4c509726ef0e326fb73d2eb7e9ff7fad6cd63':
Add message ID cache to detect duplicate broadcasts.
d716ca0cb5e074ec73099dd4b6b69dad55ae97d6 03-Aug-2012 Jake Hamby <jhamby@google.com> Add message ID cache to detect duplicate broadcasts.

Ignore received broadcasts with message ID and geo scope matching
an already received cell broadcast. This prevents the display of
duplicate alerts when the user has deleted the original broadcast.

Bug: 6853691
Change-Id: I879be8fbdd092e4b6d26ecc074034ce79a4e284c
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
e707fd18bd5170f8f8f0320921899f1683747c6b 25-Jul-2012 Ed Heyl <ed@google.com> Revert "am d76f8abb: am 21f2b9ac: Implement CMAS service category program results."
This change is part 2 of 2; and part 1 was skipped by the automerger...
this change can be added back when part 1 is merged in.

This reverts commit 33c5518c90f190999d17222d4c2661b70d890c02, reversing
changes made to 32c13f5f0f8dd84fac1d4989f082812c2bea9120.
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
21f2b9ac08ca93cee099292ba597b9a45e846030 25-Jul-2012 Jake Hamby <jhamby@google.com> Implement CMAS service category program results.

Correctly handle CDMA Service Category Program Data requests,
and send the SCPT response to the message center. Parcel SCPD
operations as an ArrayList instead of an array (current version
will throw ClassCastException when the array is cast).

Bug: 6853691
Change-Id: If629a0c9568a19b6c9d5160c704d3b41ef94bd6c
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
eef14be1b2b77fc08a6cc5ef301ba49ea54c0c0a 27-Jun-2012 Jake Hamby <jhamby@google.com> Fix CellBroadcastReceiver to ignore duplicate broadcasts.

Before showing an alert dialog or notification, check to
see if the broadcast message is already in the database.

Bug: 6506785
Change-Id: I3063ef3d5355301e4292437348cf789ff540e0b1
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastContentProvider.java
2356d5f753ed830c35394b16c6dc6529ba7ef31a 29-Jun-2012 Junichi Monma <monma@google.com> Enable ETWS setting via Setting and MMS apps.

Move general alert settings from developer preference category
to emergency preference category, and enable for ETWS builds and
when developer options is enabled.

CMAS settings are moved to the emergency alert category, and
removed individually for non-CMAS builds. The general alert
settings are removed individually for CMAS builds, unless
developer options are enabled. This satisfies requirements
for ETWS carriers (who do want those options available)
and CMAS carriers (who don't want those options and don't
want a separate preference category for CMAS).

Also disabled ETWS settings in the default config.xml
(used for CMAS). ETWS is enabled in the DoCoMo overlay.

Bug: 6758807
Change-Id: I2dea0a372ab239b1a9e3d7d28aae7f9772b9273d
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
d02a1005f5894c7fc66f42909d9ca8e7fb0983d3 07-Jun-2012 Jake Hamby <jhamby@google.com> Add new icon resources to CMAS app.

Add new launcher and notification icons to Cell Broadcast app.
Remove the old launcher icon.

Bug: 6464353
Change-Id: I7c4fe6697a3b1ad58756f995bd600cab27432fa8
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
da5c415f6d0999131e93384b5fb90422ada8e4da 18-Apr-2012 Jake Hamby <jhamby@google.com> Add ContentProvider for received cell broadcasts.

Enable apps with android.permission.READ_CELL_BROADCASTS to access the
database of received cell broadcasts via a ContentProvider at URI
"content://cellbroadcasts/". The ContentProvider is read-only, but
provides internal methods for the app to insert and delete broadcasts,
and to mark broadcasts as read. These methods are not exposed to other
applications.

Other changes:

* Added static log() methods for simpler debug logging.

* Moved CellBroadcastDatabase.DatabaseHelper to new top-level
CellBroadcastDatabaseHelper class after refactoring the original
CellBroadcastDatabase class out of existence.

* Removed the "Delete" dialog title per Android UI guidelines,
and changed from a custom view to a built-in dialog type.

Bug: 5752924
Change-Id: I1ad6a4d5248f851c53a638c2cb7e85a57ba6b811
om/android/cellbroadcastreceiver/CellBroadcastAlertAudio.java
om/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java
om/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
om/android/cellbroadcastreceiver/CellBroadcastContentProvider.java
om/android/cellbroadcastreceiver/CellBroadcastCursorAdapter.java
om/android/cellbroadcastreceiver/CellBroadcastCursorLoader.java
om/android/cellbroadcastreceiver/CellBroadcastDatabase.java
om/android/cellbroadcastreceiver/CellBroadcastDatabaseHelper.java
om/android/cellbroadcastreceiver/CellBroadcastDatabaseService.java
om/android/cellbroadcastreceiver/CellBroadcastListActivity.java
om/android/cellbroadcastreceiver/CellBroadcastListItem.java
om/android/cellbroadcastreceiver/CellBroadcastMessage.java
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
om/android/cellbroadcastreceiver/CellBroadcastReceiverApp.java
om/android/cellbroadcastreceiver/CellBroadcastResources.java
00b87064abfb9d254fbbf72110643d2e626365e6 14-Feb-2012 Jake Hamby <jhamby@google.com> Add CMAS over CDMA support to CellBroadcastReceiver app.

Add support for CMAS warning notifications over CDMA to
CellBroadcastReceiver app. The framework code now sends cell
broadcasts in a radio-technology independent form by passing the new
Parcelable android.telephony.SmsCbMessage class as the "message"
intent of the SMS_CB_RECEIVED_ACTION or SMS_EMERGENCY_CB_RECEIVED_ACTION,
instead of as a GSM/UMTS "pdu" byte array.

The database version has also been upgraded to encompass metadata for
ETWS and CMAS emergency broadcasts, as well as CDMA format broadcasts.

Bug: 5856308
Change-Id: I1b10d35d8aa6f0134260116980e4c326f86d2fe7
om/android/cellbroadcastreceiver/CellBroadcastAlertAudio.java
om/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java
om/android/cellbroadcastreceiver/CellBroadcastAlertFullScreen.java
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastAlertWakeLock.java
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
om/android/cellbroadcastreceiver/CellBroadcastCursorAdapter.java
om/android/cellbroadcastreceiver/CellBroadcastCursorLoader.java
om/android/cellbroadcastreceiver/CellBroadcastDatabase.java
om/android/cellbroadcastreceiver/CellBroadcastDatabaseService.java
om/android/cellbroadcastreceiver/CellBroadcastListActivity.java
om/android/cellbroadcastreceiver/CellBroadcastListAdapter.java
om/android/cellbroadcastreceiver/CellBroadcastListItem.java
om/android/cellbroadcastreceiver/CellBroadcastMessage.java
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
om/android/cellbroadcastreceiver/CellBroadcastReceiverApp.java
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
om/android/cellbroadcastreceiver/PrivilegedCellBroadcastReceiver.java
f88de2b37383f138b3c7d876bdc3b6b6fae7b728 27-Oct-2011 Jake Hamby <jhamby@google.com> Show alert dialog for operator-defined Cell Broadcast messages.

Enable display of received SMS broadcast messages as emergency alerts
(warning sound and alert dialog notification) if they are listed in the
range defined in "ro.cellbroadcast.emergencyids".

Bug: 5516275
Change-Id: Ic26aa28fa2b2201f32bff780db40d76883cd0860
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
om/android/cellbroadcastreceiver/CellBroadcastListActivity.java
om/android/cellbroadcastreceiver/CellBroadcastMessage.java
59610ad5074acb5305c353a53c01676eb8258887 27-Oct-2011 Jake Hamby <jhamby@google.com> Enable operator to customize cell broadcast emergency message IDs.

Add support to CellBroadcastReceiver app to load the list of message IDs
to enable for emergency cell broadcast from system property
"ro.cellbroadcast.emergencyids", if present. Message IDs are defined as
decimal or hex integer ranges, e.g. a value of
"0x1100-0x1102,0xA001-0xA3FF" will enable message ID ranges
0x1100-0x1102 and 0xA001-0xA3FF at system boot.

Bug: 5516275
Change-Id: I75e7fc48c4aba2d7a191f298d27f78b1c193b9e7
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
50a624a47ce645a7992e346e40a4e7ec5e0df9b7 18-May-2011 Jake Hamby <jhamby@google.com> Initial checkin of Cell Broadcast display application.

Simple Cell Broadcast application. Supports ETWS and CMAS emergency
messages, and can be extended to support other types of PWS
(Public Warning System) emergency warnings. User preferences for
configuration of each supported national system (ETWS, CMAS, and
channel 50 broadcasts for Brazil) are displayed/hidden based on the
values in res/values/config.xml.

For emergency alerts, a flashing warning icon and special alert sound
is played. If there is a text-to-speech engine installed for the
language of the broadcast, then the contents of the broadcast message
will be spoken after the alert sound is played. The user can disable
the text-to-speech feature in settings, as well as adjusting the
length of the alert sound and enabling/disabling delivery of several
emergency broadcast channels.

The CellBroadcastReceiverTests apk includes a launcher activity with
buttons for sending each type of test message. This APK must be signed
with the system certificate in order to acquire the BROADCAST_SMS
permission required to send test broadcasts to the app.

Change-Id: If9b61e02c246de5783b3e39cd100ea707ea80084
om/android/cellbroadcastreceiver/CellBroadcastAlertAudio.java
om/android/cellbroadcastreceiver/CellBroadcastAlertDialog.java
om/android/cellbroadcastreceiver/CellBroadcastAlertService.java
om/android/cellbroadcastreceiver/CellBroadcastAlertWakeLock.java
om/android/cellbroadcastreceiver/CellBroadcastConfigService.java
om/android/cellbroadcastreceiver/CellBroadcastDatabase.java
om/android/cellbroadcastreceiver/CellBroadcastDatabaseService.java
om/android/cellbroadcastreceiver/CellBroadcastListActivity.java
om/android/cellbroadcastreceiver/CellBroadcastListAdapter.java
om/android/cellbroadcastreceiver/CellBroadcastListItem.java
om/android/cellbroadcastreceiver/CellBroadcastMessage.java
om/android/cellbroadcastreceiver/CellBroadcastReceiver.java
om/android/cellbroadcastreceiver/CellBroadcastReceiverApp.java
om/android/cellbroadcastreceiver/CellBroadcastSettings.java
om/android/cellbroadcastreceiver/PrivilegedCellBroadcastReceiver.java