From 8acac15ced053fe22eb735490c660762ac5c4fa8 Mon Sep 17 00:00:00 2001 From: Daniel Bright Date: Wed, 29 Jan 2020 15:10:04 -0800 Subject: [PATCH] Whitelist telephony broadcasts for bground use Whitelisted telephony broadcasts using the intent background flag. Ensured that each broadcast was protected manually through cts test below. Bug: 148181747 Test: Switched on ActivityManagerDebugConfig.DEBUG_BACKGROUND_CHECK for SIM_STATE_CHANGED Test: android.telephony.cts.TelephonyProtectedBroadcastsTest Change-Id: Id280fc2128b84dda2a8184dfa32ecc5b8f787afb --- .../telephony/CellBroadcastIntents.java | 1 - data/etc/framework-sysconfig.xml | 24 ++++++++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/core/java/android/telephony/CellBroadcastIntents.java b/core/java/android/telephony/CellBroadcastIntents.java index 2e0810835a52b..19202f364e3b6 100644 --- a/core/java/android/telephony/CellBroadcastIntents.java +++ b/core/java/android/telephony/CellBroadcastIntents.java @@ -71,7 +71,6 @@ public class CellBroadcastIntents { int initialCode, int slotIndex) { Intent backgroundIntent = new Intent(Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION); backgroundIntent.putExtra(EXTRA_MESSAGE, smsCbMessage); - backgroundIntent.setFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND); putPhoneIdAndSubIdExtra(context, backgroundIntent, slotIndex); String receiverPermission = Manifest.permission.RECEIVE_SMS; diff --git a/data/etc/framework-sysconfig.xml b/data/etc/framework-sysconfig.xml index 7296cfdfbec7a..3d78eb9c59b7c 100644 --- a/data/etc/framework-sysconfig.xml +++ b/data/etc/framework-sysconfig.xml @@ -19,11 +19,29 @@ - - + + + - + + + + + + + + + + + + + + + + + +