connectivity-change events can happen before boot completes (similar to:
https://android-git.corp.google.com/g/#change,87425 ) Change-Id: Ibc0f12defaa5d90894657ce63fb352578eca7060
This commit is contained in:
@@ -2173,7 +2173,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
if (proxy == null) proxy = new ProxyProperties("", 0, "");
|
if (proxy == null) proxy = new ProxyProperties("", 0, "");
|
||||||
log("sending Proxy Broadcast for " + proxy);
|
log("sending Proxy Broadcast for " + proxy);
|
||||||
Intent intent = new Intent(Proxy.PROXY_CHANGE_ACTION);
|
Intent intent = new Intent(Proxy.PROXY_CHANGE_ACTION);
|
||||||
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
|
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING |
|
||||||
|
Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
|
||||||
intent.putExtra(Proxy.EXTRA_PROXY_INFO, proxy);
|
intent.putExtra(Proxy.EXTRA_PROXY_INFO, proxy);
|
||||||
mContext.sendStickyBroadcast(intent);
|
mContext.sendStickyBroadcast(intent);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user