Do not allow SMS event receivers to abort the broadcast
David Braun [Wed, 16 Oct 2013 23:17:28 +0000 (16:17 -0700)]
This prevent apps from aborting the SMS related broadcasts so that all
apps interested in seeing them will now receive the broadcast.

Bug: 11259375 Do not allow apps to abort SMS/MMS broadcasts
Change-Id: I2620899b580b8861efebcc39408c875b4033cc53

src/java/com/android/internal/telephony/InboundSmsHandler.java

index 3eb77cf..4288fcc 100644 (file)
@@ -661,6 +661,7 @@ public abstract class InboundSmsHandler extends StateMachine {
      */
     void dispatchIntent(Intent intent, String permission, int appOp,
             BroadcastReceiver resultReceiver) {
+        intent.addFlags(Intent.FLAG_RECEIVER_NO_ABORT);
         mContext.sendOrderedBroadcast(intent, permission, appOp, resultReceiver,
                 getHandler(), Activity.RESULT_OK, null, null);
     }