History log of /frameworks/base/services/java/com/android/server/ConnectivityService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f4ca9e6101a86fc0119867aa0b792ade95a71ad2 17-Oct-2013 Robert Greenwalt <rgreenwalt@google.com> Change how we use provisioning url so post works

Needed to do an http post instead of a get for one carrier.
Do this by putting an auto-submitting form in the data to be
interpreted as a html doc by the browser. The ACTION_VIEW
intent only works on http uri, but by specifying ACTION_MAIN/
CATEGORY_APP_BROWSER we could use data:text/html.

bug:11168810
Change-Id: Ifd33e1c3c7f9f40b6add39e446e6a7d7cde22549
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b9acff3707ce15999ef154b5457e8a7efb73cbf4 15-Oct-2013 Robert Greenwalt <rgreenwalt@google.com> Retry captiveportal check even if only one addr

We're getting some false positive results on this check and
while it was coded to try 3 times given sufficient independent addrs
the default url resolves to a single address so we'd just try once.

Rework to try again even with fewer urls to try to reduce the false
positives.

Also adds a random query param to fool proxies into not caching.

bug:9972012
Change-Id: Ib719f40ec612065ca6bcd919549fc1164506d35a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
decd295b1371238c97c170226c6145948492eda1 10-Oct-2013 Jason Monk <jmonk@google.com> getProxy in ConnectivityService returns port w/PAC

Changes the PacManager to report message back to ConnectivityService
to send a broadcast once the download has completed. This allows the
ConnectivityService to store the correct proxy info for getProxy().

This made the problem arise that ProxyProperties was not handling port
while it had PAC. Added small fix for equals() and parcelization.

The combination of these fixes seems to resolve Bug: 11028616.

Bug: 11168706
Change-Id: I92d1343a8e804391ab77596b8167a2ef8d76b378
/frameworks/base/services/java/com/android/server/ConnectivityService.java
143a2cf4134f94efb258f42928a1fb8b76606da8 08-Oct-2013 Lorenzo Colitti <lorenzo@google.com> Fix captive portal detection on IPv6 networks.

