Do not use result receiver for test package
This reverts the behavior back to how it was in previous version of
android.
Test: manually trigger cb
Bug: 143383213
Change-Id: I221dce5b544f9b229ec08440b0748f8bc20ef8bd
diff --git a/src/com/android/cellbroadcastservice/CellBroadcastHandler.java b/src/com/android/cellbroadcastservice/CellBroadcastHandler.java
index 2c7a9e6..289abbf 100644
--- a/src/com/android/cellbroadcastservice/CellBroadcastHandler.java
+++ b/src/com/android/cellbroadcastservice/CellBroadcastHandler.java
@@ -482,12 +482,11 @@
String[] testPkgs = mContext.getResources().getStringArray(
R.array.config_testCellBroadcastReceiverPkgs);
if (testPkgs != null) {
- mReceiverCount.addAndGet(testPkgs.length);
Intent additionalIntent = new Intent(intent);
for (String pkg : testPkgs) {
additionalIntent.setPackage(pkg);
mContext.createContextAsUser(UserHandle.ALL, 0).sendOrderedBroadcast(
- additionalIntent, receiverPermission, appOp, mReceiver,
+ additionalIntent, receiverPermission, appOp, null,
getHandler(), Activity.RESULT_OK, null, null);
}
}