From 324ca000ac65f4f356336c2254cdaad74d995de2 Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Thu, 30 Jan 2020 00:30:29 -0800 Subject: [PATCH 1/2] Refactored cell broadcast area info support Area info cell broadcast messages are not handled by cell broadcast receiver anymore. Instead, they will be processed in cell broadcast service. Privileged apps that are interested in getting the information will need to get it directly from cell broadcast service. Note this is only enabled for certain countries and carriers. Test: Manual Bug: 141318859 Bug: 141425194 Merged-In: I2245c39f679d0ad94c9a1325edc553f362fdce7c Change-Id: I2245c39f679d0ad94c9a1325edc553f362fdce7c (cherry picked from commit 80e432043582a14dc9d7382ed81b0699b9a01e49) --- core/res/res/values-mcc334/config.xml | 23 +++++++++++++++++++++++ core/res/res/values-mcc732/config.xml | 23 +++++++++++++++++++++++ core/res/res/values-mcc740/config.xml | 23 +++++++++++++++++++++++ data/etc/privapp-permissions-platform.xml | 3 +++ 4 files changed, 72 insertions(+) create mode 100644 core/res/res/values-mcc334/config.xml create mode 100644 core/res/res/values-mcc732/config.xml create mode 100644 core/res/res/values-mcc740/config.xml diff --git a/core/res/res/values-mcc334/config.xml b/core/res/res/values-mcc334/config.xml new file mode 100644 index 0000000000000..e99c9a028178e --- /dev/null +++ b/core/res/res/values-mcc334/config.xml @@ -0,0 +1,23 @@ + + + + + + true + diff --git a/core/res/res/values-mcc732/config.xml b/core/res/res/values-mcc732/config.xml new file mode 100644 index 0000000000000..e99c9a028178e --- /dev/null +++ b/core/res/res/values-mcc732/config.xml @@ -0,0 +1,23 @@ + + + + + + true + diff --git a/core/res/res/values-mcc740/config.xml b/core/res/res/values-mcc740/config.xml new file mode 100644 index 0000000000000..e99c9a028178e --- /dev/null +++ b/core/res/res/values-mcc740/config.xml @@ -0,0 +1,23 @@ + + + + + + true + diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index 03f31aecb3337..646325bdfd628 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -373,4 +373,7 @@ applications that come with the platform + + + From 6bc3f1847ea3cd84a7c4412cd333259e278914b9 Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Mon, 3 Feb 2020 13:58:28 -0800 Subject: [PATCH 2/2] Added device-based geo-fencing debug info support Added debug information support for DBGF. Follow the steps below to see the debug info. 1. Dial *#*#CMAS#*#* in the dialer to enable cell broadcast testing mode on a debug build. 2. Go to emergency alert settings->emergency alert history 3. On the right-upper corner, choose "show all messages". 4. Long press on the message and select show message details. Test: Manual Bug: 144152683 Merged-In: I791a8a482705ff2fd53f77a56c02969f020f888d Change-Id: I791a8a482705ff2fd53f77a56c02969f020f888d (cherry picked from commit b670fbd0fe3ccb28d4b6ea3648d37df2d22ffca5) --- telephony/java/android/telephony/SmsCbMessage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/telephony/java/android/telephony/SmsCbMessage.java b/telephony/java/android/telephony/SmsCbMessage.java index c0dfec9a11728..752707e5a5dce 100644 --- a/telephony/java/android/telephony/SmsCbMessage.java +++ b/telephony/java/android/telephony/SmsCbMessage.java @@ -586,6 +586,7 @@ public final class SmsCbMessage implements Parcelable { cv.put(CellBroadcasts.SERIAL_NUMBER, getSerialNumber()); cv.put(CellBroadcasts.SERVICE_CATEGORY, getServiceCategory()); cv.put(CellBroadcasts.LANGUAGE_CODE, getLanguageCode()); + cv.put(CellBroadcasts.DATA_CODING_SCHEME, getDataCodingScheme()); cv.put(CellBroadcasts.MESSAGE_BODY, getMessageBody()); cv.put(CellBroadcasts.MESSAGE_FORMAT, getMessageFormat()); cv.put(CellBroadcasts.MESSAGE_PRIORITY, getMessagePriority());