Currently the captive portal check URL is generated by
concatenating scheme, "://", IP address, and port. This breaks
for IPv6 because IPv6 addresses in URLs must be enclosed in
square brackets (e.g., http://2001:db8::1/generate_204 is
invalid; should he http://[2001:db8::1]/generate_204 instead).
The resulting MalformedURLException causes isMobileOk to report
that there is no captive portal, even if there is one.

Fortunately the three-arg URL constructor already knows how to
construct URLs with IPv6 addresses. Use that instead of
generating the URL ourselves.

Bug: 10801896
Change-Id: I02605ef62f493a34f25bb405ef02b111543a76fd
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0fb5a4d8ca5e0f6aaf3db9dddfcc3a61a106c545 04-Oct-2013 Robert Greenwalt <rgreenwalt@google.com> Merge "Don't redirect dns to an iface without dns servers" into klp-dev
3ec8e7fb79f2e662c2b06cfec118a0eeaefd9370 03-Oct-2013 Wink Saville <wink@google.com> Use networkType to display wifi and mobile notification separately.

There are two bugs one is I was clearing the notification in
CaptivePortalTracker when entering the ActivateState. (double check
according to bug 5021626 we should be calling enter)

Second is we could have the need to display both icons but can't
because we only allow one.

The solution I'm proposing here is to allow two notifications and
have then controlled separately.

Bug: 10886908
Change-Id: I30e7130bc542535492d175640a4990c592f32806
/frameworks/base/services/java/com/android/server/ConnectivityService.java
69887e838814642a7ae78fc810656c7c8afc2a19 24-Sep-2013 Robert Greenwalt <rgreenwalt@google.com> Don't redirect dns to an iface without dns servers

bug:10115444
Change-Id: Ide42072bb3aae21f8e99c11c2de263e9a765b911
/frameworks/base/services/java/com/android/server/ConnectivityService.java
127beffb059492e5e979767b5146cce247a3dee0 14-Sep-2013 Wink Saville <wink@google.com> Tighten condition for calling checkMobileProvisioning.

Add the condition that the connected network needs to be TYPE_MOBILE.
This eliminates checking on connecting to secondary networks like
FOTA, MMS, SUPL ...

This reduces unnecessary attempts to bring up multiple connections at
the same time. Especially in the light of the trouble we're having with HFA
on Sprint, where we don't want to connect to any other network until HFA
has completed.

Bug: 10758001
Change-Id: Id294536b70304a51de4752bc1a4ffac734f10f1a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7770dcc3d351a494d0f5fe44feb776cc512e9b18 13-Sep-2013 Wink Saville <wink@google.com> Merge "checkMobileProvisioning should not block." into klp-dev
312c495f4b8d002264772f61fe1fa3ef87bf3e52 13-Sep-2013 Jason Monk <jmonk@google.com> Merge "Guarantee that PAC Local Proxy owns Port" into klp-dev
d95ccc5c6a56ffbfd00727af72f8c90e50fda4f0 13-Sep-2013 Wink Saville <wink@google.com> checkMobileProvisioning should not block.

In checkMobileProvisioning the call to mdst.isProvisioningNetwork() is
a blocking call and during monkey testing without SIM this is causing
ANR's. Move the initial test for provisioning into isMobileOk so
checkMobileProvisioning doesn't block.

If mobile is not supported return CMP_RESULT_NO_CONNECTION.

Cleaned up some debug.

Bug: 10674404
Change-Id: I10a0e922cd6ea9790f66e2083f37e68cb0a8861f
/frameworks/base/services/java/com/android/server/ConnectivityService.java
6f8a68f49a7e8cf86104e721a1e8be7568b5f730 24-Aug-2013 Jason Monk <jmonk@google.com> Guarantee that PAC Local Proxy owns Port

This changes the PAC support to not broadcast the Proxy information until
the Local Proxy has started up and successfully bound to a port so that
the local proxy information can be guaranteed to be owned by the proxy.

Bug: 10459877
Change-Id: I175cd3388c758c55e341115e4a8241884b90d633
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ceccceccffbd2668b98e21487f2323f80d2c7b98 11-Sep-2013 Jeff Sharkey <jsharkey@android.com> Merge changes Ib1274847,I2eb2a1bf into klp-dev

* changes:
Fix SDK build.
Request all tethering interfaces, fix corruption.
5530e4b5d42bab8c9e82d348cc60dd925cd26a6b 11-Sep-2013 Yuhao Zheng <yuhaozheng@google.com> Fix for the toggle airplane mode hidden API

Fix to https://googleplex-android-review.git.corp.google.com/#/c/356900/
Previous implementation throws SecurityException when the API is called from apps.
bug:10653570

Change-Id: I95ae6f07db74d881f1a8d3d40a6486105a068e90
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e4984bea95a07dea0ef0259fefa1e52f0bbb1533 11-Sep-2013 Jeff Sharkey <jsharkey@android.com> Request all tethering interfaces, fix corruption.

netd now tracks statistics for tethered interfaces across tethering
sessions, so switch to asking for all tethering stats. (Currently
we're double-counting all tethering data, ever since it started
tracking across sessions.)

Also catch OOME to handle corrupt stats files, which we then dump to
DropBox and then start over.

Bug: 5868832, 9796109
Change-Id: I2eb2a1bf01b993dd198597d770fe0e022466c6b9
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5cd1a0e8d77972ad6cee2625a7e21082932042c2 10-Sep-2013 Yuhao Zheng <yuhaozheng@google.com> Add a hidden API to toggle airplane mode.

Added a hidden API under ConnectivityManager to toggle airplane mode.
This may be a temp solution for b/10653570.
bug:10653570

Change-Id: I0b2b42230073289eb8dc6891317d62b84e26c133
/frameworks/base/services/java/com/android/server/ConnectivityService.java
bdd61696c6720faa14ca9fdf180e519138b3d087 09-Sep-2013 Wink Saville <wink@google.com> Merge "Tighten test for warm sim and add more debug." into klp-dev
ecd0db5a7391e8234b3ea5d9e21c19f5d6589b0a 07-Sep-2013 Robert Greenwalt <rgreenwalt@google.com> Merge "Setting MTU size for specific network." into klp-dev
1aa3202b1bf72bb9a9ec20e60bf7b4fce8369acf 07-Sep-2013 Sreeram Ramachandran <sreeram@google.com> Merge "Minor fixes: Add a missing "break" and some cosmetic fixes." into klp-dev
9d9b74a900696191048aa97cc3c854072640428b 01-Sep-2013 sy.yun <sy.yun@lge.com> Setting MTU size for specific network.

Able to config network specific MTU size. Normally, the default size of MTU is 1500.
US - ATT 1410, TMUS 1440, SPRINT 1422
KR - SKT 1440, KT 1450, LGU+ 1428
JP - KDDI 1420, SoftBank 1340
CA - RGS 1430, FIDO 1430, MTS 1430, BELL 1358, SaskTel 1358
AU - TEL 1400

Bug: 10195070
Change-Id: Ie18650b37a3d44af944f2dae4aa97c04fb12cd5e
/frameworks/base/services/java/com/android/server/ConnectivityService.java
4fea0413c160909b35c548325008b9a65b99c412 06-Sep-2013 Wink Saville <wink@google.com> Tighten test for warm sim and add more debug.

- Require a non-204 response multiple times before declaring a
redirected error and hence a warm sim.

- If there is no connection or dns don't declare its a warm-sim.

- Add printing of the http headers to try to get more information
if we still get a false positive result.


Bug: 9972012
Change-Id: Ic115685cdbbe39c2b4de88b128eaf8d2ea96b45c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a1d6a9b474ba095860838c6ed3e72f8d9f5058cd 06-Sep-2013 Wink Saville <wink@google.com> am fc7a146b: am 50f86448: am 59a9884b: Merge "Do not change NetworkInfo.DetailedState." into jb-mr2-dev

* commit 'fc7a146b82774514bad4bc307489ece7ac27ee50':
Do not change NetworkInfo.DetailedState.
67c382192614dfab821666c4f35f1e2c8b97271b 05-Sep-2013 Wink Saville <wink@google.com> Do not change NetworkInfo.DetailedState.

I'd changed DetailedState to force ConnectivityService to treat
provisioning apn's specially. In particular so that they wouldn't
be identified they were fully connected until the provisioning
actually started. The problem is that DetailedState is a public enum
that has a CTS test and just changing the CTS to allow for the new
state (CONNECTED_TO_PROVISIONING_NETWORK) was inappropriate.

Instead I've added a new mIsConnectedToProvisioningNetwork variable
and used the DetailedState.SUSPENDED as the intermediate state.

Bug: 10620248
Change-Id: Id4a842398cad67455541ce629959351c27d83639
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b402fb2fddbee48ef3b518358dc5c86db63f7780 05-Sep-2013 Vinit Deshapnde <vinitd@google.com> Merge "Rename LinkInfo to LinkQualityInfo" into klp-dev
6a2d32597a3f158f4ff5b07ad61c7d892d08f3bf 04-Sep-2013 Vinit Deshapnde <vinitd@google.com> Rename LinkInfo to LinkQualityInfo

This change renames the LinkInfo objects to LinkQuailtyInfo. The API is
still hidden; but it can be accessed via reflection.

Bug: 10342372

Change-Id: Ieccea87c467ceae5d7f76298b137573f67396cd6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7788c61af5927a0fac612ea94d5205eeec2f507f 29-Aug-2013 Wink Saville <wink@google.com> Merge commit '270226b0' into manualmerge

* commit '270226b0':
Add support for handling mobile provisioning networks.

Conflicts:
core/java/android/net/CaptivePortalTracker.java
core/java/android/net/ConnectivityManager.java
core/java/android/net/IConnectivityManager.aidl
core/java/android/net/MobileDataStateTracker.java
core/res/AndroidManifest.xml
services/java/com/android/server/ConnectivityService.java

Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5
948282b0e6cf5310f09db97a4ae939db7c1cef72 29-Aug-2013 Wink Saville <wink@google.com> Add support for handling mobile provisioning networks.

When a sim is new or it has expired it needs to be provisioned
with the carrier. Basically provisioning is associating a sim with
a user account. When a sim isn't provisioned then operators will
restrict access to the network and only allow certain addresses
or services to be used.

This set of changes allows two types of provisioning networks to be
recognized. The first is a network that causes all DNS lookups to be
redirected to a different address than was intended. This is exemplified
by how T-Mobile works.

The second technique uses a special apn for provisioning. An example is
AT&T where lwaactivate is the provisioning apn and broadband is the
normal apn. We first try broadband and if we are unable to connect we
try lwaactivate. When we see the activate we identify it as special and
the ApnContext.isProvisioningApn will return true.

In the future our plan is to create a new network type that can be added
to the apn list, but for now it identified by name.

Here is a list of significant changes:

- CaptivePortalTracker now only test WiFi networks instead of all networks
- checkMobileProvisioning checks for provisioning networks and doesn't
try to ping.
- IConnectivityManager.aidl changes:
* getProvisioningOrActiveNetworkInfo was added to and used by Manage
mobile plan in WirelessSettings so even when there is no active
network it will still allow provisioning. Otherwise it would report
no internet connection.
* setSignInErrorNotificationVisible is used by both
CaptiviePortalTracker and checkMobileProvisioning so they use the
same code for the notifications.
* checkMobileProvisioning was simplified to have only a timeout as
returning the result is now harder as we abort simultaneous call
otherwise we'd could get into loops because we now check every time
we connect to mobile.
- Enhanced MDST to handle the provisioning network.
- Added CONNECTED_TO_PROVISIONING_NETWORK to NetworkInfo to make a new
state so we don't announce to the world we're connected.
- TelephonyIntents.ACTION_DATA_CONNECTION_CONNECTED_TO_PROVISIONING_APN
is sent by the low level data connection code to notify Connectivity
Service that a provisioning apn has connected. This allows CS to
handle the connection differently than a normal connection.

Bug: 10328264
Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b1486aed22062f9d6460b3251507cac8a58dc987 27-Aug-2013 Sreeram Ramachandran <sreeram@google.com> Minor fixes: Add a missing "break" and some cosmetic fixes.

Change-Id: Ie614a7b47185fd511fdc3f064620e46ab7d6d8f8
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a8220a73c5cb1a65ca7a457f66c97e4e4c32ee4b 27-Aug-2013 Jason Monk <jmonk@google.com> Don't clear Global Proxy on boot.

Doesn't clear the global proxy when a deprecated one is not found because
there still may be a non-deprecated global proxy present.

Bug: 10457179
Change-Id: I68e6d5aee7b4940f9315484060c7d82cb8ccfa70
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e2a6d3df1257c1c04b1a14777bb7ee65f634bdc3 22-Aug-2013 Vinit Deshapnde <vinitd@google.com> Merge "Introduce network link quality statistics" into klp-dev
1f12cb52a494a3eaefc62d03a8d2fdf47a5535e9 21-Aug-2013 Vinit Deshapnde <vinitd@google.com> Introduce network link quality statistics

This change starts tracking traffic quality data for WiFi and mobile
networks. The quality is tracked based on incidental traffic, and not
on specific measurements. Theoretical bandwidths are hard-coded, as
well as sampling interval; although sampling interval can be changed
by setting a system policy.

Bugs filed to remove shortcomings of this change -

10342372 Change LinkInfo name to something better
10342318 Move hardcoded values of MobileLinkInfo to resources
so they can be updated without changing code

Bug: 10006249

Change-Id: I83d8c7594da20fe53abbd5e1f909b1f606b035bb
/frameworks/base/services/java/com/android/server/ConnectivityService.java
4faa027df03c241c92a12a437f20767ab4d6ee64 08-Aug-2013 Lorenzo Colitti <lorenzo@google.com> Modify LinkProperties address update methods.

1. Make addLinkAddress a no-op if the address already exists.
2. Make addLinkAddress, addStackedLink and removeStackedLink
return a boolean indicating whether something changed.
3. Add a removeLinkAddress method (currently there is no way of
removing an address).
3. Move hasIPv6Address from ConnectivityService to
LinkProperties, where it belongs.

Bug: 9625448
Bug: 10232006
Change-Id: If641d0198432a7a505e358c059171f25bc9f13d5
/frameworks/base/services/java/com/android/server/ConnectivityService.java
dce52cdbf1eab8bd979bf4676973699c39f7b32e 17-Aug-2013 Wink Saville <wink@google.com> DO NOT MERGE: MDST is not ready until connected to DcTracker.

When the system becomes loaded the PhoneApp can be delayed
significantly and a call to setEnableFailFastMobileData may not
occur because the channel between the MobileDataStateTracker (MDST)
and DcTracker (DCT) is not connected.

Solution: Add a isReady to MDST and isMobileDataStateTrackerReady to
ConnectivityService and call it from isMobileOk.

Bug: 10351868
Change-Id: I92f9d58121b88186b636cd71c2fd2ef9a28f7cf6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e63411f28b81a0c9f7fee1d0b3a0765606c9a6f2 13-Aug-2013 Wink Saville <wink@google.com> In isMobileOk don't execute finally if mobile data is not supported.

Move the early return outside the try {} finally so we don't call
setEnableFailFastMobileData(DctContants.DISABLED). Otherwise
referencing counting is wrong and an exception is thrown in DcTrackerBase.

Bug: 10304904
Change-Id: I5ba5121e473bada9f3daa8d6f3d3577cec8212fc
/frameworks/base/services/java/com/android/server/ConnectivityService.java
afe58b07dbf9feb8d7396e26f271bf4e2a9447fa 13-Aug-2013 Wink Saville <wink@google.com> In isMobileOk don't execute finally if mobile data is not supported.

Move the early return outside the try {} finally so we don't call
setEnableFailFastMobileData(DctContants.DISABLED). Otherwise
referencing counting is wrong and an exception is thrown in DcTrackerBase.

Bug: 10304904
Change-Id: I5ba5121e473bada9f3daa8d6f3d3577cec8212fc
/frameworks/base/services/java/com/android/server/ConnectivityService.java
89d16f7597d9e03bf3cf9eb1ba91b590ab1ac892 09-Aug-2013 Wink Saville <wink@google.com> am 9b7b4450: am 02eab434: am 4d87d91d: Merge "If in a mobile captive portal is detected enable fail fast." into jb-mr2-dev

* commit '9b7b4450185e723dc7021f7e8bae4a12d4dd5606':
If in a mobile captive portal is detected enable fail fast.
292a92e337f0a1b28b83f990459393f0d368c164 09-Aug-2013 Wink Saville <wink@google.com> am 7c00be48: am 55adb390: am 35152f13: Merge "Have CaptivePortalTracker use gservices updateable provisioning urls." into jb-mr2-dev

* commit '7c00be48fcb1986db14915beef549e925b5670d2':
Have CaptivePortalTracker use gservices updateable provisioning urls.
280f6218a578b07f0dc56e403e4b686b8cbfe950 09-Aug-2013 Wink Saville <wink@google.com> am 81b1fa6f: am 9b6363e5: am cbad1243: Merge "Check that hipri has started." into jb-mr2-dev

* commit '81b1fa6fc62190d64a6b76b4a5ee7cc2bf3172ac':
Check that hipri has started.
4d87d91dfe886713df96abd3c0d1c9e20cf385e5 09-Aug-2013 Wink Saville <wink@google.com> Merge "If in a mobile captive portal is detected enable fail fast." into jb-mr2-dev
35152f13b3302dbcb43345458dd5b8b092e37320 09-Aug-2013 Wink Saville <wink@google.com> Merge "Have CaptivePortalTracker use gservices updateable provisioning urls." into jb-mr2-dev
602b232a06ede86999aa362a12eb28cbc782dc1d 03-Jul-2013 Jason Monk <jmonk@google.com> Add PAC File support for proxy configuration

PAC (Proxy auto-config) files contain a single javascript function,
FindProxyForURL(url, host). It gets called to determine what proxy should be
used for a specific request.

This adds PAC support to the system. The ProxyProperties has been modified
to hold the PAC file when one is present. The Proxy method
setHttpProxySystemProperty has been modified to insert a PacProxySelector
as the default ProxySelector when it is required. This new ProxySelector
makes calls to the ConnectivityService to parse the PAC file.

The ConnectivityService and the WifiConfigStore have been modified to support
saving the extra PAC file data.

The ConnectivityService now has a class attached (PacProxyNative) that
interfaces to the native calls for PAC files. The parsing of the PAC file
is handled by libpac (which is being added to external/) which utilizes
libv8 to parse the javascript.

As a fallback to applications that don't use the java ProxySelector, the proxy
is setup to point to a local proxy server that will handle the pac parsing.

bug:10182711
Change-Id: I5eb8df893c632fd3e1b732385cb7720ad646f401
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d747cbc898ef44e59c3fbf74a8327b6a12aad397 08-Aug-2013 Wink Saville <wink@google.com> If in a mobile captive portal is detected enable fail fast.

When captive portal checking completes pass back the result.
This is used to enable/disable failing fast for mobile. When
failing fast is enabled we don't check for data stalls and thus
won't be continually trying to do recovery operations, such as
restarting the radio.

Bug: 9462512
Change-Id: I0dea0eee519f8ee7f94e79d40e82c18f30d7fe2e
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7f6ee2ec906d63a5c816a9189786b650e25f4793 07-Aug-2013 Wink Saville <wink@google.com> Check that hipri has started.

I needed to test the result of startUsingNetworkFeature, otherwise
on mobile networks that are slow to come up, we won't detect
warm SIMs after booting.

Bug: 9962943
Change-Id: Ib638a4e43867ecaa85d6abff65643b77a63526b6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
42d4f08db2c15e1829c1fc5d1942cf029ab0895b 21-Jul-2013 Wink Saville <wink@google.com> Have CaptivePortalTracker use gservices updateable provisioning urls.

After detecting there is a captive portal the url used in the
notification for mobile networks should be updateable via gservices.
These urls will be the same as used by CheckMp and is needed for
carriers that have specific provisioning urls such as AT&T and Verizon.

Bug: 9622647
Change-Id: Idcf4dabc72ece1dbbe1d5e5a21e550dd06fe16c7
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e1cd2931512566232f0306c60d3895b459919098 01-Aug-2013 Lorenzo Colitti <lorenzo@google.com> Merge "Add accessors for all addresses and clarify compare* methods"
1aef7fc81a959d9d34d92e3cb018848e0a79b2b7 01-Aug-2013 Wink Saville <wink@google.com> Fix excessive log spew.

Bug: 10115060
Change-Id: I61fd83071da1224f38757b8d90f58c8d6c41d36b
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d1e0fae2bc5c98b1f00b185d7be7219dc7e1d0f7 31-Jul-2013 Lorenzo Colitti <lorenzo@google.com> Add accessors for all addresses and clarify compare* methods

1. Add a method to return all addresses and all LinkAddresses on
all links (both base links and stacked links). We already had
one for routes, but did not yet have any for addresses.
2. Rename compareRoutes to compareAllRoutes, because unlike the
other compare* methods, it looks at all interfaces. Update
what appears to be its only caller.
3. Update the documentation of the compare* methods to match
reality (they don't return lists) and clarify whether they
look at all links or only the base link.

Change-Id: Ie22e6c7f163d5de8e407248b45171dc28382d2d3
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5e56bc543743c089635ef899f77404efe38ef055 30-Jul-2013 Wink Saville <wink@google.com> Add network type TYPE_MOBILE_IA.

Add a network type for establishing connections to the apn used for
the initial connection.

Enable some debug for now.

Bug: 8733613
Change-Id: Ia627ac0cf5715660b6d02bb13a83d46ec1727b87
/frameworks/base/services/java/com/android/server/ConnectivityService.java
350d2747467d26795f8d4a46c255f812292fd9f8 26-Jul-2013 Geremy Condra <gcondra@google.com> Merge "Remove unused mDnsOverridden"
b98703e9c04fd42984120fb8e8945e44a120cecf 24-Jul-2013 Chad Brubaker <cbrubaker@google.com> Remove unused mDnsOverridden

mDnsOverridden is no longer used now that VPNs do not override the
default DNS settings.

Change-Id: I69495b9a6de7d60628813f357d3dbdf548695ada
/frameworks/base/services/java/com/android/server/ConnectivityService.java
46a7b0d1aaa79415af4e3dbe84bbb9ca27b19139 24-Jul-2013 Geremy Condra <gcondra@google.com> Merge "Fix default DNS not being set on network changes"
20a7e881da4d66fb2902e4bb8785c07a79a535e1 24-Jul-2013 Chad Brubaker <cbrubaker@google.com> Fix default DNS not being set on network changes

Change-Id: I3c45404cab34c77b20dadc1d8aee127aa08fd0bd
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5830e0752121c5565da184727888de6567b50e3a 23-Jul-2013 Geremy Condra <gcondra@google.com> Merge "Fix supplimentary network connections with VPNs"
1b6868cc4b8455e8660ba35ccdcc34abbaa43ffa 23-Jul-2013 Geremy Condra <gcondra@google.com> Merge "Support multiple Vpn ManageDialogs"
f336d722c773855402d91a227fc290eafca23335 16-Jul-2013 Chad Brubaker <cbrubaker@google.com> Fix supplimentary network connections with VPNs

Enables the use of supplimentary mobile networks like MMS, and HIPRI
while VPNs are running.

Change-Id: I313f57a905b4e16bd4322c68687cbff1cfbe9d3e
/frameworks/base/services/java/com/android/server/ConnectivityService.java
bfc7634b367f9ff4039c5418a943e68d400e560d 19-Jul-2013 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of f9774dc7 to master

Change-Id: Ia9509ab6897e27da8bf4fc61a4140f2f93acb80f
538cdb98ef06a1768c582df28e8cc0e4335dd216 19-Jul-2013 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 85b5e4c4 to master

Change-Id: Idd0ad9b1504fddf68c4c4cc04731de1eddd204b3
0871ac2afbc6aed99f36ee4ef565ab417ec982ff 19-Jul-2013 Wink Saville <wink@google.com> am b96cca27: am df43ba82: am e3badc10: Merge "When a SIM is changed check mobile provisioning." into jb-mr2-dev

* commit 'b96cca27ba15121aab2c481786a292880c007bb6':
When a SIM is changed check mobile provisioning.
c2fee24f765c51aa76271242b8dee72e66642a84 19-Jul-2013 Wink Saville <wink@google.com> checkMobileProvisioning is not using sendNotification.

Change-Id: Ie5b98b462b29fe9339fcb8207d2d33e3028a155c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c13368bfd1860e780105ddbe84a996e9ed4a3f3b 18-Jul-2013 Robert Greenwalt <rgreenwalt@google.com> Make CS.isTetheringSupported dynamic

It used to be set at boot, but that was too quick to pick up carrier
specific resources. With this change even if you switch sims subequent
checks get the new values.

bug:9865616
Change-Id: I8c270c6b02fc6bdd3c3d76ceea58172df25e058d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e874bd351f7b68cead889f55afba505fb5fac97c 18-Jul-2013 Robert Greenwalt <rgreenwalt@google.com> Merge "Add gservices updater for carrier provisioning url" into jb-mr2-dev
e182bfe398a132236f723a76522bacd4d6d4c0a4 16-Jul-2013 Robert Greenwalt <rgreenwalt@google.com> Add gservices updater for carrier provisioning url

bug:9623159
Change-Id: I36697ed341353b7a3dbec5afe20241102e76f6f1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
bf6ff2c025405a3af496fe558dfc4468a9b45cc8 17-Jul-2013 Chad Brubaker <cbrubaker@google.com> Support multiple Vpn ManageDialogs

Move away from storing the configs in the Intent to prevent issues with
PendingIntents and multiple configs.

The Dialog now queries ConnectivityService for the configuration to
display in the management dialog.

Change-Id: I0e0ef52db840152914d117a24f776d8106e836ff
/frameworks/base/services/java/com/android/server/ConnectivityService.java
fde1ac9bec7b0b868525d6cd0d0d1d96787b59fc 17-Jul-2013 Wink Saville <wink@google.com> When a SIM is changed check mobile provisioning.

A simple mechanism for doing this is to take advantage of the fact
that we require the device to reboot after a sim has been changed.
Thus when connectivity service is started we wait to get a connection
then call checkMobileProvisioning once. We also add a check that
the DEVICE_PROVISIONED is true, i.e. SetupWizard has been run.

Bug: 9784024
Change-Id: I5c1936744f6fc55a447ae44cd36eec3849d27e21
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d475c7042408a82b848a551ac453f59f96c20bf4 11-Jul-2013 Chad Brubaker <cbrubaker@google.com> Support routing sockets as another user

Add support for routing sockets as if they were another user's.
This is for services that handle delegated network tasks like MediaServer and DownloadManager.

Change-Id: Id20efc1f5c2cce6f8838d777762f6c0a703a9437
/frameworks/base/services/java/com/android/server/ConnectivityService.java
4ca19e8377f33e8a80684fb4ee67f5a4bdc9ea76 14-Jun-2013 Chad Brubaker <cbrubaker@google.com> Add per user VPN support

VPNs are now per user instead of global. A VPN set by user A routes only
user A's traffic and no other user can access it.

Change-Id: Ia66463637b6bd088b05768076a1db897fe95c46c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7ab34954c8f865084c5cb883a2386e6c7216025e 12-Jul-2013 Wink Saville <wink@google.com> am 97b077bc: am 42a85412: am 925ec03f: Merge "VZW wants the phoneNumber to be 10 zero\'s if there isn\'t one." into jb-mr2-dev

* commit '97b077bc18752e7dafe041cb04c19e67ce69939c':
VZW wants the phoneNumber to be 10 zero's if there isn't one.
8cf3560469083d608e6f507792bce20bf53ed6d7 11-Jul-2013 Wink Saville <wink@google.com> VZW wants the phoneNumber to be 10 zero's if there isn't one.

Bug: 9784059
Change-Id: I41bba908855648d2560440655d8a75a7cb2e0859
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e969964c80a20b2d968b4ee54495176c9049d3e3 02-Jul-2013 Wink Saville <wink@google.com> am c880ae16: am db011499: am 753d754c: Merge "Fix NPE if mobile is not supported in checkMobileProvisioning." into jb-mr2-dev

* commit 'c880ae16528aa90853952397b8e4d4a299d29c28':
Fix NPE if mobile is not supported in checkMobileProvisioning.
68e6c6452ce850b8744ddf56fcb11583ecf2293b 02-Jul-2013 Wink Saville <wink@google.com> Fix NPE if mobile is not supported in checkMobileProvisioning.

Bug: 9664438
Change-Id: If0c4938956a80e8d6a21a968aa771d0d8f546b3c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
9f6a7f424fad614fdb991bd978009eb1321c70a6 02-Jul-2013 Wink Saville <wink@google.com> Merge commit '3b5d686e' into fix-merge-conflict

* commit '3b5d686e':
Add checkMobileProvisioning to ConnectivityService.

Conflicts:
services/java/com/android/server/ConnectivityService.java

Change-Id: Ieceb9c8f4aa4fa99258e56a720b4c74512369458
ab9321d13de29cf314e8a1774b592d1f1d7e94d8 30-Jun-2013 Wink Saville <wink@google.com> Add checkMobileProvisioning to ConnectivityService.

Bug: 9279964
Change-Id: I42c326a21e05aa301e9d974ed9ac1d59472780ec
/frameworks/base/services/java/com/android/server/ConnectivityService.java
bf991a8f426921c26e21e54e493781e1d5eb39ff 24-Jun-2013 John Spurlock <jspurlock@google.com> Move battery stats call from SystemUI to system server.

The UPDATE_DEVICE_STATS permission is no longer required in sysui.

Change-Id: Icc3120b7873563e3727e56bed9f3b4767da0606d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7b8e1ea139fa19b249d1a42c12f0ebdae3e430a5 29-May-2013 Andreas Huber <andih@google.com> Fix parsing of global:http_proxy value.

This caused a runtime restart for ':' and did not disable the proxy for ""
before.

Change-Id: Ib88b21e9eba5818a4968ae604abad8a3b3d1766f
/frameworks/base/services/java/com/android/server/ConnectivityService.java
80eb63b58b2d722ce5738d0daeccbf85dee36d05 24-May-2013 Robert Greenwalt <rgreenwalt@google.com> Use the old interface when resetting connections

The new one is often null when disconnected, so using the new fails.
In other situations, it's the connections on the old network we want
to reset anyway, so the old code when it would work would also do
the wrong thing (unless new iface == old iface).

bug:9112928
Change-Id: I1fcae89cc3aa9d712e516e7c97cece0b89869bd9
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e148a49d9214724c7c6aa5b23eae7cdbb80da1ca 24-Apr-2013 Wink Saville <wink@google.com> Merge "Support WiFi only device at runtime." into jb-mr2-dev
51f456f553248e910a7efc7eafa64f5ecf0f6cdc 23-Apr-2013 Wink Saville <wink@google.com> Support WiFi only device at runtime.

To date WiFi only devices were defined by the list of networkAttributes
in config.xml overriden in on a per-device basis. This change is the
simplest change needed to determine this at runtime and therefore allowing
a single build to support the two different configurations.

Bug: 8562845
Change-Id: I34de5c6accc718b199c13815537de1debfe3dc91
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1b0ca9dace3fb3b84f8a87e539c0179e6093b423 22-Apr-2013 Robert Greenwalt <rgreenwalt@google.com> Listen for network disconnect.

VPN used to just watch the interface, but that is insufficient. There
is no promise that the interface will go down when we're done with it.
Now that wifi stays on in scan-only mode despite user turning it off
it seems that the interface is left up, even in AP mode.

Now listening for ConnectivityService broadcast that the network we were on
has disconnected and tearing down the VPN then or when the interface
goes away.

bug:8550083
Change-Id: Icf414497bc55bead69de04e91f39f90ac2e6578a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ca441ee2f0d53c3d3a00b2a9aa96c064378fd535 11-Apr-2013 Robert Greenwalt <rgreenwalt@google.com> Add new route.hasGateway() api

Fixes issues brought in by change to isHostRoute. isHostRoute
was technically correct, but the callers really wanted hasNextHop
behavior.

bug:8597268
Change-Id: I360761ccfa98b2ba34642f717a78fa71ec1bae4f
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b7e6a4433bda6c59540ffc51061aff5cc3d10166 12-Apr-2013 Robert Greenwalt <rgreenwalt@google.com> Merge "Routing workaround." into jb-mr2-dev
a9bebc221108dd679da0557963605cd704d05743 11-Apr-2013 Robert Greenwalt <rgreenwalt@google.com> Use CONNECTIVITY_INTERNAL for global proxy

The Global http proxy shouldn't be used by apps, but can be useful in certain
conditions.

bug:8264794
bug:8557674
Change-Id: Ia3cbe542e448d9e74d0492626a13e9fd34ad797a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
979ee3cca308705de9cf94eb97ffd84e83d1a91c 06-Apr-2013 Robert Greenwalt <rgreenwalt@google.com> Routing workaround.

Change our order of operations so that secondary route table
adds succeed. Working to understand the why of this too.
bug:8361314

Change-Id: Ie25061eb38c62eaa5e60aa8a488496de49bdbd9d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
00e8d4c1b69997f63542cff5698c358d494a8d9f 06-Apr-2013 Robert Greenwalt <rgreenwalt@google.com> Turn back on global proxy support.

This reverts 138626.

Bug:8557674
Change-Id: I7b117d313c424d75bdeeea507541a96342f256f0
/frameworks/base/services/java/com/android/server/ConnectivityService.java
2fb669e68f771f07517b8d5087ca875025b9bcfb 29-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Merge "Stop clat if it's no longer in use." into jb-mr2-dev
d2ef1e50c491239e43c7b557ea1f7fc03e84f8f9 28-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Stop clat if it's no longer in use.

Normally, clatd is stopped when a connection disconnects.
However, if the connection's LinkProperties change, or if the
disconnect somehow gets lost (e.g., because of bug 8486114),
then we need to stop it (and possibly restart it).

Bug: 8276725
Change-Id: Ib8ad0d653ed8d0cd70b7414bcaa8fdaef8ba5fcc
/frameworks/base/services/java/com/android/server/ConnectivityService.java
665e1aed5e99af1e66af56c0d73e32fd86f57273 22-Aug-2012 Robert Greenwalt <rgreenwalt@google.com> Add BT - DataTracker connection

Allows the external BT stack the means to communicate with
ConnectivityService during reverse tethering.

bug:8445208
Change-Id: Ice7dfb0b50c9481d359aed14a51372878185171c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
4aa9bcf414282e4bdd10900832baaeaa349bda50 20-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Reset connections on all stacked interfaces.

Bug: 8276725
Change-Id: I7fe99c6ea123037cef3e89e3c2c17ed43cc0b1ea
/frameworks/base/services/java/com/android/server/ConnectivityService.java
952e4805f72c0835bbd158051fc56dc64d1d660d 18-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Merge "Framework changes for 464xlat." into jb-mr2-dev
e78aa8964766e5e2a9684de13176b08b7bd09e06 15-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Merge "Set routes from stacked links as well." into jb-mr2-dev
13c9fdefdec907aaa339ffd67c0ded116cccba01 14-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Framework changes for 464xlat.

1. Add a Nat464Xlat service that ConnectivityService can use
to start and stop clat. When clat is started, the service
waits for the clat interface to come up and then calls
ConnectivityService to add the appropriate routes.
2. Make ConnectivityService start clat when an IPv6-only mobile
interface is connected. We only support clat on mobile for
now.
3. Make tethering use the interface that has the IPv4 default
route insted of using the base interface of the
LinkProperties. This allows us to tether to a stacked
interface, which is needed for tethering with 464xlat.

Bug: 8276725
Change-Id: I24480af69ee280f504399062638af0836a56268e
/frameworks/base/services/java/com/android/server/ConnectivityService.java
f83d90c6671371c9fb95c7946461795efe5a1da3 15-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Set routes from stacked links as well.

Currently, ConnectivityService adds and removes routes to/from
the routing table only based on the LinkProperties's routes.
Make it update routes based on the stacked links as well.

Bug: 8276725
Change-Id: I9a2adf537af5a04de0aaab3780afbcc3bb5c6acb
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7b5fd05d4e41c91386974970e3da5dcbfc2b2132 15-Mar-2013 Wink Saville <wink@google.com> Revert "Fail fast if somebody is adding default routes"

This reverts commit 6f210bd0191e1936bbc1f036912c6efc4ea69475

Mako wouldn't boot for me, reverting for now.

Change-Id: Ie92d6bf77811e7257e86d65e1e15e1973c027cd7
/frameworks/base/services/java/com/android/server/ConnectivityService.java
6f210bd0191e1936bbc1f036912c6efc4ea69475 14-Mar-2013 Robert Greenwalt <rgreenwalt@google.com> Fail fast if somebody is adding default routes

bug:2655011
Change-Id: I25da940e024825bc6e1d1ac5fe7b0d951609c1c1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
2adea7ff3b1c30d9de6abd3cb7361a9a5a937dd0 11-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Remove redundant parameter to modifyRoute

modifyRoute takes both an interface name and a LinkProperties.
This is redundant because all callers get the interface name
from the LinkProperties. Make modifyRoute get the interface
name from the LinkProperties instead.

Change-Id: I41ba8e0a10241c2f1107204fcaca2be74556042b
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e16713597661c326d2bb6586a8b13e27520c4227 08-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Always specify an interface for host routes.

Change-Id: I05b4d87e7d7e8237c6f4a70f1fedae00f416f581
/frameworks/base/services/java/com/android/server/ConnectivityService.java
812085bc70a4a644ffab7fbbf9d4564632325a83 01-Mar-2013 Jeff Sharkey <jsharkey@android.com> Allow loopback traffic in lockdown mode.

Bug: 8245184
Change-Id: If993e3d6f5c7ce5970bfe701074c85b9245aa2aa
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e436e4f8a48a6bc3094c036166cca3911a540321 22-Feb-2013 Robert Greenwalt <rgreenwalt@google.com> Remove two new permission checks

These checks while technically reasonable are a hard to swallow API change
that may break existing apps and pragmatically serves no purpose: the protected
data is available in publicly readable java VM properties.

Change-Id: I522c493c2604a33e28d99e2be31054326c9a8323
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5a6bdc46e2fdc8cfd930396773dd89efd19fa1f1 15-Feb-2013 Robert Greenwalt <rgreenwalt@google.com> Improve ConnectivityManager docs

Also fix some permission problems.
bug:5738328

Change-Id: Ib32c223f425b1fc03b8cce528456bcb50b540fdf
/frameworks/base/services/java/com/android/server/ConnectivityService.java
3671b1e910e4d297bebcd3ceaa2682bfb4b1f4a1 01-Feb-2013 Jeff Sharkey <jsharkey@android.com> Migrate to using Mockito directly.

Change-Id: I1fcc5d1a780f5831bd6685f0735d4c0c6d245735
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0786207be59d34a8ba8a7a1e93602002fac97587 14-Feb-2013 Kenny Root <kroot@google.com> am dc7b3e3b: am 9657ba0e: Merge "KeyStore: stop using state()"

# Via Android Git Automerger (1) and others
* commit 'dc7b3e3b6e1aa3f347c7d843ee453688c4d90e29':
KeyStore: stop using state()
b9594ce9ebb3f5f303a280f04312ae5754ce3560 14-Feb-2013 Kenny Root <kroot@google.com> KeyStore: stop using state()

Change-Id: I721974fd95f8d1ab06a3fd1bbb4c9b4d9d1d7752
/frameworks/base/services/java/com/android/server/ConnectivityService.java
9055ae369774e88cd856fd58305738e28b427b88 13-Feb-2013 Robert Greenwalt <rgreenwalt@google.com> Fix a permissions probem in ConnectivityManager

stopUsingNetworkFeature fails because of new permissions checks in netd.

Change-Id: I04cb10d955c9dd9977c460c6c1db0d1910a863ce
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0dd19a8394dea139804fea126ce9ba7539a3724d 12-Feb-2013 Robert Greenwalt <rgreenwalt@google.com> Reintroduce the net.dns system properties <TEMP>

Removing these properties broke video playback as they used
a custom dns resolver. We'll work together to resolve our
resolver issues in the future, but this was the easy fix to
get things working again.

bug:8173236
Change-Id: I687dae59eda4fc449efc34eed11c3dc88a110ad0
/frameworks/base/services/java/com/android/server/ConnectivityService.java
034170cd4ca17bdda2d0baae5f438f2786805147 07-Feb-2013 Robert Greenwalt <rgreenwalt@google.com> Merge "Second pass tying into dns cache per interface"
8b47b3601f82f299bb8c135af0639b72b67230e6 23-Aug-2011 Mattias Falk <mattias.falk@sonyericsson.com> Second pass tying into dns cache per interface

Set dns servers for secondary nets and attach the
processes (pids) that are using the secondary nets
to the secondary nets associated dns cache.

bug:5465296
Change-Id: I1eaf92d5c6b81d287e9fb2763b3d972d9de34395
/frameworks/base/services/java/com/android/server/ConnectivityService.java
75d880dfb0bb1342bce0b0337c7ae752d75ff1b6 31-Jan-2013 Wink Saville <wink@google.com> Merge "Revert "Clean up published network condition reporting.""
5b7573e8352d945572a92b364e709bce5a9b7860 31-Jan-2013 Wink Saville <wink@google.com> Revert "Clean up published network condition reporting."

In some cases causes grey ICON's.

This reverts commit 82413d0b2acad73b9a008e0c53392a54f9555cf8

Change-Id: I09f893d03651c3fb9fcb88ee9e5ac7ce6cb6e273
/frameworks/base/services/java/com/android/server/ConnectivityService.java
20da885caa27ee8148c61be0ff56451ad6bf8146 19-Jan-2013 Robert Greenwalt <rgreenwalt@google.com> Merge "Revert "Second pass tying into dns cache per interface""
63837f455d08605173985042a89d5f9ba06883d1 19-Jan-2013 Robert Greenwalt <rgreenwalt@google.com> Revert "Second pass tying into dns cache per interface"

This reverts commit f60f94a89e49c125f4aff6496710a0fb66579545

Change-Id: If52dffd5100a6b03275da0eabfa05e24c5ecada9
/frameworks/base/services/java/com/android/server/ConnectivityService.java
82413d0b2acad73b9a008e0c53392a54f9555cf8 18-Jan-2013 Wink Saville <wink@google.com> Clean up published network condition reporting.

Change-Id: I371c04bcb0547f1133e7ce12a6871aad3b3fdc6b
/frameworks/base/services/java/com/android/server/ConnectivityService.java
f60f94a89e49c125f4aff6496710a0fb66579545 23-Aug-2011 Mattias Falk <mattias.falk@sonyericsson.com> Second pass tying into dns cache per interface

Set dns servers for secondary nets and attach the
processes (pids) that are using the secondary nets
to the secondary nets associated dns cache.

Change-Id: Id865c2c3fdc0ec1c3e30c134e9ea4109f4f2fbeb
bug:5465296
/frameworks/base/services/java/com/android/server/ConnectivityService.java
12174a1c62f1a21c76f4b10eef71438019dce716 19-Dec-2012 Jean-Baptiste Queru <jbq@google.com> am 48576911: Merge from AOSP staging branch

* commit '48576911a2de25c46ecfbecdf7dcb373b70be3a5':
Return error upon attempt to use non-existent APN
Memory leak due to bad destroy sequence
48576911a2de25c46ecfbecdf7dcb373b70be3a5 19-Dec-2012 Jean-Baptiste Queru <jbq@google.com> Merge from AOSP staging branch

Change-Id: Iad3df4845e6fae16c4ae6dbddcad0121d4775dcd
342a7cb69f8e0cfe208b12cc451c445ae8583e04 14-Dec-2012 Mikael Hedegren <mikael.hedegren@sonyericsson.com> Return error upon attempt to use non-existent APN

startUsingNetworkFeature will ignore errors from
reconnect - causing ConnectivityService to send
faulty information back to requester.

Change-Id: I4e0fcc1addd84da409cdc1eed1a95d25d925e020
/frameworks/base/services/java/com/android/server/ConnectivityService.java
dcf03f39725deec68f644f6162fdfcc884dc9964 16-Nov-2012 Jianzheng Zhou <jianzheng.zhou@freescale.com> Refactor getPersistedNetworkPreference

Optimize for updating mNetworkPreference according to device's networkAttributes
setting from overlay config.xml when connectivityservice start.

Change-Id: I90286332d4f453038f1ddac7dd9d1265d96b4859
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
/frameworks/base/services/java/com/android/server/ConnectivityService.java
60bfacd8ef765f7f8ee43224a9d85960dea2b1c8 16-Nov-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Support for dns domain."
8058f621891b41c6864b6004c1c47647436a0ac1 09-Nov-2012 Robert Greenwalt <rgreenwalt@google.com> Support for dns domain.

bug:6799630
Change-Id: I10070eddb65b7b60f0bc2b3e1e320e1aa4ec6e98
/frameworks/base/services/java/com/android/server/ConnectivityService.java
2528b50b9155dcaa8de6421996208c7e0b1da4be 10-Nov-2012 Jeff Sharkey <jsharkey@android.com> Increase readability of connectivity event log.

Bug: 6322766
Change-Id: I556759f5fc1466cdd4db6b4574084a8068dc9909
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7ff30113de68539ec840c524b8f1561f938f96c5 08-Nov-2012 Dianne Hackborn <hackbod@google.com> Remove extraneous logs.

Change-Id: I4c47d36748de91bd6fddc419afbf59552bf63e9a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
625239a05401bbf18b04d9874cea3f82da7c29a1 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> Migrate more Secure settings to Global.

Migrate networking, storage, battery, DropBox, and PackageManager
related Secure settings to Global table.

Bug: 7232014, 7231331, 7231198
Change-Id: I772c2a9586a2f708c9db95622477f235064b8f4d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
bdfce2ec05a3e9ca6acd6711de6133e06f2446e6 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> First step towards cleaning up Global settings.

Remove all @Deprecated @hide settings, and clean up any stragglers.

Bug: 7232125
Change-Id: Ibf67093c728d4a28565129b923edb1701d3b2789
/frameworks/base/services/java/com/android/server/ConnectivityService.java
bf6f6f9de72c9fd15e6bda9f228c05a9b37d6324 26-Sep-2012 Jeff Brown <jeffbrown@google.com> Update references to migrated global settings.

Fixed one setting that was migrated but not marked deprecated.

Removed a hidden setting that is no longer used by the new
power manager service.

Bug: 7231172
Change-Id: I332f020f876a18d519a1a20598a172f1c98036f7
/frameworks/base/services/java/com/android/server/ConnectivityService.java
9538bdd3c77968c7673719c580ae653ede4654d6 20-Sep-2012 Irfan Sheriff <isheriff@google.com> Captive check for both mobile and wifi

Bug: 7113195
Bug: 7102238
Bug: 7087564

Change-Id: Iac08db9de3935338ad498aa3983d2ca82057dda1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e6e6197d7c2eb5c29224bcddb0131a302267f6de 14-Sep-2012 Jeff Sharkey <jsharkey@android.com> Actually move to Global settings.

Also add better ConnectivityService logging.

Bug: 7157464
Change-Id: Ia235a7e62ed809240913c4782920c1410c7d597d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
f56e2435b64f9638e029777fa9492d42f157033e 07-Sep-2012 Jeff Sharkey <jsharkey@android.com> Restrict lockdown and firewall to AID_SYSTEM.

Bug: 7076289
Change-Id: Iafa3054335e8b1c3c8c3b8db2a4191d4ed4c8c41
/frameworks/base/services/java/com/android/server/ConnectivityService.java
fd8bf5c790749b0382c9d70424cac2367d6276e3 05-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix another issue #7097984 java.lang.SecurityException: Permission Denial:

broadcast asks to run as user -1 but is calling from user 0; this requires

Dupped bug of a different problem.

Change-Id: I15f4ab08b81f5f5746ba1cd183dee4f0b1281df5
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5ac72a29593ab9a20337a2225df52bdf4754be02 30-Aug-2012 Dianne Hackborn <hackbod@google.com> Improve multi-user broadcasts.

You can now use ALL and CURRENT when sending broadcasts, to specify
where the broadcast goes.

Sticky broadcasts are now correctly separated per user, and registered
receivers are filtered based on the requested target user.

New Context APIs for more kinds of sending broadcasts as users.

Updating a bunch of system code that sends broadcasts to explicitly
specify which user the broadcast goes to.

Made a single version of the code for interpreting the requested
target user ID that all entries to activity manager (start activity,
send broadcast, start service) use.

Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
da6da0907b28d4704aabbdb1bbeb4300954670d1 16-Aug-2012 Irfan Sheriff <isheriff@google.com> Captive portal handling

We now notify the user of a captive portal before switching to the network as default.
This allows background applications to continue to work until the user confirms he
wants to sign in to the captive portal.

Also, moved out captive portal handling out of wifi as a seperate component.

Change-Id: I7c7507481967e33a1afad0b4961688bd192f0d31
/frameworks/base/services/java/com/android/server/ConnectivityService.java
69ddab4575ff684c533c995e07ca15fe18543fc0 25-Aug-2012 Jeff Sharkey <jsharkey@android.com> Always-on VPN.

Adds support for always-on VPN profiles, also called "lockdown." When
enabled, LockdownVpnTracker manages the netd firewall to prevent
unencrypted traffic from leaving the device. It creates narrow rules
to only allow traffic to the selected VPN server. When an egress
network becomes available, LockdownVpnTracker will try bringing up
the VPN connection, and will reconnect if disconnected.

ConnectivityService augments any NetworkInfo based on the lockdown
VPN status to help apps wait until the VPN is connected.

This feature requires that VPN profiles use an IP address for both
VPN server and DNS. It also blocks non-default APN access when
enabled. Waits for USER_PRESENT after boot to check KeyStore status.

Bug: 5756357
Change-Id: If615f206b1634000d78a8350a17e88bfcac8e0d0
/frameworks/base/services/java/com/android/server/ConnectivityService.java
82f8521d386f3109147c477d04e5e90e5c715fa0 24-Aug-2012 Jeff Sharkey <jsharkey@android.com> Migrate legacy VPN arguments to system_server.

Generate the racoon and mtpd daemon arguments in system_server,
instead of accepting them from Settings.

Bug: 5756357
Change-Id: I42c1a644f6add477fe4222342640d7db15982cb8
/frameworks/base/services/java/com/android/server/ConnectivityService.java
899223b97c9b0ae56a8211a46600914c0ecfd854 05-Aug-2012 Jeff Sharkey <jsharkey@android.com> Begin moving VPN to NetworkStateTracker pattern.

Created base tracker that handles common bookkeeping, and move VPN
to become a tracker. VPN status is now reflected in NetworkInfo, and
is mapped to LegacyVpnInfo.

Legacy VPN now "babysits" any init services it starts, watching for
when they stop unexpectedly.

Bug: 5756357
Change-Id: Iba7ec79da69469f6bd9a970cc39cf6b885b4c9c4
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d14e17627266ff8cf804d1f8241a0a4bde7a0ab4 20-Aug-2012 Robert Greenwalt <rgreenwalt@google.com> Update TCP buffer size when switching network type

Import of non-merging change 41612 from AOSP

When PDP connects in GSM network, the TCP buffer window size is
set to max 8760. If the phone swicthes to UMTS, the TCP buffer
size is not updated to UMTS, i.e. GPRS buffer size is still
used with limited data transfer spead as a result.
This fix makes sure the TCP buffer size is updated when
switching network type.

Change-Id: Ic44a557677ffe629e83ce1f522a9f058bee6e7b2
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0412423f06ec633203b96f68b51f0720c33a2473 29-Jun-2012 Haoyu Bai <bhy@google.com> Setup idletimer for network interface.

Cherry-picked from commit f71ca8a5728e425de61ba794c9653dd0b04f16e3 in
master. DO NOT MERGE

Change-Id: I6101c7ae041b4cc1237ce7a9983753dbdfa301d3
/frameworks/base/services/java/com/android/server/ConnectivityService.java
fb11ffa2a04f0a6b1291cd7ffc68032fcc322312 09-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Isolate NetworkStateTracker creation, test." into jb-mr1-dev
fb878b66b9456f8fee2bcb1076263852d207949d 27-Jul-2012 Jeff Sharkey <jsharkey@android.com> Isolate NetworkStateTracker creation, test.

Change ConnectivityService to use a factory when creating
NetworkStateTrackers, which gives us a good place to inject mocks
for testing. Add initial tests to verify that network routes are
added and removed as networks changed.

Change-Id: I11cbc61a84c2ed4afa2670036295b1494eab26e1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
4e4306ab14f1f2125035ed43fbb021db8bc99c3f 06-Aug-2012 Jeff Sharkey <jsharkey@android.com> Merge "Include network type that caused broadcast." into jb-mr1-dev
75fbb4bdfde9188081f000506845d852f31362f0 06-Aug-2012 Jeff Sharkey <jsharkey@android.com> Include network type that caused broadcast.

Network type can be obtained through EXTRA_NETWORK_INFO, but offer
it as first-class extra since the returned NetworkInfo is deprecated.

Bug: 6936247
Change-Id: Ief59577afd2bd930f0f4c5650b413feef86bfbc3
/frameworks/base/services/java/com/android/server/ConnectivityService.java
216c181e76ee11a47a0b2a180f9af96740ab38ad 05-Aug-2012 Jeff Sharkey <jsharkey@android.com> Make generic BaseNetworkObserver.

This makes it easier to add new INetworkManagementEventObserver events
in future.

Change-Id: I432263d745558de4b878f313c1951230ed9db2b1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
4c628eba480d271d5547af5d4fafc01e0e53a5eb 23-Jul-2012 Jeff Sharkey <jsharkey@android.com> Split NST handler events away from CS internals.

Instead of sharing event space, use a different handler backed by
the same looper.

Change-Id: I11f1e4701c341665770ca640f3cba0c295bb7561
/frameworks/base/services/java/com/android/server/ConnectivityService.java
db3c8678e5cbdfec011afaf25bde2091152c30ad 20-Jun-2012 Haoyu Bai <bhy@google.com> Network data activity change intent for network interfaces.

The activity notification is received from netd, an intent
DATA_ACTIVITY_CHANGE is then raised for other part of the system to
consume.

Change-Id: Idfcc4763c51c5b314c57f546c12557082f06bebf
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a639b311e93ad14d9ee5c2b2c215ed2d86c32d2a 10-Jul-2012 Wink Saville <wink@google.com> Create telephony-common and mms-common

These have been created to reduce the size and complexity
of frameworks/base.

mms-common was created by moving all of
frameworks/base/core/java/com/google/android/mms
to:
frameworks/opt/mms

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5a0c320a820a0ccaafaa87ad858a29bf5d88a8b9 23-May-2012 Robert Greenwalt <rgreenwalt@google.com> Modify logging to debug this issue

Logging exec time on startUsingNetworkFeature as we've had some reports suggesting it's
causing ANRs.
Remove some logging from NDC so it's local log is more useful.

bug:6492166
Change-Id: I258ff6c59bff2c65935242d50496d84720c5d493
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5f4dafb48e065d07f01ee83a6b54aa4bd4b25fc4 01-May-2012 Jeff Sharkey <jsharkey@android.com> Block metered APNs when app is restricted.

When an app is restricted in the background, don't allow them to
start using metered network features. With this change they can
still use network features when in foreground. This avoids situation
where apps can bring up APNs which they are unable to use.

Bug: 5838267
Change-Id: I3ac96f2a545f67cba1ef12b8536cfd0da769d955
/frameworks/base/services/java/com/android/server/ConnectivityService.java
3bc9a79fe83d19d4701bd6035fd30d83f267906e 25-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Add bit to eventlog to handle new network types

bug:5514930
Change-Id: I29288cb39902578992ee53b171f228f8eeb407fd
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a697f4069dfc80e96203d5b80e8d68f2f490a68e 24-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Stop complaining about failure to remove routes"
2473a4bae16b2713753dd80f8356ad18fce43207 24-Apr-2012 Robert Greenwalt <rgreenwalt@google.com> Stop complaining about failure to remove routes

We often get told a network has gone away after the interface is downed
and the routes are auto-removed. Change the log to VDBUG so standard
builds don't have the noise.

bug:2856577
Change-Id: If12ec3ed3b646ff6ef89b3778d037cfc478c0d25
/frameworks/base/services/java/com/android/server/ConnectivityService.java
15ec7d6d7f23ec197a88619b5e03320cfebd2240 17-Apr-2012 Jeff Sharkey <jsharkey@android.com> Add ALLOW_METERED column to DownloadManager.

Also allow isActiveNetworkMetered() to inspect networks without
requiring ACCESS_WIFI_STATE.

Bug: 3001465
Change-Id: Ibc23577d4ad941e4f93db417be6b046881dcbfb1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
9f7cbf0e50bcb7e9163b23524814003ba8784732 13-Apr-2012 Jeff Sharkey <jsharkey@android.com> API to report if active network is metered.

Report to developers if active network is "metered" and define it
as the user being sensitive to heavy data usage.

Bug: 3001465
Change-Id: I855ca3cd3eb1de3c4814148d70ccf24957af898a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7b72ea71b90f1c12ad9b104cc2e79499d98de863 02-Mar-2012 yoonsung.nam <yoonsung.nam@samsung.com> Fix the bug net.dns1.pid is same as net.dns2.pid

writePidDns() does not increase the index in case first given dns
already exist in the property.

Change-Id: I1129d0042929b3ee119160e53cae0e4143c7ea88
Signed-off-by: yoonsung.nam <yoonsung.nam@samsung.com>
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1f8ea2dcd1ed3cde4b84fbb27b5a55b3fea7ff2a 07-Feb-2012 Jeff Sharkey <jsharkey@android.com> Send broadcast when changing restrict background.

When changing global restrict background status, send connectivity
change broadcast, since it radically changes DISCONNECTED/BLOCKED
status system-wide.

Also reduce verbose stats logging.

Bug: 5854466
Change-Id: I3b612c520f50cc3000a3a569b7e0ab5f691cc2bd
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c7d7eafb66f14766e9fa0013407862502dcdfb66 25-Jan-2012 Wink Saville <wink@google.com> Add additional debug

When ConnectivityService#startUsingNetworkFeature is called and the
special network is not available output some additional information.

Change-Id: I34b226a208596fa6418f1f37a0feec1d274d493c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
2772143eff6a69ae7182e0c2628809d8dbd8d355 20-Jan-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Stop using shared DUN APN when tethering stops."
b97d34c7c81ed7def6d0c1d7a76d057051f7d154 06-Jan-2012 tk.mun <tk.mun@samsung.com> Disable wimax when mobile data is in Settings

- Add wimax related code in handleSetMobileData to disable wimax when Moblie data is disabled (Settings -> Wireless & Networks - More -> Mobile Networks ->Data Enabled)

Change-Id: Ibf2d9da2eb90d161128005f26ac4b3e991526af4
Signed-off-by: tk.mun <tk.mun@samsung.com>
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8beff9586ff89a1e59469e9820fd9e9d704300d2 14-Dec-2011 Robert Greenwalt <rgreenwalt@google.com> Stop using shared DUN APN when tethering stops.

Even if other people are sharing the connection (ie, carrier wants
default and tethered traffic on the same APN) stop using
a carrier-described APN when the tethering stops.

bug:5525764
Change-Id: I95ed2aaed4d79519d233a62cf2945edead8114bc
/frameworks/base/services/java/com/android/server/ConnectivityService.java
424781e2e1a1f1447eea733ffd1dc0f8006b628e 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Fix NPE in ConnectivityService.

If it's configured with a defined network but can't create a network state tracker
for it, it would NPE and restart the framework whenever a default network
disconnects.

bug:5603268
Change-Id: I816c4f522d766e0353a713623f6635b03395b01e
/frameworks/base/services/java/com/android/server/ConnectivityService.java
6537b028757af736ff53a13488de4fa75aaef9a9 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Fix Wimax-less build.

A build with the wimax network type defined but wimax disabled
causes an NPE in ConnectivityService's constructor.

bug:5237167
Change-Id: I929eac217e1afa0e61346fdbc3e96a7d3ad09a54
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8588e47358878b7a1add2bd1df2ade95091cdb8d 08-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Fix build.

Missed a commit that fixed some issues.
bug:5237167

Change-Id: I61e44831e2c3f1cf613ca1387aa95d712b7d2ded
/frameworks/base/services/java/com/android/server/ConnectivityService.java
148c7d0de720a92632aa6ed10a39bfc38b427239 13-Oct-2011 tk.mun <tk.mun@samsung.com> Wimax : wimax framework related open source.

Integrate wimax network related changes into Android Framework.
- In Connectivity service, start wimax service.
- 4G icon display in StatusBarPolicy.
- DHCP renew add.
- Add radio for wiamx

Change-Id: I2d9012247edfdf49d71ca7e1414afd0006f330ca
Signed-off-by: tk.mun <tk.mun@samsung.com>
bug:5237167
/frameworks/base/services/java/com/android/server/ConnectivityService.java
3b28e9a3daede9eac44faeb736ab4c8386ddd089 02-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Start using IP tool for advanced routing.

bug:5495862
bug:5396842
Change-Id: I5e31b352b14a4dc746cacce4d61cf8d9ad7382a0
/frameworks/base/services/java/com/android/server/ConnectivityService.java
4efe58d8e7ff6186e5f0341174f22123e0934bee 27-Oct-2011 Robert Greenwalt <rgreenwalt@google.com> Temp disable Tethering if DUN is required

Getting source-based routing working is too risk for this point
in the project but tethering is broken otherwise, so disable
the tethering option if DUN is required until we can get a real
fix in.

bug:5495862
Change-Id: I5e852bf30c887599024a8b61af86ffec1d5333af
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1059c3c30ad96a15695c1a92ae8896e078a6309f 05-Oct-2011 Jeff Sharkey <jsharkey@android.com> Move battery stats to xt_qtaguid for data stats.

Replace TrafficStats calls by reading values from xt_qtaguid kernel
module. To keep BatteryStatsImpl changes lightweight, cache recently
parsed stats. Tracks mobile ifaces from ConnectivityService.

Refactor xt_qtaguid parsing into factory outside of NMS. Add stats
grouping based on UID, and total based on limiting filters like iface
prefix and UID.

Bug: 4902271
Change-Id: I533f116c434b77f93355bf95b839e7478528505b
/frameworks/base/services/java/com/android/server/ConnectivityService.java
4c12a47bffc51868285b17db9f00d40affc7c9e3 04-Oct-2011 Chia-chi Yeh <chiachi@android.com> VPN: temporarily disable the default proxy when VPN is active.

Bug: 5361858
Change-Id: I99e84cce9c99ff1f5fdccbfd3bfb9cf496ac541c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e4474c3b7098a13bc81b0dba35bacd93b8a22f79 29-Sep-2011 Chia-chi Yeh <chiachi@android.com> ConnectivityService: detach the logic of global proxy.

The current implementation of global proxy is dead,
and it will be removed completely in separate changes.

Change-Id: I54f6b3960f761483d28d808e99db4c71c9c0348d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c1358b240c28443496249a5483afaccfc93f8d97 29-Sep-2011 Lorenzo Colitti <lorenzo@google.com> Revert "Tell the resolver what protocols to use."

Change Ife82a8d8 broke IPv6 on wifi. Change I4e3a69ea is
an alternate approach that does not require any framework
changes.

Bug: 5284168
Change-Id: Ib6e002aa23700adc71051cf6b76860545497dbf4
/frameworks/base/services/java/com/android/server/ConnectivityService.java
61c0818f2425691e67921ee41ca80e62d2cb9004 26-Sep-2011 Jeff Sharkey <jsharkey@android.com> Merge "Watch network subtype, tethering teardown, empty."
511ecc8cf9f1b0660c4284f667cbc3807d2ebf82 23-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> am b849074c: Merge "Tell the resolver what protocols to use." into ics-factoryrom

* commit 'b849074cb58edc15b0764afdde0326c0b6d5b147':
Tell the resolver what protocols to use.
b849074cb58edc15b0764afdde0326c0b6d5b147 23-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Tell the resolver what protocols to use." into ics-factoryrom
d90c611a59d955d4a2e849d98070a6564df2fe4b 14-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Tell the resolver what protocols to use.

Stop guessing based on the connectivity of the default route and use the correct
v4/v6 proto for your pid.

bug:5284168
Change-Id: Ife82a8d8e54c0ace2bc9e8a624b11d29a4e285e2
/frameworks/base/services/java/com/android/server/ConnectivityService.java
367d15ab1a33b6159447fa8542d4fa8ff148371c 22-Sep-2011 Jeff Sharkey <jsharkey@android.com> Watch network subtype, tethering teardown, empty.

Watch for changes to telephony network subtype, and update iface
mapping to persist stats under correct type. Update network stats
before removing tethering NAT rules.

Skip recording that would create empty historical buckets. Query UID
stats before iface stats to always skew positive when counters are
actively rolling forward.

Bug: 5360042, 5359860, 5335674, 5334448
Change-Id: I8aa37b568e8ffb70647218aa1aff5195d3e44d5a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
94097b44b86f15d2581af5f3df21b5afcab27d01 22-Sep-2011 Wink Saville <wink@google.com> am 904fb9d7: Merge "Notify people of empty proxies too." into ics-factoryrom

* commit '904fb9d79cc72879e4c6767c219ec78feda8e62b':
Notify people of empty proxies too.
0e09082559885528a37e48ab0a865ac6754d2fd5 22-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Notify people of empty proxies too.

We were telling people when the proxy changed, except if it was changed to null.
bug:5263946

Change-Id: I83416dac8fe992168a8aafd5676f9faee4e484d0
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d30f73725bf6f7b668244a0e51245a85005c3e9f 21-Sep-2011 Wink Saville <wink@google.com> am 4aa8d943: Merge "Reduce connectivity logging" into ics-factoryrom

* commit '4aa8d943a970008915b703758743b107927d96fa':
Reduce connectivity logging
c9acde9aa6cf21598640aeebb7d908f1926a48dd 21-Sep-2011 Wink Saville <wink@google.com> Reduce connectivity logging

Change-Id: I5d45b8fbcd01e42df7f2b1cf02fb5b226128abb8
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a10a3ad35afc0b2a97cd72afceebd8e3db9b7db4 21-Sep-2011 Irfan Sheriff <isheriff@google.com> Change hostname format to conform to specification

Underscore is not allowed as per RFC 952

Bug: 5348537
Change-Id: I618c137fd54ecf36cece3b9eba39c51cda3aeac3
/frameworks/base/services/java/com/android/server/ConnectivityService.java
cdd02c5d76d3dd4e21b5bb922d7fcfb86efec85f 16-Sep-2011 Jeff Sharkey <jsharkey@android.com> Collect and persist tethering stats.

Use new "gettetherstats" netd command to retrieve statistics for
active tethering connections. Keep tethering poll events separate
from UID poll, even though they end up same historical structures.

Bug: 5244846
Change-Id: Ia0c5165f6712c12b51586f86c331a2aad4ad6afb
/frameworks/base/services/java/com/android/server/ConnectivityService.java
9b2886e24301e5d4e7052ec4a6eaff273d3f516c 31-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Create new isNetworkSupported API

Useful for checking if on a wifi-only device.
Similar to asking for NetworkInfo for a network type and checking for
null, though here the intent is explicit.

bug:5087537
Change-Id: Ia3ddd09b6b735b8b3ceb7a347891e015fd96b218
/frameworks/base/services/java/com/android/server/ConnectivityService.java
961e30458319cfd50e1892ba7dd14a1d0ebe4cc7 30-Aug-2011 Jeff Sharkey <jsharkey@android.com> Introduce immediate CONNECTIVITY_ACTION variant.

New broadcast that is dispatched immediately after connectivity
changes have been handled by ConnectivityService, bypassing any
applicable CONNECTIVITY_CHANGE_DELAY.

Also protect CONNECTIVITY_CHANGE broadcasts, since they should only
be sent by system.

Bug: 5198167
Change-Id: I75f1fb44b21da1879f0ab960bcaa481126d70fde
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8e28b7d78232f6cf08739ca0d129cc7f9e650801 19-Aug-2011 Jeff Sharkey <jsharkey@android.com> Proactively disable data when over policy limit.

Add policy controls to NetworkStateTracker which are combined with
other user preference and internal flags to decide if data connection
should be established. Better locking around enabled flags.

When data network would be over limit, proactively disable data on
that network. Enable when policy is snoozed or when cycle resets.

Track and dismiss notifications from now-stale policies.

Bug: 4587023, 5178147
Change-Id: Ibfcc9f73cda7c369209af701b46eddd3d1943f2d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
9a20fa54c9ba4bd19f2afd6e8cc6e9954e7cb739 19-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Background data notification, API clean up."
3a844fcf5a0e70a19c38dc500306b9ebe4e1413b 16-Aug-2011 Jeff Sharkey <jsharkey@android.com> Background data notification, API clean up.

When restricting background data, show ongoing notification to give
easy access to re-enable. Deprecate getBackgroundDataSetting() API
to always return true, since NetworkInfo.isConnected() is new source
of truth. Handle upgrade path by reading from existing secure value,
and kick one last broadcast when changing value. Remove background
data code from ConnectivityService.

Remove warning alerts, since they push ifaces into restricted list;
should only happen when iface has limit.

Bug: 5163559, 5129421
Change-Id: I0064d9d643656a4d32aaae51d4a58bce49fe295f
/frameworks/base/services/java/com/android/server/ConnectivityService.java
4a56c437b6fd02dce06fa8565953964b01d21b5d 16-Aug-2011 repo sync <isheriff@google.com> Merge "P2p enhancements"
0c074e68437f1a705a8e73ac32e8e4dec370ec43 16-Aug-2011 Chia-chi Yeh <chiachi@android.com> VPN: reset legacy VPN when resetting IPv4 addresses.

Currently legacy VPN only works on IPv4, and it should always
turn down when the addresses are changed. It assumed that the
interface will be brought down and up, so the event can be
detected via interfaceStatusChanged(). However, the assumption
was incorrect and the event is actually driver-dependent. To
fix this issue, ConnectivityService now tells VPN that the
interface is down when resetting IPv4 addresses.

Change-Id: I76d15e56552d86635c5b274ca980be5da905a6fb
/frameworks/base/services/java/com/android/server/ConnectivityService.java
f125a093636ef22c81a9d90397407f9ef05a6e9a 15-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Flush central DNS cache when things change.

Flushes the cache for an interface when
either routes or DNS servers change.

Change-Id: I021305f781be669aaa12074dc1cc21511f49eac4
/frameworks/base/services/java/com/android/server/ConnectivityService.java
aea743aaa43a833fd8ff3dc56205197583152d5f 30-Jul-2011 repo sync <isheriff@google.com> P2p enhancements

- ConnectivityService interaction and support for running dhcp server
and client

- State machine enhancements for connectivity interaction

Change-Id: Iba3beb8c87554ffd67a7b7e852bbb4dd8666a4f5
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e6b2429cf719f30259a3eae61b94524b5cff4fab 10-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Remove default routes for non-default networks.

Recoding/port of a change that existed in GB but got dropped
in the shuffle.

bug:5036222
Change-Id: I87e819d255c0c46f3ec8fe0fe18d27ae9df1ae36
/frameworks/base/services/java/com/android/server/ConnectivityService.java
2b30afdbad5e79c5775ac9756f3b986268d90f1f 05-Aug-2011 Wink Saville <wink@google.com> resolved conflicts for merge of 7bb2d942 to master

Change-Id: I026b01805c81d8b26d22e4a195e5e38655a34d32
7bb2d942498dea702f2020d7b81f0e13c2623500 05-Aug-2011 Wink Saville <wink@google.com> am 090df1dc: Merge "Delay connectivity change notifications." into honeycomb-LTE

* commit '090df1dc4188e5b9ef10a0aca5081a196085ff56':
Delay connectivity change notifications.
628b08530a50bddbe3d65088a8b621c0950e0c19 05-Aug-2011 Wink Saville <wink@google.com> Delay connectivity change notifications.

Because changes to the route tables take time to propagate
we add a delay when sending out change notifications. This allows
applications, such as GTalk, to create sockets without encountering
a 3 minute timeout.

Bug: 5008488
Change-Id: I0eefb03a5d6358a58ea6ae5b4f697ff302b5511d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a841e524013c4bff360f2280cb5d2fbb1895d043 04-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Expose quota status for active network."
f0ceede8fff5df24e5c98701d81c2b71eb138aa9 03-Aug-2011 Jeff Sharkey <jsharkey@android.com> Expose quota status for active network.

Create API to expose quota status derived from underlying network
policy. This is designed to support applications making informed
decisions when performing network requests.

Fix bug with random stats generation, and write policy when changing
restrict background data flag. Deprecate EXTRA_NETWORK_INFO, since
it varies based on UID.

Bug: 4517283, 5088603
Change-Id: Ic6893a8967f69937e466be226ba7bb86ef5a5d2d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
58d4c595818de0d1b7edf382fee6ed1a4bd70e7f 03-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Reduce ConnectivityService logging

bug:5106520
Change-Id: I4a7a5cac51c09e9e2275b30b7b2c053f94b9088d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8935696a19822283212591917f04e4b91b5b9219 02-Aug-2011 repo sync <isheriff@google.com> Fix networktype on per process DNS setting

This potentially has no impact on mobile due to DNS settings being the same. Seperate this change out of the p2p change

Change-Id: I70fff9b1e13015956793b19732785037adb0af24
/frameworks/base/services/java/com/android/server/ConnectivityService.java
f9665221aaa229dc8a7cac6fbd1d9ea165c42068 29-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am a128f5f8: am 1a230885: Merge "Fix NPE when going from proxy to no proxy." into honeycomb-LTE

* commit 'a128f5f8c952d7f519f64882792e832a4e75e2c8':
Fix NPE when going from proxy to no proxy.
a128f5f8c952d7f519f64882792e832a4e75e2c8 29-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am 1a230885: Merge "Fix NPE when going from proxy to no proxy." into honeycomb-LTE

* commit '1a230885b356256e91b3bf006ec72213ba6f8f76':
Fix NPE when going from proxy to no proxy.
fde1eb7cf88e488d619d3168f83fb2e740d39296 29-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Fix NPE when going from proxy to no proxy.

bug:5081431
Change-Id: I68a8cca94e4612bd9ee2faf1123e0b63dc25b833
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c59c6da9ae14097c77eee69285c6eacc8130936c 27-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of af75fdb1 to master

Change-Id: Ib7f3521b0af6df9346cf940d69f2988b1c87e129
af75fdb16566c3011284afaa7d12bcf6126dd4f3 27-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 41394a36 to honeycomb-plus-aosp

Change-Id: Ic839eb7bd8081b94802dbbf9140b9d1fa0cf7df3
22d93a0d71d965970f581cd9aa1cbf2efbb5998f 27-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 41394a36 to honeycomb-plus-aosp

Change-Id: If4dc99c558dc45c9a7ff8d3ea5be69578b4ee793
41394a361020e9f58524f23d6831bb8e63063856 26-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Use dns proxy a bit." into honeycomb-LTE
572b7048a6ed6cf6c5f6bc6c9d542dc377d601ff 26-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Use dns proxy a bit.

Sets the current default interface and sets the dns per interface.
port of changes 23041 and 22098 from opensource.
bug:5060618

Change-Id: I80e7ef88727eeb8ff2b48059f69b270e5a6b5c16
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a10b7fd2239668a87be690a57ef7b3bc39b6bfd3 26-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of a7f68230 to master

Change-Id: I9e8faaa94f9b251a9c003dc6b9a3e2a97c4564a9
a7f68230be1ac025dbeada77e2ff3f16bb2ac04c 25-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 26ecc31f to honeycomb-plus-aosp

Change-Id: I23f42e247884f0c9d5ae4d3466213592dd3433d9
5db7af968a5b57ad9f8e5a61534cafe46c344b85 24-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "Fix USB tethering"
6c2260b3af3a9243aa7f04cf03106f31817cb4c1 19-Jul-2011 Mike Lockwood <lockwood@android.com> Fix USB tethering

The previous approach no longer works with the new USB drivers, since the usb0
interface is no longer enabled by default.
This introduced a chicken & egg problem - usb0 will not be enabled until the
user tries to start tethering, but Settings will not enable the checkbox unless
usb0 is enabled.
To fix this we add an explicit call to start USB tethering in the connectivity manager.
This will enable RNDIS if necessary and then bring up tethering once usb0 is enabled.

Change-Id: Iae1f733366aa6b0dafa66d4c97207794173ef54b
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/ConnectivityService.java
6dcf2d77767f73608caa316db534a1df64a2b272 22-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am 19933916: am ad55d351: Add better routes for secondary DNS

* commit '199339169476d0d6d0ecaa8ed3bff3a9e9a0f430':
Add better routes for secondary DNS
199339169476d0d6d0ecaa8ed3bff3a9e9a0f430 22-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am ad55d351: Add better routes for secondary DNS

* commit 'ad55d35114237071133eb28ded93a014185d4e35':
Add better routes for secondary DNS
ad55d35114237071133eb28ded93a014185d4e35 22-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Add better routes for secondary DNS

We'd been doing no-gateway hostroutes for dns servers on secondary nets, but on
some devices (multi-homed stingray) this is a problem. Add gateway-ed hostroutes
instead so the BP can do it's nonstandard "magical" demultiplexing.

bug:5011392
Change-Id: Ia48f69c8ddf2a37cfb8f014f078f96bf601d2ddb
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1efe4d5cfd3913b3c4efa7aee4bf9fea262c0ad2 20-May-2011 Robert Greenwalt <rgreenwalt@google.com> First pass tying into per-interface DNS cache

Change-Id: Iacce225d392786e37fa2dbf9647045fca0b70e64
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b503b85491cf165c8d098e2ae08a7e9f4db0bd03 20-Jul-2011 Chia-chi Yeh <chiachi@android.com> Merge "ConnectivityService: Implement VPN callbacks to update DNS servers."
47d4caf41b052ab88f747ccc789754be5f44f8af 20-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Start default connections on startup."
44bb251be76894967ea57a3c904377e32325bc3e 15-Jul-2011 Chia-chi Yeh <chiachi@android.com> ConnectivityService: Implement VPN callbacks to update DNS servers.

Change-Id: I7b5063f0344a2a5c2754600386982e870adc1161
/frameworks/base/services/java/com/android/server/ConnectivityService.java
782ed09f2f37123081541bee3f809ef92959e316 19-Jul-2011 Wink Saville <wink@google.com> am 57aebc61: am f679d4cb: Merge "Fix FeatureUser leak in ConnectivityService" into honeycomb-LTE

* commit '57aebc6109f2059ba335a02bf95928a494cff4ba':
Fix FeatureUser leak in ConnectivityService
57aebc6109f2059ba335a02bf95928a494cff4ba 19-Jul-2011 Wink Saville <wink@google.com> am f679d4cb: Merge "Fix FeatureUser leak in ConnectivityService" into honeycomb-LTE

* commit 'f679d4cb92b6d1c193a154abb5ae8fb3a786fc43':
Fix FeatureUser leak in ConnectivityService
3bed4c9f50b3601e2ceec249e2ee83f39192f5db 19-Jul-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Fix FeatureUser leak in ConnectivityService

In case infinite restoral timer is used for a network feature,
FeatureUser could be keep added but never released if a user
is keep calling "startUsingNetworkFeature".

This patch will add duplication check when adding a FeatureUser
into the list in case infinite restoral timer is used.

Bug: 5043513
Change-Id: I47e7076e217f201454fae33ce596ecdc63cf7908
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c96e6ccec9c41dee75f54e0db418df345e2a9bd9 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Start default connections on startup.

On devices with mobile data we were kind of doing this in Telephony.
Devices without could use this.

bug:5030831
Change-Id: I9940561e88e43917bc8e638f5c3b15fced3821ae
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ef75edaf0fd226bba37fe304d3395c8e5a59ccf7 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am e1635197: am 476f5525: Small fix to 5008973 fix.

* commit 'e1635197bb6e6471b333d194855bb399da419957':
Small fix to 5008973 fix.
d9212d3088d2ecb794933c2f96392ea160b857eb 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 8550f3b8 to master

Change-Id: If2881b8b7faea5139af83a37cba04ccac5904f81
e1635197bb6e6471b333d194855bb399da419957 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am 476f5525: Small fix to 5008973 fix.

* commit '476f55253adc670d7290ad8c90b5adc9e4f58d3b':
Small fix to 5008973 fix.
8550f3b86aabe04e149866839bde78b335cc1104 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 0a46db5d to honeycomb-plus-aosp

Change-Id: I0f1bea54d999ab3ef10400ee67bd4d3b2a5d1783
476f55253adc670d7290ad8c90b5adc9e4f58d3b 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Small fix to 5008973 fix.

Removed redundent log.
Cleaned some logic.
Will try to modify route even if recursive operation had an error.

bug: 5008973
Change-Id: Ie2ca51cc39cfac027a8a2e2eaddcb7d6c378c4da
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0a46db5d88461d9a6c85bb2e95982ac4c511d57e 14-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Apply the dns and route diff which we get a change

bug:5008973
Change-Id: Ib99e43d9d852452cc1f2aea6bef07bbd194f28cc
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5779c9c2d9f1f7a28279fe907aebbb43981286fd 15-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: close the socket in protectVpn() to avoid leaking descriptors.

Change-Id: Idda0c2ea1770abc490566e894711bcb08f60b354
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c9822c5aeae833bb4a586c7af8a7b2641e8c17ae 14-Jul-2011 Wink Saville <wink@google.com> Fix build.

Changes in ConnectivityService in hc-LTE when merged with changes
happening in Master caused the build to break.

Change-Id: I92a0b782ae58e9789b1e950c94ef966234fa94af
/frameworks/base/services/java/com/android/server/ConnectivityService.java
76326a9d7da1e1726142be4e9c6b770aae7a90ca 14-Jul-2011 Wink Saville <wink@google.com> am 3810361e: am 6d1d16c3: Merge "Remove STOPSHIP but allow seamless Handoff when possible." into honeycomb-LTE

* commit '3810361e4a3e93d3c8a10aaeec54f65dfcc2d03d':
Remove STOPSHIP but allow seamless Handoff when possible.
3810361e4a3e93d3c8a10aaeec54f65dfcc2d03d 13-Jul-2011 Wink Saville <wink@google.com> am 6d1d16c3: Merge "Remove STOPSHIP but allow seamless Handoff when possible." into honeycomb-LTE

* commit '6d1d16c324a681dd966d47497a71a02eac512234':
Remove STOPSHIP but allow seamless Handoff when possible.
e822225f7a01ef088ff01f7613f953d5d89945ed 13-Jul-2011 Wink Saville <wink@google.com> Remove STOPSHIP but allow seamless Handoff when possible.

If an address is removed we must reset the connection but
only for the connections associated with that address. For
now we're doing the "all" addresses for a type (IPv6 or IPv4)
in the future we only need to reset a particular addresses
connections.


Bug: 4981919
Change-Id: I97f8071a3ed6f827ed22f32216ca5011bfe6c1d9
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ae367419df6e5f55b081fa793b535cc84b55d6ed 08-Jul-2011 Wink Saville <wink@google.com> resolved conflicts for merge of e4a56a32 to master

Change-Id: I50f8fe61303efa78f5d450ddda1483e0ecb81d12
e4a56a32ac243dad5e7fa33c5de4777d9a4b8162 08-Jul-2011 Wink Saville <wink@google.com> am 8171e6f6: Use resetConnections with resetMask.

* commit '8171e6f690cca1bad354e7e352823d79d420daf3':
Use resetConnections with resetMask.
8171e6f690cca1bad354e7e352823d79d420daf3 08-Jul-2011 Wink Saville <wink@google.com> Use resetConnections with resetMask.

Bug: 4981919
Change-Id: I5dec2da0756d5083bc81494fd583672704537694
/frameworks/base/services/java/com/android/server/ConnectivityService.java
2e46764a707bd14cad22bc179669eeecb2d7c647 04-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: implement status report for legacy VPN.

Change-Id: I81c28dafd9588572df76cbc303b0d6a0f41f9bc6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
100155a310fbb5028fc48e359bdfb7c4d3531843 04-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: convert prepare() into a form which helps solve race conditions.

When someone tries to revoke packageA, it is possible that packageA is
already revoked by packageB. In this case packageB should not be revoked,
and the new prepare() can help solve this problem.

Change-Id: Iee056a191dd99467b8ad1b5379a17b02d404bad1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
44e27b5c74b5f441973561a4f945cb58e0cc45a4 03-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: remove the old VpnService.

Now VPN is (kind of) integrated into ConnectivityService.

Change-Id: If98e456e779f8e97f562d99c57d909b1f5d9db55
/frameworks/base/services/java/com/android/server/ConnectivityService.java
77fd485c2ff780d1e6ef0ba1e3e811370ecbc528 03-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: export legacy VPN in IConnectivityManager.

Change-Id: I016fe056ceab39ffc36aa235d14b30a9f094a2e1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8909b10175303bd5e2ca82b7ba12cd0017050ef3 01-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: Use List<String> instead for dnsServers and searchDomains.

Change-Id: I5d72c182ad47f59121a04b68ec6c2d164e2d00a8
/frameworks/base/services/java/com/android/server/ConnectivityService.java
bf731e7f905b0de85887d076867a499af640b5d1 27-Jun-2011 Wink Saville <wink@google.com> am 7eff4bb3: am f49e4d3f: Merge "Temporary re-enabling iface name change handling on HO" into honeycomb-LTE

* commit '7eff4bb3f9c0cf0335dd1b2769bcb352b137dbaa':
Temporary re-enabling iface name change handling on HO
dde052f4ba57d74af25a513853bacc035368240e 25-Jun-2011 Irfan Sheriff <isheriff@google.com> Merge "WifiWatchdogService - disable bad connections"
86994c1fc16f87658c2fd88537a7374777ecc67d 25-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 40717996 to master

Change-Id: Ie5c0f1f20c313d6c568b3b06f778f75223914ada
bc7dfb58bffea133ccf6d94470a26f8d193f4890 07-Jun-2011 Isaac Levy <ilevy@google.com> WifiWatchdogService - disable bad connections

Complete rewrite of WifiWatchdogService.java. Checking for connectivity and managing wifi upon failure detection.

Change-Id: Ifcb8b5d7e0112cbc2f2282d76fdc93ea15527a44
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7eff4bb3f9c0cf0335dd1b2769bcb352b137dbaa 24-Jun-2011 Wink Saville <wink@google.com> am f49e4d3f: Merge "Temporary re-enabling iface name change handling on HO" into honeycomb-LTE

* commit 'f49e4d3f182071081537dba3387db20cae27c427':
Temporary re-enabling iface name change handling on HO
1ccb10e25d5af8ef1d997b0ed2291dbbcaacf44e 23-Jun-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Temporary re-enabling iface name change handling on HO

Temporary accept interface name change in ConnectivityService.
See bug/4455071.

Bug: 4903011
Change-Id: I7f06c2ca83535b981f047cb671e08550aed7df1a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0e0a7597343b4f030be17788006006c93c85759c 23-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> am 1d6ffd73: Merge "Restrict access to protected networks." into honeycomb-LTE

* commit '1d6ffd7339c3dfa53de19e27ca09e57233cc25ef':
Restrict access to protected networks.
50393202f3ae0ab9114075ecc5b4c92faaf96251 22-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Restrict access to protected networks.

Some networks should only be brought up and controlled by system apps.

bug: 4585677
Change-Id: I61b1ee3dcfca0ee54387cecffe5198a0b010d98b
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5ff886e5319c519a6b644a999680ea651e208981 22-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 7a652bc8 to master

Change-Id: Id0a41cae36f5a3b30f2fe8a202c934153b9cd03f
7a652bc86a5c7a2b201a48d5c1cfcc9af5d6624f 20-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of b427f0e6 to honeycomb-plus-aosp

Change-Id: I8e287fd814b4a3ca72014ea060a1de043d1b4713
ccf83af1017b7b1eaf12f6ec3d2cb2137a7cdda9 03-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Fix tethering upstream determination.

Used to use iface names, but on mobile ifaces are multipurpose.
Refined to use ConnectivityService types.
bug:4530116

Change-Id: Iaa632d5f540d27ffff683bd7d94f8004bf422e71
/frameworks/base/services/java/com/android/server/ConnectivityService.java
fdfef57f498e3021a34342538aef9f1c7ccbae78 17-Jun-2011 Jeff Sharkey <jsharkey@android.com> Notify policy listeners about metered ifaces.

Currently, kernel definition of metered networks is applied at the
interface level. This change maintain list of those metered ifaces
and notifies policy listeners, like ConnectivityService. (This gives
us a consistent picture of when a network would be blocked.)

Bug: 4601393
Change-Id: I277d5ca96ab967a1c1c3f1da8f9587557cd6d74c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ad4c9ed7de1c3c3b7781db9c46503263c5bf8464 16-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "DownloadManager flags for network policy."
1a303953589fdddf21d88b8fa660136f5b060d0d 16-Jun-2011 Jeff Sharkey <jsharkey@android.com> DownloadManager flags for network policy.

Handful of DownloadManager flags to record when a download was paused
because of NetworkPolicyManager rules.

Change-Id: I99fc47f529cb6c8a42dbeca049e0cd0f1556eac4
/frameworks/base/services/java/com/android/server/ConnectivityService.java
4f1f7d3158b1576b72eabbb05f8ab8cfb25cd403 16-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> am 241b65ac: am 5f350512: Merge "Reset connections AFTER we take down the network." into honeycomb-LTE

* commit '241b65aca93e263f0869c5bec4ad1dbda0dec6db':
Reset connections AFTER we take down the network.
241b65aca93e263f0869c5bec4ad1dbda0dec6db 16-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> am 5f350512: Merge "Reset connections AFTER we take down the network." into honeycomb-LTE

* commit '5f3505121b761dbd3bba62d1603fbab49de139b9':
Reset connections AFTER we take down the network.
ec896c6a863b3cc0a55538a19879e2112b5b8658 15-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Reset connections AFTER we take down the network.

If you do it before you have a race condition and some apps will
manage to reconnect on the dieing network before it goes and then
get no notification when it goes.

bug: 3408025
Change-Id: I5386ff313c759b3f687bc38731454ab43dbe76b8
/frameworks/base/services/java/com/android/server/ConnectivityService.java
04ba25c418bc4538e9dc0f047cfb9608d358f679 16-Jun-2011 Chia-chi Yeh <chiachi@android.com> VPN: migrate from generic Bundle to our own Parcelable VpnConfig.

Note that VpnConfig is for internal use only.
Also remove hidden methods from ConnectivityManager.

Change-Id: Ic298c4dc9a2c6c452bd8f4be6fa84e7ac489c0c4
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ff3bdca31f4cf2bd607519b276dd175763aa1784 24-May-2011 Chia-chi Yeh <chiachi@android.com> The service part of the user space VPN support.

The dialogs will be in another change.

Change-Id: I0cdfd2ef21ffd40ee955b3cbde5ada65dbfdb0bc
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d2a458750e5a3d490af09cecb5c28370baf0a913 29-May-2011 Jeff Sharkey <jsharkey@android.com> Map network identity using ConnectivityService.

Instead of deriving network identity based on raw subsystem broadcasts,
listen for updates from ConnectivityService. Added atomic view of all
active NetworkState, and build map from "iface" to NetworkIdentity set
for stats tracking.

To avoid exposing internal complexity, INetworkStatsService calls use
general templates. Added TelephonyManager mapping to classify network
types using broad labels like "3G" or "4G", used to drive templates.

Cleaned up Objects and Preconditions.

Change-Id: I1d4c1403f0503bc3635a59bb378841ba42239a91
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5bc7c93ca7a40827120f232deca996630cd58a39 08-Jun-2011 Chia-chi Yeh <chiachi@android.com> Merge "Do not register the callbacks in the constructor."
c006f1aec15454782c35e028ad64d79a5c161cc1 20-May-2011 Jeff Sharkey <jsharkey@android.com> Policy and rules work for ConnectivityManager.

Teach ConnectivityManager about UID-specific rules derived from policy,
such as rejecting network traffic on "paid" interfaces. Calls that
return NetworkInfo now filter based on any REJECT rules in effect for
the calling UID. (Added uid parameter if callers that still want all
interfaces.)

Changed NetworkPolicyManager to derive rules based on current policy
combined with PowerManager and ActivityManager status, which it passes
to ConnectivityService for eventual enforcement through netd. When
rules change the usability of a NetworkInfo for a specific UID, it also
dispatches CONNECTIVITY_ACTION broadcasts to that UID. Combined paid
and background policy together to match current working definition.

Change-Id: I797ea49439fcc487cfe2cbc16703d4b91ceb9af6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
da8bb74b9d9ffcb095815db800d0816c411f1fba 28-May-2011 Mike Lockwood <lockwood@android.com> Move stringToFile utility from ConnectivityService to FileUtils

Change-Id: I59a2dc649d59677f6b5e7ade252587c7c151ec06
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/ConnectivityService.java
008ff39b7cb1a1f80f29595459fd82a55ce52b83 24-May-2011 Chia-chi Yeh <chiachi@android.com> Do not register the callbacks in the constructor.

Change-Id: Ic7509c35cfb17b022a2af3cc14170942d6510e2d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8508485871dd22a998db98ea97403126918c5fa8 22-May-2011 Robert Greenwalt <rgreenwalt@google.com> am 5a6bec53: resolved conflicts for merge of dec3dda8 to honeycomb-plus-aosp

* commit '5a6bec53e224b2db9ecbc6920faab08f4a962256':
Simplfy getActive* calls in ConnectivityService
5a6bec53e224b2db9ecbc6920faab08f4a962256 21-May-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of dec3dda8 to honeycomb-plus-aosp

Change-Id: If14c7fc51c4549524c2f39797a902093582bae6d
599115894f6f960a879d2e3036c547bbf4136020 20-May-2011 Robert Greenwalt <rgreenwalt@google.com> Simplfy getActive* calls in ConnectivityService

One had been simplified on GB, but somehow it didn't make it here.
bug: 4463770

Change-Id: Ica51e836b1a7a489526a223168910b8e06c99c2b
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5c3816f2ff3d40136da1e40eec792d8faf0e75dd 19-May-2011 Jean-Baptiste Queru <jbq@google.com> Merge c41aefe1

Change-Id: I70fc4382f832d1a2bded8a5ee7d9b96fac77879b
8904c3d814b5959b17a0523177f4142db6a18f1e 19-May-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> am b22a9fd9: am 01758e81: Linkproperties update via unsol data call state change.

* commit 'b22a9fd9bb32133cbc7dc4fc7752dbf68e52dffe':
Linkproperties update via unsol data call state change.
c41aefe1d4c862a9fbaf717ffb886bbd702c94f2 19-May-2011 Robert Greenwalt <rgreenwalt@google.com> am 59b1a4ed: Switch to use netd to add/remove routes.

* commit '59b1a4ede7032c1b4d897e13dd4ede09b5e14743':
Switch to use netd to add/remove routes.
59b1a4ede7032c1b4d897e13dd4ede09b5e14743 11-May-2011 Robert Greenwalt <rgreenwalt@google.com> Switch to use netd to add/remove routes.

Also adds support for v6 routes and for removing single routes.

Change-Id: I1c4f08c7938371090944d8d6f603e1e0d6d70c01
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b22a9fd9bb32133cbc7dc4fc7752dbf68e52dffe 18-May-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> am 01758e81: Linkproperties update via unsol data call state change.

* commit '01758e81b3ad89934581885bb2fc7006510ec639':
Linkproperties update via unsol data call state change.
01758e81b3ad89934581885bb2fc7006510ec639 01-May-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Linkproperties update via unsol data call state change.

Handles the scenario of radio technology handover with IP continuity.
Once RIL/Modem finished a handover operation, an unsol data call state
change will be send up to FW notifying all link propertes changes.
FW will then re-configure the device with new link properties
including iptable used by Tethering.

Change-Id: I05e29f66ac3db8ba4274d3662642607742ba1d12
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c9338305bf4d5cfb9ec2a1d64144d8cef32a00a5 12-May-2011 Chia-chi Yeh <chiachi@android.com> Extract NetworkManagementService out from Tethering to ConnectivityService.

and also some minor refactoring.

Change-Id: I0e74f30ef1b035d9ed37571c512fedc15d05db77
/frameworks/base/services/java/com/android/server/ConnectivityService.java
fc82cb170cfaf419f2a8da3baff8296d3ea4e241 11-May-2011 Robert Greenwalt <rgreenwalt@google.com> am 441bc9a6: am e6848fac: Merge "Fix the adding of host routes." into honeycomb-LTE

* commit '441bc9a6f41ca1678a6c965bec7e2f18227ac100':
Fix the adding of host routes.
441bc9a6f41ca1678a6c965bec7e2f18227ac100 10-May-2011 Robert Greenwalt <rgreenwalt@google.com> am e6848fac: Merge "Fix the adding of host routes." into honeycomb-LTE

* commit 'e6848faceff58f84f671dbc73be08ef7890fea09':
Fix the adding of host routes.
f43396caaaae8f336bcf6fe9128a89dc7a7b0a5c 07-May-2011 Robert Greenwalt <rgreenwalt@google.com> Fix the adding of host routes.

We used to just add

Change-Id: I991e4cc976cc2932887dd3242fd50e013d521b0a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b6f8bff10963893435afda7b426c7a5b1ac1cc1f 04-May-2011 Robert Greenwalt <rgreenwalt@google.com> am 9c7e6fc5: am f13eb830: Merge "Add auto-restore timeout for secondary networks." into honeycomb-LTE

* commit '9c7e6fc50614cc1739d4bfbf6187893c27b01a67':
Add auto-restore timeout for secondary networks.
9c7e6fc50614cc1739d4bfbf6187893c27b01a67 04-May-2011 Robert Greenwalt <rgreenwalt@google.com> am f13eb830: Merge "Add auto-restore timeout for secondary networks." into honeycomb-LTE

* commit 'f13eb8301f4704179938e374129f2943c9c38d5f':
Add auto-restore timeout for secondary networks.
f13eb8301f4704179938e374129f2943c9c38d5f 04-May-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Add auto-restore timeout for secondary networks." into honeycomb-LTE
f2102f7a1a26d399cc60c516ed7d90ef660de055 04-May-2011 Robert Greenwalt <rgreenwalt@google.com> Add auto-restore timeout for secondary networks.

Settable per network so you can have not timeout for some and some for others.
If you set the old NETWORK_RESTORE_DELAY_PROP_NAME system property
(android.telephony.apn-restore) it will override this value.

Change-Id: Icca706fdc74245dce679209116660e5dc4b05d23
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a8e0dfae06298b375637813a3263a62749dd0b82 02-May-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of db46fa25 to master

Change-Id: I8df9d5d07588fbd70e417dae567be26f645b74b6
db46fa25be0a3e8040b118f688b69dd526aed86d 02-May-2011 Robert Greenwalt <rgreenwalt@google.com> am a47c4019: Merge "Add RouteInfo objects for tracking routes." into honeycomb-LTE

* commit 'a47c40193fcbe9ca07facea78b2828afdae5e025':
Add RouteInfo objects for tracking routes.
aa70f101e08098ed9cb190abe2d7f952561026b8 28-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> Add RouteInfo objects for tracking routes.

Used to have list of gateways for default routes, but general static routes
should be supported.

Change-Id: I01730142c6139f2b833b9d48f5381d2d320b69f6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
316594715d31bb95b5efa08bfc80f287833b3a37 12-Apr-2011 Benoit Goby <benoit@android.com> am 2869d171: resolved conflicts for merge of 08c39c6a to honeycomb-LTE

* commit '2869d1715d815ef2b357bf182d384515cdf6f9ab':
Add support for USB Ethernet adapters
2869d1715d815ef2b357bf182d384515cdf6f9ab 12-Apr-2011 Benoit Goby <benoit@android.com> resolved conflicts for merge of 08c39c6a to honeycomb-LTE

Change-Id: I79f8ac1dc8ff9f5d0559d37043b850cd26246b92
08c39c6a11f728e113811a6a85c109cfc80ce28e 22-Dec-2010 Benoit Goby <benoit@android.com> Add support for USB Ethernet adapters

Change-Id: I6ae34a32d0e1b6f21c484b8639c3e7ce086e568d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
097786507b07ff7137b305b5cf71b5ecbc6b029e 07-Apr-2011 Wink Saville <wink@google.com> am de1b950d: am 9e7a5a1e: Merge "ConnectivityService needs to use the new names for the NetConfig vars." into honeycomb-LTE

* commit 'de1b950d2b07737e3d284ed2ada361737d8a5a1a':
ConnectivityService needs to use the new names for the NetConfig vars.
de1b950d2b07737e3d284ed2ada361737d8a5a1a 07-Apr-2011 Wink Saville <wink@google.com> am 9e7a5a1e: Merge "ConnectivityService needs to use the new names for the NetConfig vars." into honeycomb-LTE

* commit '9e7a5a1e567a0e696d9a7b68fffd00b7408e6ac1':
ConnectivityService needs to use the new names for the NetConfig vars.
975c8488a3667efc24a1ad5da15d571d9615020f 07-Apr-2011 Wink Saville <wink@google.com> ConnectivityService needs to use the new names for the NetConfig vars.

Change-Id: I809a624057462871cd1849051286c2bffd5099e9
/frameworks/base/services/java/com/android/server/ConnectivityService.java
80f7c594fae3f1b19e3ea78938de450418fe183c 07-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> am f4a29403: resolved conflicts for merge of 70c3d1c2 to honeycomb-plus-aosp

* commit 'f4a29403ae5b6d3e8e754a025d33f0c33adecb21':
Add external dependency API.
f4a29403ae5b6d3e8e754a025d33f0c33adecb21 07-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 70c3d1c2 to honeycomb-plus-aosp

Change-Id: I0962138f6ecb1ed54fda25524d8850b086f13c4f
d55a6b498d66d8fc415908ecf63e50f46cce67e8 25-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Add external dependency API.

An APN will not be connected to if some external dependency is not met.

bug:3486704
Change-Id: I7d94df343b260013efd11faa978deb13f07f1389
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b6c5d824c0eb34c218d18982c51b69c2df198220 05-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> am e716a551: resolved conflicts for merge of ab2194aa to honeycomb-plus-aosp

* commit 'e716a5515bfb9d9f1f8a5b87fee8b75bef3a1a96':
Only leave one default network up at a time.
e716a5515bfb9d9f1f8a5b87fee8b75bef3a1a96 05-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of ab2194aa to honeycomb-plus-aosp

Change-Id: I99a29f920336b00b26b9aadafd2bd835049f48cf
d7a8e8453d8302ac9820af49b4b112468efdf36d 04-Apr-2011 Simon Wilson <simonwilson@google.com> am ec944728: Merge "DO NOT MERGE Disable WiMAX when "Data Enabled" is off" into gingerbread

* commit 'ec94472835787b66e1799110411d5077d0ef37cd':
DO NOT MERGE Disable WiMAX when "Data Enabled" is off
ab2194aadeb35a1f2eae6c4d3abd476b33f167f4 04-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> am 27725e8c: Only leave one default network up at a time.

* commit '27725e8cd1e2eb3b88186ae8d43e437f130b1f84':
Only leave one default network up at a time.
13ec406381335b7b73ac989c296baac31a64df81 01-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> Fix a bad merge.

Re-add change 103769 (Change-Id: I9e7c94718a5b1f08840b219b304ba3904259a65f) from gingerbread
after the bad merge was reverted by master change 104487
(Change-Id: I8fad7ee11f4b26630f3cc4b31cc9cafbe66b3bf4).

bug:4157610
Change-Id: I96a75d71220cc7886a5b186b415d8dacf6951ca6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b1c6b0f1e2c9d80369ff62beae1305b837d8faca 31-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Fix the build.

Fix a bad merge.

Change-Id: I45d418a8868c9cab1b142ef997ad1d3550d11eee
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8fad7ee11f4b26630f3cc4b31cc9cafbe66b3bf4 31-Mar-2011 Michael Jurka <mikejurka@google.com> Fix the build

Revert "am 047f9d12: Merge "resolved conflicts for merge of ce6766ea to honeycomb-plus-aosp" into honeycomb-plus-aosp"

This reverts commit 352f2c33d3b8a0b73dcdab98c7a77f698578b048, reversing
changes made to ce8a55db6feae11c1db45a868a7d8a0e7d105471.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
352f2c33d3b8a0b73dcdab98c7a77f698578b048 31-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am 047f9d12: Merge "resolved conflicts for merge of ce6766ea to honeycomb-plus-aosp" into honeycomb-plus-aosp

* commit '047f9d12976d90d0931a64a256bb4843d77f5e20':
Fix some alt-network issues.
6244f0fc168291b428ba2595e0a3a0d5d4be2bd4 31-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of ce6766ea to honeycomb-plus-aosp

Change-Id: I4c3c382cc5cd89f8a4437cf17836fb42f9417ee1
8a7fc0af618d08dca5005881ae8d5b1994df34e0 30-Mar-2011 TK MUN <tk.mun@samsung.com> DO NOT MERGE Disable WiMAX when "Data Enabled" is off

When user uncheck "Data Enabled" check box, WiMAX goes
into "disconnected" state.

Change-Id: I3b9bdbc16cc4ddbf7a1aac0c984cad8994c4e9f2
Signed-off-by: TK MUN <tk.mun@samsung.com>
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ce6766ea51a943b9f8908cb18d0d9762497b478c 30-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am 568845a7: Merge "Fix some alt-network issues." into gingerbread

* commit '568845a766cddc4e4c222b4d9de064f8a48da990':
Fix some alt-network issues.
27725e8cd1e2eb3b88186ae8d43e437f130b1f84 29-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Only leave one default network up at a time.

If original refuses to tear down, tear down new one. It's better
to have none (which will try to launch them all again) than two.

Really people shouldn't refuse the teardown request.

bug:4183397
Change-Id: I54ea1bf0d2cd2ef16fcf2eafc69895ad2fe33ffd
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7cf5b419da5a49ccead2af51c7b6587ce1195958 25-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Fix some alt-network issues.

Two issues.
1) remove default routes for non-default networks.
2) don't report mobile is the active default network just because
it is active.

