summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiogo Ferreira <diogo@underdev.org>2016-10-06 09:29:43 (GMT)
committerDiogo Ferreira <diogo@underdev.org>2016-10-06 09:29:43 (GMT)
commitc824517d98057714b5234a4391863a60298f9ed5 (patch)
tree7a4f6e14adf89536ea4364e098f8a76c48a0aa18
parent60fd85ca6a06b9fdcc2ffcf120a692d90aa1d1ec (diff)
downloadandroid_packages_apps_CellBroadcastReceiver-c824517d98057714b5234a4391863a60298f9ed5.zip
android_packages_apps_CellBroadcastReceiver-c824517d98057714b5234a4391863a60298f9ed5.tar.gz
android_packages_apps_CellBroadcastReceiver-c824517d98057714b5234a4391863a60298f9ed5.tar.bz2
cellbroadcastreceiver: Enable channels 50, 919 and 4370 for mexico
Change-Id: I82712ac1789e0b4311d76a080cd1a0ae802a9db4 Ticket: FEIJAO-854
-rw-r--r--src/com/android/cellbroadcastreceiver/CellBroadcastConfigService.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/cellbroadcastreceiver/CellBroadcastConfigService.java b/src/com/android/cellbroadcastreceiver/CellBroadcastConfigService.java
index 5a48977..cf47f93 100644
--- a/src/com/android/cellbroadcastreceiver/CellBroadcastConfigService.java
+++ b/src/com/android/cellbroadcastreceiver/CellBroadcastConfigService.java
@@ -380,6 +380,13 @@ public class CellBroadcastConfigService extends IntentService {
SmsManager.CELL_BROADCAST_RAN_TYPE_GSM);
}
+ // Enable channels 50, 919 and 4370 for mexico
+ if ("mx".equals(tm.getSimCountryIso()) || "mx".equals(tm.getNetworkCountryIso())) {
+ manager.enableCellBroadcast(50, SmsManager.CELL_BROADCAST_RAN_TYPE_GSM);
+ manager.enableCellBroadcast(919, SmsManager.CELL_BROADCAST_RAN_TYPE_GSM);
+ manager.enableCellBroadcast(4370, SmsManager.CELL_BROADCAST_RAN_TYPE_GSM);
+ }
+
if(this.getResources().getBoolean(R.bool.enable_colombia_channels) == true) {
if (DBG) log("enabling channels 919, 921, 4370");
manager.enableCellBroadcast(919, SmsManager.CELL_BROADCAST_RAN_TYPE_GSM);