summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2011-07-28 11:51:11 -0700
committerRobert Greenwalt <rgreenwalt@google.com>2011-07-28 11:51:11 -0700
commit98c79e53c0f24e98910a1ab130ec77d2ae707ed4 (patch)
treea3afdc2632ae800c3665968e18aa80214c9fad6a
parent06a2895b58d6d8ecc3fc5dffa8c5d8c4f95216a5 (diff)
downloadframeworks_base-98c79e53c0f24e98910a1ab130ec77d2ae707ed4.zip
frameworks_base-98c79e53c0f24e98910a1ab130ec77d2ae707ed4.tar.gz
frameworks_base-98c79e53c0f24e98910a1ab130ec77d2ae707ed4.tar.bz2
Stop sending tethering broadcasts during boot.
Well, actually they do go out, but they won't try to start anybody now until after boot. bug:5088272 Change-Id: Iaaf7a1e4b300e0afc3901ecfd225a77084bd0954
-rw-r--r--services/java/com/android/server/connectivity/Tethering.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/java/com/android/server/connectivity/Tethering.java b/services/java/com/android/server/connectivity/Tethering.java
index ce45998..ae8b89d 100644
--- a/services/java/com/android/server/connectivity/Tethering.java
+++ b/services/java/com/android/server/connectivity/Tethering.java
@@ -377,7 +377,8 @@ public class Tethering extends INetworkManagementEventObserver.Stub {
}
}
Intent broadcast = new Intent(ConnectivityManager.ACTION_TETHER_STATE_CHANGED);
- broadcast.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
+ broadcast.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING |
+ Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
broadcast.putStringArrayListExtra(ConnectivityManager.EXTRA_AVAILABLE_TETHER,
availableList);
broadcast.putStringArrayListExtra(ConnectivityManager.EXTRA_ACTIVE_TETHER, activeList);