bug:4157610
Change-Id: I9e7c94718a5b1f08840b219b304ba3904259a65f
/frameworks/base/services/java/com/android/server/ConnectivityService.java
15cb32ed9d189526d5a98add386b28cea6bc46b7 23-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am 5635dc93: am 0b6d0445: am ac70fb8b: Merge "Fix adding of default route." into honeycomb-mr1

* commit '5635dc9313dc6ca3ea739e4ca36c42a2c58537e9':
Fix adding of default route.
0b6d044567b9c3004eb7ed826fd593019cd24352 23-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am ac70fb8b: Merge "Fix adding of default route." into honeycomb-mr1

* commit 'ac70fb8be6ea3a6b49d0a8a26e99c25f92013516':
Fix adding of default route.
edcb4f9d560a85970030e1df70426e8d1e2267d2 23-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Fix adding of default route.

If you deleted the host routes (started a secondary network like mms, supl
of hipri and then ended it) you would lose the host route to the default
gateway. Then if you needed to re-add the default gateway route (lost
the connection and removed the default route and then re-established)
you couldn't - can't add a gateway that isn't routable apparently.

This happens if you are in a video chat and lose your connection without
losing the interface (PPP keeps it up for a bit).

Fixed it by having addDefaultRoute first add a hsot route for the gateway
before adding the default route. This allows the default add to succeed.

