OSDN Git Service

Fix MSIM issue of broadcast intent overwritten unintentionally
authorPing Sun <ping.x.sun@sonymobile.com>
Thu, 2 Jun 2016 08:32:21 +0000 (16:32 +0800)
committerToshiya Ikenaga <toshiya.ikenaga@sonymobile.com>
Fri, 18 Nov 2016 22:25:38 +0000 (07:25 +0900)
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

index 2932a1a..62f4f19 100644 (file)
@@ -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);