From 60fe69877102b88c02fad3ea3503fe3f9750cbc8 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 Bug: 151112539 Test: Switched on ActivityManagerDebugConfig.DEBUG_BACKGROUND_CHECK for SIM_STATE_CHANGED Test: android.telephony.cts.TelephonyProtectedBroadcastsTest Merged-In: Id280fc2128b84dda2a8184dfa32ecc5b8f787afb 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 32d330e1a47f0..921ad3c746818 100644 --- a/core/java/android/telephony/CellBroadcastIntents.java +++ b/core/java/android/telephony/CellBroadcastIntents.java @@ -81,7 +81,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 b0d2de17527d4..ad001da899ecd 100644 --- a/data/etc/framework-sysconfig.xml +++ b/data/etc/framework-sysconfig.xml @@ -19,11 +19,29 @@ - - + + + - + + + + + + + + + + + + + + + + + +