bug:3490353
Change-Id: I415e7319832e6456f8757b14c4f79f098a08839b
/frameworks/base/services/java/com/android/server/ConnectivityService.java
9d7d62801ddb206d2ea96d74864a9edfe54d2eee 12-Mar-2011 Wink Saville <wink@google.com> Do not merge: Revert the revert of "LTE Changes for Telephony including Multiple PDN support and IPV6 support"

This reverts commit eca208fae6d1b6ae9c8c0e42eee092e86dbddbb7
and is the first of the LTE commits in master being back ported
to the LTE branch.

Change-Id: I17d4a1b779ed74bc7dfb409d2c1a30f60fdb27c7
/frameworks/base/services/java/com/android/server/ConnectivityService.java
2e7415564ad1d77537f9f3d5151ed480fcfc6ef9 11-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am b5c51d5f: Merge "DO NOT MERGE Backport of I1f55df8a from master." into gingerbread

* commit 'b5c51d5fa88c56ebbfb56af89beb077aa4f1f2f8':
DO NOT MERGE Backport of I1f55df8a from master.
6b09916eb2443ff8016b2d05dc7b2ef42a02a7e2 11-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> DO NOT MERGE Backport of I1f55df8a from master.

Fixes false reporting of NO_CONNECTION.
bug:4057115

