Add support for a provisioning apn.
authorWink Saville <wink@google.com>
Wed, 28 Aug 2013 23:19:25 +0000 (16:19 -0700)
committerWink Saville <wink@google.com>
Wed, 28 Aug 2013 23:19:25 +0000 (16:19 -0700)
commit43c93591d6261be6dad375979e98b0f6ad2771fd
treef0eefed27779c2bbdedeff9332f1298092f663e5
parent876763e93ad0fa8006d290cc122f12d5e614efa2
Add support for a provisioning apn.

When there is a provisioning apn, such as lwaactivate from AT&T it is
not necessary nor desireble to try to make network connections as
they will be no TCP ACK's to SYN messages, except for a limited set
of operator white listed addresses.

This is implemented by adding two commands CMD_IS_PRVISIONING_APN
and CMD_ENABLE_MOBILE_PROVISIONING. These are used by ConnectivityService
CheckMp and to know when we are connected to a provisioning apn and to
turn actually bring up the connection when the user needs to provision.

Also, incorporate the sEnableFailFastRefCounter change from klp to make
a singleton and remove the RuntimeException.

Bug: 10328264
Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5
src/java/com/android/internal/telephony/dataconnection/ApnContext.java
src/java/com/android/internal/telephony/dataconnection/DcTracker.java
src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java