diff --git a/src/com/android/settings/TetherService.java b/src/com/android/settings/TetherService.java index 6d359f2de17..610d3203b9c 100644 --- a/src/com/android/settings/TetherService.java +++ b/src/com/android/settings/TetherService.java @@ -252,7 +252,8 @@ public class TetherService extends Service { Intent intent = new Intent(provisionAction); int type = mCurrentTethers.get(index); intent.putExtra(TETHER_CHOICE, type); - intent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND); + intent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND + | Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND); return intent; } diff --git a/tests/unit/src/com/android/settings/TetherServiceTest.java b/tests/unit/src/com/android/settings/TetherServiceTest.java index bec3e7e6630..899ea7a1f74 100644 --- a/tests/unit/src/com/android/settings/TetherServiceTest.java +++ b/tests/unit/src/com/android/settings/TetherServiceTest.java @@ -415,6 +415,7 @@ public class TetherServiceTest extends ServiceTestCase { private void sendResponse(int response, Context context) { Intent responseIntent = new Intent(TEST_RESPONSE_ACTION); + responseIntent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND); responseIntent.putExtra(TetherService.EXTRA_RESULT, response); context.sendBroadcast( responseIntent, android.Manifest.permission.CONNECTIVITY_INTERNAL);