Change-Id: Ie11e81180276ac3aa486607ec3a8eb1088b2ece6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c01fd043a92462f12210d45a92d751b49e0e1f62 10-Mar-2011 TK MUN <tk.mun@samsung.com> am 4bdab175: DO NOT MERGE WiMAX support

* commit '4bdab1751f0db3b2f03e8c58ef5c11a543dfa3c7':
DO NOT MERGE WiMAX support
4bdab1751f0db3b2f03e8c58ef5c11a543dfa3c7 23-Feb-2011 TK MUN <tk.mun@samsung.com> DO NOT MERGE WiMAX support

- In Connectivity service, start WiMAX service
- 4G icon display in StatusBarPolicy
- Add DHCP renew
- Add radio for WiMAX

Change-Id: Iffff012b270d80e84ec8fbd4486921a8adb847dd
Signed-off-by: TK MUN <tk.mun@samsung.com>
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1997069436f0d47583a0b700c12ed63132cf3312 22-Dec-2010 Benoit Goby <benoit@android.com> Add support for USB Ethernet adapters

Change-Id: Ie75cbcdb1b0c8965b59b89675a05175a1e9ebdd6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
eca208fae6d1b6ae9c8c0e42eee092e86dbddbb7 03-Mar-2011 Wink Saville <wink@google.com> DO NOT MERGE: Revert "LTE Changes for Telephony including Multiple PDN support and IPV6 support"

