From 941b7ec4389d69a920e260abdda791f0def1fa52 Mon Sep 17 00:00:00 2001 From: Ping Sun Date: Thu, 2 Jun 2016 16:32:21 +0800 Subject: [PATCH] Fix MSIM issue of broadcast intent overwritten unintentionally Since the following broadcast intent is differentiated only by extra for each SIM, if intents for Slot1 and Slot2 are sent in succession, Slot1 intent can be overwritten, causing loss of information. To prevent the issue, remove "FLAG_RECEIVER_REPLACE_PENDING" from intent. - ACTION_SIGNAL_STRENGTH_CHANGED Bug: 30296957 Change-Id: I281f8063b2bf10efe3165ea29305265bd9d3eb30 --- services/core/java/com/android/server/TelephonyRegistry.java | 1 - 1 file changed, 1 deletion(-) diff --git a/services/core/java/com/android/server/TelephonyRegistry.java b/services/core/java/com/android/server/TelephonyRegistry.java index 2932a1ac79a40..62f4f19a6028a 100644 --- a/services/core/java/com/android/server/TelephonyRegistry.java +++ b/services/core/java/com/android/server/TelephonyRegistry.java @@ -1381,7 +1381,6 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub { } Intent intent = new Intent(TelephonyIntents.ACTION_SIGNAL_STRENGTH_CHANGED); - intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); Bundle data = new Bundle(); signalStrength.fillInNotifierBundle(data); intent.putExtras(data);