OSDN Git Service

Do not change NetworkInfo.DetailedState.
authorWink Saville <wink@google.com>
Thu, 5 Sep 2013 19:02:25 +0000 (12:02 -0700)
committerThe Android Automerger <android-build@android.com>
Tue, 10 Sep 2013 02:44:29 +0000 (19:44 -0700)
commitd3b20563684da1dfbdb51bbeb484f3de2a4b2f19
treeb85ec647a9bf5e3002ed975b91d0576c3f28f727
parentc6070de1172a6b346100ff2a987b7372d4bf90b3
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
core/java/android/net/MobileDataStateTracker.java
core/java/android/net/NetworkInfo.java
services/java/com/android/server/ConnectivityService.java