This reverts commit 2b8bcfe5b74e1a34d136f4ff46e3c94397f38f82.

Change-Id: Ifc4e9aaccb54e065a36380710694cd6e4d347636
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7e48e76cab10377367b925790cf3a840651009fa 02-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Start using NetworkUtils.numericToInetAddress."
e590373ea71251cfffc8f22f011e2e6335dce716 23-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Start using NetworkUtils.numericToInetAddress.

Generates InetAddresses without risking an accidental dns lookup. For use with supposedly
numeric-only ip address strings.

Change-Id: I694f3976ce1c6382854706f6557ea88a289add3a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7532d9972cd59025fa76691f8309fd0857bdcb20 26-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Fixing the write of BackgroundData setting."
db4afae70aa404f20c271965a8d7c1e2d64cb818 25-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Fixing the write of BackgroundData setting.

I outsmarted myself trying to minimize writes and caused no writes to occur.

bug:3485934
Change-Id: I292e6837d29903a21abb6e001d25d96a4cdc18ec
/frameworks/base/services/java/com/android/server/ConnectivityService.java
2b8bcfe5b74e1a34d136f4ff46e3c94397f38f82 25-Feb-2011 Wink Saville <wink@google.com> LTE Changes for Telephony including Multiple PDN support and IPV6 support

Added init for CDMAPhone.java

Change-Id: I2392b5ad3382ee1993537b8477ef00dd036c6fe9
/frameworks/base/services/java/com/android/server/ConnectivityService.java
de27b519588ed46c0ba601a489c01d26ec31757d 16-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> am 3259d885: Merge "DO NOT MERGE - backport of l92a02b31 from master" into gingerbread

* commit '3259d8853760a72b811757e1711119d041962a1c':
DO NOT MERGE - backport of l92a02b31 from master
7e62fd1436c0db6398528e654563896364d6000a 12-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> DO NOT MERGE - backport of l92a02b31 from master

Fix handling of multiple possible default networks.

bug:3328196
Change-Id: I994f1621ff82de454192945a9cae961e1710d537
/frameworks/base/services/java/com/android/server/ConnectivityService.java
992564e481af13cbcb058ee801f9254a520c54a1 09-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Update LinkProperties treatment of gateways

A link can have multiple gateways (think ipv4/ipv6 for a trivial example).
.

bug:3438810
Change-Id: I28c90a6947cd50b82e5ca9a0113148f98b3f4dd8
/frameworks/base/services/java/com/android/server/ConnectivityService.java
de5d85d10ebe5cdf5723b3cec41a1dff80208be0 27-Jan-2011 Wink Saville <wink@google.com> am 93fbb0ad: am 13a8f2a5: Merge "Comment out the isAvailable optimization." into honeycomb

* commit '93fbb0ad960a658633dfa2bc7be9584e4361ab85':
Comment out the isAvailable optimization.
9f7a0b2b0270b1ad59d2103839b1d4b02f910a90 27-Jan-2011 Wink Saville <wink@google.com> Comment out the isAvailable optimization.

As the comment says this causes problems if the connection
is handling errors. This removes the optimization for now.

Bug: 3386481
Change-Id: I6cb00abe8b1949e9b79b4906a6bdab5872b5054d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
3ed8dcfc4273e07dda699ba35b42c5c7c0bd906f 20-Jan-2011 Hung-ying Tyan <tyanh@google.com> am 9e0357b9: am 71196f0c: Merge "Make VpnService synchronous API." into honeycomb

* commit '9e0357b96bd5c84e39c3084625d58b21f9bad74c':
Make VpnService synchronous API.
6b818de29a5c273aad99eb3f5456f88169c911f4 19-Jan-2011 Hung-ying Tyan <tyanh@google.com> Make VpnService synchronous API.

This eases VpnSettings on dealing with multiple-activity-instance problem
(i.e., SettingsActivity and VpnSettingsActivity).

+ Most of the code is moved from the VpnServices package to vpn/java/.
+ VpnManager and VpnServiceBinder are revised to provide synchronous API.
+ Add a new method isIdle() to IVpnService.aidl.

Related bug: 3293236 (need to deal with multiple-activity-instance problem)

Change-Id: I03afa3b3af85d7b4ef800683cd075c356a9266c4
/frameworks/base/services/java/com/android/server/ConnectivityService.java
255362b604cb176ea11d69e074154db8da01429c 13-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> am 4b43f944: am 495056ab: Merge "Turn off DUN connection after tethering." into honeycomb

* commit '4b43f94499b6d0c4a34961d48b97d5e48a039f65':
Turn off DUN connection after tethering.
19b9ab46a9faee6031aaf6c78748401943fea117 10-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Turn off DUN connection after tethering.

Use matching feature type when turning tethering off or the request is ignored.

Also, turn on DUN apn right away so that we don't fail aggressive test cases.

Also don't report connections for enabled apn's that we're no longer connected to.

bug:3332880
bug:3338033
Change-Id: I7db2dfd4879f03465bc9f6d39488c078570dcaf3
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8403cbf100f28567bcfd619fcaef3c23cb4afc9a 12-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> am 1ea7e5df: am a78e9f05: Merge "Fix any_connection reporting." into honeycomb

* commit '1ea7e5df91f023d03fa7c87c534e6024795abaaa':
Fix any_connection reporting.
f21ef7db777e2c79b2f5acac55dcc310b14eb989 11-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Fix any_connection reporting.

A recent change caused us to think there was no other connection available
when transitioning from 3g to wifi.

bug:3335074
Change-Id: I1f55df8a0eb5b27131572b111fbaac8f1ebbc0d3
/frameworks/base/services/java/com/android/server/ConnectivityService.java
31ff309f2fc8036b1b8d8470649e535f10b4c2a5 07-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> am 89c8f755: Merge "Fix handling of multiple possible default networks" into honeycomb

* commit '89c8f7554bbec5d62ebeddddc2ef2460265a80c5':
Fix handling of multiple possible default networks
bff9018b74e68fe9bceb87ee2b7c2549f04e13c2 07-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Fix handling of multiple possible default networks

Old code assumed only 2 choices but now we have more.

bug:3328196
Change-Id: I92a02b31fae6c53f73b3684581230fad5cb1b82a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b35d67a8a773f2d3127a119b424a86b3e56fe563 06-Jan-2011 Stan Chesnutt <chesnutt@google.com> connectivity-change events can happen before boot completes (similar to:
https://android-git.corp.google.com/g/#change,87425 )


Change-Id: Ibc0f12defaa5d90894657ce63fb352578eca7060
/frameworks/base/services/java/com/android/server/ConnectivityService.java
3d1db8672aa1d285d387c8aef5a8bfac72997d18 06-Jan-2011 Stan Chesnutt <chesnutt@google.com> Allow bumpDns() to execute correctly before boot has completed

Change-Id: I5c2cf023e555f49d7e29592f9d1439b3ac367e3d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e32e812b11520b244374371ee49eaed20c84a6e3 29-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Always file DUN requests for tethering.

A bit of a hack so that first trySetupData call uses the proper APN in
strange edge cases. Made a new startUsingNetworkFeature string
that ConnectivityService knows means always pass the request to telephony
even if telephony connections are not currently available.

bug:3133178
Change-Id: I2559b9cbaed4b4ec02bdf7ea78e6003ee2be64f2
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d825ea4ff055eb9302dcb5c8e59fe65bf31f0a41 30-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Cache the current value of background-data.

The writing of the persistent setting is async, but we should
still remember it so if somebody asks before the write completes
we give the right answer. Makes the read faster too.

bug:3312848
Change-Id: I864cb5f8d496d5bf9cbf0af9a71ca84da078f7c6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
55985bed7be8c93296eee3f4f39557fba4fbaebe 24-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Make sure the ProxyProperties is always present.

Lets people know that it's non-null, though the InetAddr inside may be.

bug:3305689
Change-Id: I0fe16a9ef1feba987680c419fa2dc0e00e400d91
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1039872f597995cab2f88b9c841f8c2b8e71c451 18-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Reduce the spinning while tethering.

Doing too much stuff - don't retry when we know we shouldn't.

bug:3293460
Change-Id: Ic7b0b6486b39377d74df7a35572059ac60d03fa0
/frameworks/base/services/java/com/android/server/ConnectivityService.java
15c7439acb22ab079dd2ebe42bdf0d2ffd525c5d 22-Dec-2010 Jaikumar Ganesh <jaikumar@google.com> Add TYPE_BLUETOOTH network interface for reverse tethering.

Change-Id: I2aa61ce15f57aea9e8fd3a4cb56799c8bc51e998
/frameworks/base/services/java/com/android/server/ConnectivityService.java
efe5bd77eb2a883c57912a0b4dbed122840f1fdd 22-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> am 46f98746: am 5d0fafe8: Merge "Be sure and report NO_CONNECTIVITY when needed." into gingerbread

* commit '46f987465c1df4ec984e725747d4d79fc592abb7':
Be sure and report NO_CONNECTIVITY when needed.
46f987465c1df4ec984e725747d4d79fc592abb7 22-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> am 5d0fafe8: Merge "Be sure and report NO_CONNECTIVITY when needed." into gingerbread

* commit '5d0fafe80752ad4e40fe0ec2bc06c43e669a0612':
Be sure and report NO_CONNECTIVITY when needed.
d68e321841b53263d97dcc7e1682e8f0c7877e62 21-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Be sure and report NO_CONNECTIVITY when needed.

Reports that we sometimes didn't report NO_CONNECTIVITY led to this suggested change.
Could not repro the problem, but the change looks ok anyway. Better safe than sorry.

bug:3276408
Change-Id: I0cdb48a05a5c9dfcf3a0b468a6eae43d461023b1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0be1e9844a16d7d7708fdb446b330533cd1d3260 15-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Correct an error code to pass CTS.

We used to report an unmatch stopUsingNetworkFeature call with an "ok, stopped" response,
but we need to report it as an error.

bug:3281837
Change-Id: I35728159e62a021cb10de4396b3f60a92df0570f
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e798268f16ec6d0542616ea45ca0bb18ae2645ee 07-Dec-2010 Wink Saville <wink@google.com> Have MobileDataStateTracker & DataConnectionTracker communicate directly.

Added CMD_SET_DATA_ENABLE which is sent when data is enabled/disabled
via the ConnectivityService. It is anticipated that the communication
channel will be used for additional commands and to receive unsoliciated
commands from DataConnectionTracker back to MobileDataStateTracker.

Change-Id: I3863e7385155d503f069b1dcb7e4f766ec78b5f8
/frameworks/base/services/java/com/android/server/ConnectivityService.java
da3d5e6587c1476d489495ac93e84ebf223024c9 06-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Add a Dummy data connection for testing purposes.

Enable with:
<string-array translatable="false" name="networkAttributes">
<item>"wifi,1,1,1"</item>
<item>"dummy,7,7,0"</item>
</string-array>

in your config.xml

Change-Id: I3965edaeb4873e95131f4083b8d23d682ce17841
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a2e13392412d5094e49ea0053599477401d1a67e 06-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Make Proxy change broadcast sticky

Makes it easier for apps who care. Includes the current values.

Change-Id: I5f1d3589a036ebc9910281f97d4780ecda2829f2
/frameworks/base/services/java/com/android/server/ConnectivityService.java
733c62909c1cca72be50094acb15dc1014b956ce 06-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Don't clobber the net hostname if it's already set.

Be a good citizen.

Change-Id: Ic58aeab013e2ff34201be71e01e399390edbbb5f
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ed9c02b56c6f56a583aa272f82818ef039face75 03-Dec-2010 Wink Saville <wink@google.com> Cleanup logging.

Change-Id: Ie73c6d97ec19b0d27e58c085b60e885d90066056
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b7090d68be1046e7b8743620592bb63c8256eeab 02-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Load persisted global proxy settings.

Was persisted before, but not loaded at boot.

Change-Id: I6d6b69ede3d212a8266847d73d07a037ae917788
/frameworks/base/services/java/com/android/server/ConnectivityService.java
434203a277cd2f237a71508a3d5a7d1602126cd5 12-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Notify all VMs when proxy changes.

bug:2700664
Change-Id: I74cc6e0bd6e66847bf18f524ce851e3e9d2c4e87
/frameworks/base/services/java/com/android/server/ConnectivityService.java
03595d01188d88c169e8c9dd51b357fd545e69cc 02-Nov-2010 Robert Greenwalt <rgreenwalt@google.com> Tell each VM to flush their DNS cache.

bug:3095357
Change-Id: I93de24e3e5a7d8b94d55f4facfffc863a2b8c202
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c2a443250768086a609c5666f23d93316d84252c 11-Oct-2010 Wink Saville <wink@google.com> am 83d97f46: am 96619f9f: Merge "Add some error-case logging." into gingerbread

Merge commit '83d97f460412f117998f4d446fd65ca79761a294'

* commit '83d97f460412f117998f4d446fd65ca79761a294':
Add some error-case logging.
83d97f460412f117998f4d446fd65ca79761a294 10-Oct-2010 Wink Saville <wink@google.com> am 96619f9f: Merge "Add some error-case logging." into gingerbread

Merge commit '96619f9f0653a5c7f407c52ab565b5ddf23ad696' into gingerbread-plus-aosp

* commit '96619f9f0653a5c7f407c52ab565b5ddf23ad696':
Add some error-case logging.
572172befbdf020e96ee4b10506b2b7cd5f1a09b 09-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Add some error-case logging.

Turning off all debug logging is a good thing, but it leaves us blind when errors come in.
bug:3075537

Change-Id: I8a4e7f2ce094574ec45cec268bdbc46449540c9f
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ba175a5e1331883ef4ecfc2b751789a3492efca1 06-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Turn on some debugging info

bug:3060742
Change-Id: I86f4e0b3f678c80e1bee11abd32ab0b9e0563b09
/frameworks/base/services/java/com/android/server/ConnectivityService.java
dc71b9e4d67327065a992924a021cad4bc100fa2 01-Oct-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 6a3eddb4 to master

Change-Id: I1ca1d100274d4a733ef2bf58b0d5d7217b4f858e
6a3eddb469b282f7d904e5dbcb375ad44ada3ee3 01-Oct-2010 Dianne Hackborn <hackbod@google.com> am 0a69f597: Merge "Rub in a little \'ol log-b-gone." into gingerbread

Merge commit '0a69f597604254bc37721b135ab612eaacdd0cbd' into gingerbread-plus-aosp

* commit '0a69f597604254bc37721b135ab612eaacdd0cbd':
Rub in a little 'ol log-b-gone.
cef65eeb0315c3118bf8860d6f723cb49ff6bc52 01-Oct-2010 Dianne Hackborn <hackbod@google.com> Rub in a little 'ol log-b-gone.

Mmmmmm... great fresh scent!

Change-Id: I050e70b31b5d4a9c6731f15a4b51a3620a33a78d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
f333123d50776507891b90a6eda4a3b8fa305bb6 24-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 2d457a32 to master

Change-Id: I08fc7881010083407a102f471483cd6d5b9774b4
2d457a32a653ad06487cf0fef9ef400f3055099a 24-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 8f97fe55: Merge "Move long Connectivity tasks to handler thread." into gingerbread

Merge commit '8f97fe551e7bd95abf395eed303b975eaa8f0158' into gingerbread-plus-aosp

* commit '8f97fe551e7bd95abf395eed303b975eaa8f0158':
Move long Connectivity tasks to handler thread.
8dcc28be065bb5997ed97d58c9592324b891023a 23-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Move long Connectivity tasks to handler thread.

Reduce ANR potential.
bug:2942829

Change-Id: I21610b462d5ab91821015cd16eecd86d2c0580d1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
19531dacfee9fcfd527ab04223fb91ae019ec05c 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am f532e958: am 6548f395: Merge "Inet status bug fix" into gingerbread

Merge commit 'f532e9583ec0111b1c198e895ed1b2fd83c3d5cf'

* commit 'f532e9583ec0111b1c198e895ed1b2fd83c3d5cf':
Inet status bug fix
4524c6244884d4b3aff0b6b00372427b6a42ebd8 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 749e6bc5 to master

Change-Id: Ica492307505d53e57863d4363b5f75abd798bcd8
f532e9583ec0111b1c198e895ed1b2fd83c3d5cf 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 6548f395: Merge "Inet status bug fix" into gingerbread

Merge commit '6548f395a974d2a8dcefe29b3a498d1ca87d8aef' into gingerbread-plus-aosp

* commit '6548f395a974d2a8dcefe29b3a498d1ca87d8aef':
Inet status bug fix
029be81302c7a00901e0af34afc06ddabb2805ef 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Inet status bug fix

Don't wipe out the connected status every time we get a cellular status change.
Don't filter out disconnect event for wifi - we need them.

bug:3009923
Change-Id: I68cadac5f44d6eb4e0fe711fda7c5d218abb45bd
/frameworks/base/services/java/com/android/server/ConnectivityService.java
749e6bc5cc429b4db2353c264413f229f2694aa6 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 313af5a3: Merge "Add Inet Condition log to bugreports" into gingerbread

Merge commit '313af5a3b5ba51eb75dea35eb568c841aa4beb6a' into gingerbread-plus-aosp

* commit '313af5a3b5ba51eb75dea35eb568c841aa4beb6a':
Add Inet Condition log to bugreports
4e8dfefb06227a911eb5abfcb2591d8eae5db42b 20-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Add Inet Condition log to bugreports

Reports who reports what condition on which network at what time. Where is implied.

Change-Id: I89fbc7323dec438041859fcc934169fa325f0133
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d192dad69e9e5a820c5c11d8cd34460c9cc2ed11 14-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Enhance http proxy support

Make it read proxys the correct way from CS so it works for all network types.
Add utility class for apache http client support.

bug:2700664
Change-Id: If81917b19b5f0636247a6519a1ec78bd8dbf3596
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5b7c5e055233154d2a82cc2d084cf983d12bb3a7 16-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am f434dd16: am 134b28a7: Merge "Update Inet Connection Status display" into gingerbread

Merge commit 'f434dd1660f222a1ee85e77c98893b90857805c2'

* commit 'f434dd1660f222a1ee85e77c98893b90857805c2':
Update Inet Connection Status display
f434dd1660f222a1ee85e77c98893b90857805c2 16-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 134b28a7: Merge "Update Inet Connection Status display" into gingerbread

Merge commit '134b28a7f049719cb74fd5baadbbcc5915bc861b' into gingerbread-plus-aosp

* commit '134b28a7f049719cb74fd5baadbbcc5915bc861b':
Update Inet Connection Status display
1e9aac2bd855f12708d3049eff4435fa4a2f4317 16-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Update Inet Connection Status display

Cellular signal strength should also be green - these assets aren't, but
the art guys are working on that.

Also using a new intent so we don't overload the CONNECTIVITY_ACTION and
confuse the apps.
bug:2994024

Change-Id: I6fe8f65dd6e9869d9724064c4fae45340491a4d8
/frameworks/base/services/java/com/android/server/ConnectivityService.java
057d5e9824a01a03c13d5a32d3c7f5023d01586e 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Fix the build

broken merge resolution.

Change-Id: Idf1abef1ef79ddc43b9eaba1e0e523085702e2fe
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ca4306c976d393c3cd04270bc2de0af2f4f30fa5 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of ec52c98d to master

Change-Id: I31297232c9d918a967b93c3ae977f81b6a94f2ed
ec52c98d441aa592a203f547c0edec79c25bf28e 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 0727a865: Merge "Add network condition reporting." into gingerbread

Merge commit '0727a865d83b944c2fecc0bf1228a36976fe5300' into gingerbread-plus-aosp

* commit '0727a865d83b944c2fecc0bf1228a36976fe5300':
Add network condition reporting.
d7085fcf6567452a9d6fc69b0c6b1bf556f4c1b9 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Add network condition reporting.

Apps can report if they like their connection to the nets
and we display either not-really-connected or fully-connected
icons. Final icons TBD.

bug:2978624
Change-Id: I28be52085edfe54571c0d4559aba0df883548654
/frameworks/base/services/java/com/android/server/ConnectivityService.java
bb08caf54bdb201d9b85393152f1b400eb4abe2b 03-Sep-2010 Wink Saville <wink@google.com> Fix and simplify ConnectivityService singleton.

Change-Id: Idb74854db9d801c1cc138eb5ca866cf01940ff6d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
00092874b1fea2354b6a3048974abfc4bba69258 02-Sep-2010 Joe Onorato <joeo@android.com> Revert "Changed ConnectivityService#getServiceInstance so its a singleton."

This reverts commit 28961cc02f350ccd1770fb5af2f0d4c9793e4aec which causes this exception:

E/SystemServer( 2653): Failure starting Connectivity Service
E/SystemServer( 2653): java.lang.IllegalMonitorStateException: object not locked by thread before wait()
E/SystemServer( 2653): at java.lang.Object.wait(Native Method)
E/SystemServer( 2653): at java.lang.Object.wait(Object.java:358)
E/SystemServer( 2653): at com.android.server.ConnectivityService$ConnectivityThread.getServiceInstance(ConnectivityService.java:186)
E/SystemServer( 2653): at com.android.server.ConnectivityService.getInstance(ConnectivityService.java:200)
E/SystemServer( 2653): at com.android.server.ServerThread.run(SystemServer.java:262)

Change-Id: Idd139e426e61a1913b0bf343e2f0a0b1990ba8bb
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e90aa5e97e3a5502a8334ed6ceb98305f6e01361 01-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Add a default dns entry if none is provided

Fixes part of emulator which isn't telling us about dns servers.
Gets some stuff running, but browser is still broken.

bug:2961703
Change-Id: I53b946eba434aca1bb524c2acaf77922377948d1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
28961cc02f350ccd1770fb5af2f0d4c9793e4aec 01-Sep-2010 Wink Saville <wink@google.com> Changed ConnectivityService#getServiceInstance so its a singleton.

Change-Id: I27b5688a50917b01fb2fcd1c124da77ccae226b5
/frameworks/base/services/java/com/android/server/ConnectivityService.java
37e65ebb7eb932e1a144b1cab262e11ca5fd109b 30-Aug-2010 Robert Greenwalt <robdroid@android.com> Rename NetworkProperties to LinkProperties

Also add copy constructors and use them when giving out data.

Change-Id: Id320eb8fb91d0bd250305ce7bb4f628570215615
/frameworks/base/services/java/com/android/server/ConnectivityService.java
585ac0fc8dde3fe35ec4c71c8f215f2c84139b8b 27-Aug-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 4ea54f44 to master

Change-Id: Ia77bb59a6e1950648c8ebf7db307e204f93a9f56
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b21b62327c10e92baf1a88e77f1c6d5576a17d62 26-Aug-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of b998f311 to gingerbread-plus-aosp

Change-Id: I7ceb0b624e78d85542d1c36bfabeb5dc31961505
3ded7cb58cd5b31b712e95f9cfecf86f69fb4cae 25-Aug-2010 Robert Greenwalt <robdroid@android.com> am 510f9f86: am 6d734693: Merge "Send all Connectivity broadcasts." into gingerbread

Merge commit '510f9f869fea26b5c11bfc738e7637c988e9d3d0'

* commit '510f9f869fea26b5c11bfc738e7637c988e9d3d0':
Send all Connectivity broadcasts.
9d6b59c08e81b6cfd2db6b4f68c64c0c97a9f9ff 24-Aug-2010 Robert Greenwalt <robdroid@android.com> Send all Connectivity broadcasts.

We were using a flag so new broadcasts replaced old. If people are expecting
to see all the broadcasts they sometimes would fail.

bug:2892383
Change-Id: I63df17fe8f8c68f59e1ad6297fe93e169b4463b4
/frameworks/base/services/java/com/android/server/ConnectivityService.java
9bc709d46e1165ca0c9a02bd970767c401b990e5 10-Aug-2010 Banavathu, Srinivas Naik <snb@codeaurora.org> Add an API to request route to an IPv6 host.

Add API to create a route to an IPv6 host through a particular
interface.

Change-Id: I7649051e94832576e02b5f5ad17abe093d21d48e
/frameworks/base/services/java/com/android/server/ConnectivityService.java
6fdd0c6274c81b337ad35b70480f881daf7354c3 11-Aug-2010 Danica Chang <danicachang@google.com> bluetooth tethering

Change-Id: Id6d5fb1922facc7013abc29214d3e1141995b767
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c7a98341b053bd8090accca151e8f3522f2dd126 14-Aug-2010 Wink Saville <wink@google.com> Add documentation to NetworkStateTracker and a small change to the API.

Also, removed some unused NetworkStateTracker event codes.

The API change was to add context and target to startMonitor, this makes
it easier to document what the actual interface contract is.

Change-Id: If9b52486c3c281fe4794bc78417c8b03888414b1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b738fb9938631a2e4540f9a9308f49e6be5565b8 13-Aug-2010 Robert Greenwalt <robdroid@android.com> DO NOT MERGE Always set/remove default routes.

Must clean up default route if a default 3g connection is replaced
by a non-default (ie, mms) connection on teh same interface.

Also stop mucking with all connections dns and routes - do it only
for the connection that has changed.

bug:2865974
Change-Id: Ifdf49080fa0413a4d826813706c809975a562dfa
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0d25534fed91f636def5776ddc4605005bd7471c 28-Jul-2010 Irfan Sheriff <isheriff@google.com> Split WifiStateMachine from WifiStateTracker

Notifications handled in WifiService. WifiStateTracker tracks
state for connectivity service

Change-Id: Idb0cf494898d28712af0f95f9e60c5417cd4a053
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1a655771efff8285a230b7369b8275fcd102eeb5 05-Aug-2010 Daniel Sandler <dsandler@google.com> Fix runtime reset (missing case break).

Bug: 2895437
Change-Id: If061c02811144031833f75ad47ae313e2208701c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c76b8fa911bb2501ba55153d3ac25a5132daa3a9 24-Jul-2010 Robert Greenwalt <robdroid@android.com> Always try to set/remove default routes

Must clean up default route if a default 3g connection is replaced
by a non-default (ie, mms) connection on the same interface.

Also stop mucking with all connections dns and routes - do it only
for the connection that has changed.

bug:2865974
Change-Id: I589a0b2768b5e67b608fde181e7ddbd7fce4f491
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a2a1b911a31dd94ee75e94845f762b91f1db1368 07-Jun-2010 Irfan Sheriff <isheriff@google.com> Refactor WifiStateTracker

Implement WifiStateTracker as a HSM.

Change-Id: Ic12fd78f1f183b5c4dea8ad2301002267ceff0cb
/frameworks/base/services/java/com/android/server/ConnectivityService.java
47f69fe2999e46004f2f2463b70d38de9ff7079a 16-Jun-2010 Robert Greenwalt <robdroid@android.com> Pass network properties to ConnectivityService.

Used as a bag to hold ipaddr, gateway, dns, proxy info.
addr's are InetAddresses for v4/v6 use. Cleaning up some old v4-only code

bug:2655015
Change-Id: I7ac886fe5c519e8bab42f49cd82a5189d9c9ab59
/frameworks/base/services/java/com/android/server/ConnectivityService.java
14f2ef4c9da27a3d58d65dc9f684c5f764ee279a 15-Jun-2010 Robert Greenwalt <robdroid@android.com> Move the net transition wakelock to ConnService.

When the default network goes down we lose the wake-on-incoming-data capability
until the new net is brought up and apps rebuild their connections. We fixed this
in Wifi, but it's a general connectivity issue, not a wifi issue so moving the
mechanism to connecitivty so other networks can use it.

bug:2734419
Change-Id: I39b5d825eb6b548bd9bb8f179b89254f4db53147
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d649c12815bcf944b2c97371f3f60716a42a1557 10-Jun-2010 Irfan Sheriff <isheriff@google.com> Make NetworkStateTracker an interface

As part of the WifiStateTracker cleanup, need
to have NetworkStateTracker as an interface.

Change-Id: I2ac48d7e4c7274ac4df40bc3b8591b182956a936
/frameworks/base/services/java/com/android/server/ConnectivityService.java
02648a4b8422733ed401f07edf8e426318bb2f8d 18-May-2010 Robert Greenwalt <robdroid@android.com> Clean up APN notifications.

Add APNType info to notifications so you can tell what's happening. Now, even if a new APN
shares a connection with an already-connected-to- apn type, the new type will get all
the connecting and connected messages on connect and disconnecting/disconnected on disconnect
even though the shared connection remains connected.

Cleaning out the hacks MobileDataStateTracker needed to deal with the old situation.
bug:2226092

Change-Id: Iddd7421d6b91cda7c8405f9c3d5404ac04ef8e42
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7b00978dc739ed2213ed8e511c69cfb412798109 12-Mar-2010 Irfan Sheriff <isheriff@google.com> Run WifiWatchdogServiceThread only on wifi enable

Bug: 2508997
Change-Id: Ib79ee25fcc8e39e9a1d6c5b9ef9681bc00b6d006
/frameworks/base/services/java/com/android/server/ConnectivityService.java
dfadaeac088cabce854d8f476405cd412f82593a 12-Mar-2010 Robert Greenwalt <robdroid@android.com> Stop creating threads for tethering.

Use the passed in looper and save threads.

Change-Id: I6db04ef64e339a5fb2b71e9fb1da32e2d600447c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
78a640af951377d9749d0dbfd027687cbb92dc72 11-Mar-2010 Robert Greenwalt <robdroid@android.com> Make HiPri work when already connected.

A recent change made the HiPri MobileDataStateTracker listen for notifications
about the default connection (which HiPri shadows). Local code was sending
itself a notification using the old HiPri badging instead of the new Default
badging and those notifications where therefore ignored.

Manifested itself on HiPri connections when we were already on 3g.

See change 42422 on master platform/frameworks/base for the change this is completing.

Change-Id: I375026048724d0035297287c61c6c2f58d4e0294
/frameworks/base/services/java/com/android/server/ConnectivityService.java
f0fa39ed7496ae43369fac306d765d7d86fa23d7 09-Mar-2010 Robert Greenwalt <robdroid@android.com> Fix NO_CONNECTIVITY flag in some cases.

Airplane mode seemed to hit this bug.

bug:2498268
Change-Id: I5af9266fbbad3e2323d30d7471058f0f4ec3f544
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5a73506cdd466f2b96686ced3ff0f7ca224d1143 03-Mar-2010 Robert Greenwalt <robdroid@android.com> Add error reporting for Tethering.

Also make the usb interface configuration more robust so retries are possible.

Makes all Tethering errors recoverable - no harm letting them try again anyway. Worst case
is they need to reboot.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8a9b22056b13477f59df934928c00c58b5871c95 27-Feb-2010 Joe Onorato <joeo@android.com> Switch the services library to using the new Slog
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c9d5fb7c95f158d9a31d534895373afcfad77806 25-Feb-2010 Robert Greenwalt <robdroid@android.com> Add build options for tethering.

Dun-required bool and list of allowed upstream ifaces.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
35429599728793a6830a8ce32a62e98cabefc90e 25-Feb-2010 Robert Greenwalt <robdroid@android.com> Fix no-mobile-data after wifi.

Missed a case - if you disabled mobile data and then cycled wifi, 3g would
be turned back on.

bug:2251458
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c03fa5014912684367174ff3cce664deb29f5e0e 24-Feb-2010 Robert Greenwalt <robdroid@android.com> Add mobile data on/off switch.

bug:2251458
/frameworks/base/services/java/com/android/server/ConnectivityService.java
2a091d7aa0c174986387e5d56bf97a87fe075bdb 12-Feb-2010 Robert Greenwalt <robdroid@android.com> Update Tethering.

Adds telephony support, async model, multiple tethered iface suport,
better notifications, device config.

bug:2413855
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d0e18ffb82b59d38aeaf0e552f48e734202719ab 26-Jan-2010 Robert Greenwalt <robdroid@android.com> First pass at USB Tethering.

bug:2281900
/frameworks/base/services/java/com/android/server/ConnectivityService.java
fbf56dc719a2ee13129fd7049565054370c6ed1d 28-Jan-2010 Robert Greenwalt <robdroid@android.com> am 3e229076: am cc4b4016: Fix the reporting of NO_CONNECTIVITY.

Merge commit '3e229076203cd8cfee0adac44cd3c930dfa0e59c'

* commit '3e229076203cd8cfee0adac44cd3c930dfa0e59c':
Fix the reporting of NO_CONNECTIVITY.
64fe5646c5b2eb5ff58cea4ca4d384b4a5f733dc 28-Jan-2010 Robert Greenwalt <robdroid@android.com> am 6d626d41: am 5381e4ef: Merge "Refine fix I53e91db7 to apply only to wifi network" into eclair

Merge commit '6d626d41e9db62a0eadb61ccb2aa4081a8b9f6d0'

* commit '6d626d41e9db62a0eadb61ccb2aa4081a8b9f6d0':
Refine fix I53e91db7 to apply only to wifi network
09ac3c3cbc6278af127cffedb9d534449e63b683 26-Jan-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 1f2f23bd to master
cc4b4016e4b86db012f94bb889e5ca61ff362171 26-Jan-2010 Robert Greenwalt <robdroid@android.com> Fix the reporting of NO_CONNECTIVITY.

A refactoring of handleDisconnect instroduced a bug - we were reporting
NO_CONNECTIVITY after any non-primary network (supl, mms, hipri) was lost.

bug:2395006

Change-Id: Ifa9e008872ec646981a35f2c316120cb9685a6a4
/frameworks/base/services/java/com/android/server/ConnectivityService.java
6e6dec284369238f16ac23497292de5a1a39aca8 26-Jan-2010 Robert Greenwalt <robdroid@android.com> Refine fix I53e91db7 to apply only to wifi network

The original fix eliminated duplicate wifi connectivity changes stemming from
location provder scan's for APs. These would generate two DISCONNECTED broadcasts every
two minutes and many apps mis-interpreted them.

The fix was to ignore notifications where the major state was the same as the previous one
for each network. Unfortunately the state of per-apn notifications on cellular is hacky
and so the wifi fix was breaking mms (mms when you're on cellular with a common default+mms apn does
not generate a disconnect notification (apn still connected) so subsequent connect notifications
get dropped as duplicates).

This change refines the previous change so that it only applies to wifi networks.

bug:2392061
Change-Id: I05d8a46a4b55f8d28df8af12e05284e5e68bfc02
drno: ryanpc
/frameworks/base/services/java/com/android/server/ConnectivityService.java
da03c4e4b3d47e6917fdcddecf68f2f52564e3a0 21-Jan-2010 Robert Greenwalt <robdroid@android.com> Try to switch to another default net on connection failure.

This shouldn't be required, but there seems to be something odd going on
in wifi and it doesn't hurt to try other available options. Makes a
connection failure case work like a disconnected case.

bug: 2378462
/frameworks/base/services/java/com/android/server/ConnectivityService.java
73912ce083a35e0b4cbccd9a364791c3725d9e34 22-Dec-2009 Robert Greenwalt <robdroid@android.com> Add bugreport info about network feature use. DO NOT MERGE

Backported from master change Ib9285359.

We've had a couple bug reports showing the effects of a left-live feature request.
We need a bit more bugreport-time logging.

bug: 2323226
bug: 2377507
change-id: I296b2887101c260aea678bf6db91144535cbad7e
/frameworks/base/services/java/com/android/server/ConnectivityService.java
15abc90147333fccf7c9576cbf90d40d73e5a20f 17-Dec-2009 Robert Greenwalt <robdroid@android.com> Cleanup of process-specific DNS.

Backport of MR2 change 421c72b6.

Removes entries sooner. A bug.
Doesn't add one for phone process at all. This was intended to be removed long ago.

bug: 2329900
bug: 2377507
/frameworks/base/services/java/com/android/server/ConnectivityService.java
40bbaaac5f0b93de8d8b8164ac8b59583bc0113a 15-Jan-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 90528645 to master
de8383ca312c03fa8e935ac1549ae31ce668652c 15-Jan-2010 Robert Greenwalt <robdroid@android.com> Set net.hostname sys property to our unique ID.

Give us a default name networking wise so that wifi (at least) can use it.

Bug:2327089
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1193ae4e824c66b75083c444ce0f250594e138ee 13-Jan-2010 Robert Greenwalt <robdroid@android.com> Backport l53e91db7 from master.

Prevents sending out ConnectivityManager broadcasts when the connection
is repeating the same major state. This means continued wifi scanning
does not generate CM broadcasts (though wifi state broadcasts continue).

bug: 2265222
Dr No approval: jsh
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b928535902b204ac3ec25f161352786842248767 22-Dec-2009 Robert Greenwalt <robdroid@android.com> Add bugreport info about network feature use.

We've had a couple bug reports showing the effects of a left-live feature request.
We need a bit more bugreport-time logging.

bug: 2323226
/frameworks/base/services/java/com/android/server/ConnectivityService.java
41c561781323c697e42eef5c08310dbd8c1bf63a 18-Dec-2009 Robert Greenwalt <robdroid@android.com> am 24317443: am 421c72b6: Cleanup of process-specific DNS.

Merge commit '24317443fde973c762afbea1a3f6f2c830dfe3dd'

* commit '24317443fde973c762afbea1a3f6f2c830dfe3dd':
Cleanup of process-specific DNS.
421c72b6773582dd1473ace44c42d4e0ee1287e3 17-Dec-2009 Robert Greenwalt <robdroid@android.com> Cleanup of process-specific DNS.

Removes entries sooner. A bug.
Doesn't add one for phone process at all. This was intended to be removed long ago.

bug: 2329900
/frameworks/base/services/java/com/android/server/ConnectivityService.java
74a76d5e071ba11eb92c92933fa5de338010374d 15-Dec-2009 Dianne Hackborn <hackbod@google.com> am 83652ebf: am 3a3fd2ba: Merge change Iaf1f0918 into eclair-mr2

Merge commit '83652ebfe1963bcecdcf24383165904223baca6e'

* commit '83652ebfe1963bcecdcf24383165904223baca6e':
Implement API to have new broadcasts replace existing broadcasts.
1c633fc89bae9bf0af6fe643ac7ad2e744f27bed 09-Dec-2009 Dianne Hackborn <hackbod@google.com> Implement API to have new broadcasts replace existing broadcasts.

Use this in various places where it should serve no purpose to deliver
both broadcasts. This is intended to reduce somewhat the flurry of
broadcasts that we churn through during boot.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a1b04c01ca130201060cd78b47efcc2c1aa6f5c6 08-Dec-2009 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 47a2573e to master
b097fbbff339adc2d38fe670c689f3dad69c2549 08-Dec-2009 Robert Greenwalt <robdroid@android.com> DO NOT MERGE Reverting change I53e91db7.

Accidentally submitted into eclair instead of eclair-mr2.
I apparently rebased my mr2 working dir to eclair by mistake.

Do not merge this so the desired change will survive on mr2 as intended.

bug: 2265222
/frameworks/base/services/java/com/android/server/ConnectivityService.java
096871e7e1a1f8cdfbaa1acc4bc485b69ddf22a4 08-Dec-2009 Robert Greenwalt <robdroid@android.com> am 90d1b745: Merge change I53e91db7 into eclair

Merge commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3' into eclair-mr2

* commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3':
Filter out minor Connectivity Notifications.
511288a04639859a6d9bbfedfa2f2b4d7d2c3e88 07-Dec-2009 Robert Greenwalt <robdroid@android.com> Filter out minor Connectivity Notifications.

Don't send a connectivity change notification if the change is in detailed state only.
IE, Disconnect/Idle -> Disconnect/Scanning should not trigger a connection change
notification.

bug: 2265222
/frameworks/base/services/java/com/android/server/ConnectivityService.java
18803d37e2ce47407b7ac52513e3254207e8b287 07-Dec-2009 Doug Zongker <dougz@android.com> resolved conflicts for merge of 5a2fdbba to master
ab5c49c7e7f5f61040650109a76f38a443fb852d 04-Dec-2009 Doug Zongker <dougz@android.com> move event log tags used by system server into this package

We can now locate event log tag definitions in individual packages
(and java constants for the tag numbers get auto-generated), so move
all the tags used by the system server into the package.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5154ae7665743b114c71f90dcc577dc50c63b398 30-Oct-2009 Robert Greenwalt <robdroid@android.com> Cleanup ConnectivityServices network configuration

Don't instantiate objects not needed for the device.

bug: 2226064
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b8f16340b531809aa08cb73c55ddadd5f94de080 07-Oct-2009 Robert Greenwalt <robdroid@android.com> Fix ConnectivityManager permissions check.

bug: 2160462
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d8df149cfb82cf02cef7e04c05f229d7caf7fe90 06-Oct-2009 Robert Greenwalt <robdroid@android.com> Turn some logging back on in ConnectionManager

Trimmed a bunch of logging out, but turned it on so we get the critical stuff.

bug: 2168291
/frameworks/base/services/java/com/android/server/ConnectivityService.java
bd0a81ff1c0e92e80e05e2f12bb1805c7d081e94 04-Oct-2009 Dianne Hackborn <hackbod@google.com> Work on issue #2163789: Way too much logging

Dr.No from mcleron.

Change-Id: Iaca2268684f83fe8757e64db0b0e047a19755311
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1ef95f9eed610897b46a00f51a7cd7944ef26e62 01-Oct-2009 Robert Greenwalt <robdroid@android.com> Reduce the ConnectivityManager logging.

Same great info, just fewer chars.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
9c75d4af63f92806943a9fa9d942644bd601310e 28-Sep-2009 Robert Greenwalt <robdroid@android.com> Fix network-feature timeout code.

Track requests independently with seperate timers. Clean up on expiration
by just stopping that particular request, not immediately restoring the default.

bug: 2127590
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c7d2530d52e9c188392b118caea64673dbbad45c 17-Sep-2009 Robert Greenwalt <robdroid@android.com> Report NO_CONNECTIVITY when failover net unavail

Fix ConnectivityService so that it reports connection status correctly.

bug: 2128595
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8206ff30c23c76851bebc8d72a65e65b0f7f9a29 11-Sep-2009 Robert Greenwalt <robdroid@android.com> Fix for multi-apn MMS access.

Mark cellular variants with the same availability, regardless of which are currently in use.
Availability just means the radio is enabled and sees the network, but has no guarantees that
we could connect to an APN if requested.

Fix the requestRouteToHost logic to support apn switches without WIFI.

bug:2093841
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b06324a5c1af11b0fef76bdafa569a60498a93d2 25-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix the removal of dns entries.

When switching default networks we should erase any excess dns server entries. The old code
used the wrong index and didn't erase all of them properly.

Found in conjunction with
bug: 2077628
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ec9fe4672a46eb928ab710d8e3caf2ce046100d4 21-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix a race condition for data change notification

We could sometimes not be told about network state changes breaking subsequent mms access.
Turning on more logging too.

bug: 2069106
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a64bf834ffa677405af1c87c9f53eed0cd3853ce 20-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix various issues found when testing Mms.

Fix some race conditions (check isTeardownRequested).
Fix the passing of mInterfaceName to subtypes (mms, etc).
Fix the generation of CONNECTED message to already active subtypes.
Fix the enabling of Data in DataConnectionTracker.

bug: 2065037
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0f79b54c3a0b4141b1da38fa301571a89e165632 14-Aug-2009 Mike Lockwood <lockwood@android.com> ConnectivityService: Do not send broadcasts until the system is ready.

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/ConnectivityService.java
42acef37339afe6ac608c842f1637870ee9c4f6c 13-Aug-2009 Robert Greenwalt <robdroid@android.com> Add net type to mobile for mobile-required traffic

This also refactors ConnectivityService a bit towards supporting multiple simultaneous connections by making each a seem like a seperate Network with it's own stateTracker, etc.
Also adds tracking of process death to clean orphaned startUsingNetworkFeature features.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
86e9e55c54a3e07f6c9476d107db99131cefc5d7 17-Jul-2009 Robert Greenwalt <robdroid@android.com> Whitespace cleanup prior to real work.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
231cc608d06ffc31c24bf8aa8c8275bdd2636581 28-Apr-2009 Dianne Hackborn <hackbod@google.com> Rewrite SyncStorageEngine to use flat files and in-memory data structures.

The previous implementation used a database for storing all of its state, which could cause
a significant amount of IO activity as its tables were updated through the stages of a sync.
This new implementation replaces that in-memory data structures, with hand-written code
for writing them to persistent storage.

There are now 4 files associated with this class, holding various pieces of its state that
should be consistent. These are everything from a main XML file of account information that
must always be retained, to a binary file of per-day statistics that can be thrown away at
any time. Writes of these files as scheduled at various times based on their importance of
the frequency at which they change.

Because the database no longer exists, there needs to be a new explicit interface for
interacting with the sync manager database. This is provided by new APIs on IContentService,
with a hidden method on ContentResolver to retrieve the IContentService so that various
system entities can use it. Other changes in other projects are required to update to the
new API.

The goal here is to have as little an impact on the code and functionality outside of
SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/services/java/com/android/server/ConnectivityService.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/services/java/com/android/server/ConnectivityService.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/services/java/com/android/server/ConnectivityService.java