summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-09-23Do not always call setIsConnectedToProvisioningNetwork(false)android-4.3.1_r1jb-mr2.0.0-releaseWink Saville
Previously I was calling setIsConnectedToProvisioningNetwork(false) always, but all MDST's receive every broadcast. Thus we could over write an MDST's mNetworkInfo.mIsConnectedToProvisioningNetwork to false, unless the MDST that was set to true was last, i.e the code was order dependent. If the provisioning networks value was false instead of true when handleMobileProvisioningAction was called we wouldn't invoke mdst.enableMobileProvisioning because network info would be null. Thus the provisioning network would never transition to CONNECTED and a default route wouldn't get setup and the browser couldn't access the website. Now setIsConnectedToProvisioningNetwork is only set to false when the apnType matches and we won't indiscriminately change it and are not order dependent. Bug: 10853805 Change-Id: I68a4f9bdf5dc18d90f4cdef7a60811f57be67261
2013-09-09Do not change NetworkInfo.DetailedState.android-4.3_r3.1Wink Saville
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
2013-08-29Add support for handling mobile provisioning networks.Wink Saville
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
2013-08-29DO NOT MERGE: MDST is not ready until connected to DcTracker.Wink Saville
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
2013-08-29In isMobileOk don't execute finally if mobile data is not supported.Wink Saville
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
2013-08-14Use hostname verifier directly instead of instance DO NOT MERGEandroid-4.3_r3Kenny Root
Instead of local instance of the default HostnameVerifier, use it directly from HttpsURLConnection. This avoids class preloading creating an instance of it before it's necessary. (cherry picked from commit 928ee1e48fa89302d02fdf8a8a2c7315d7195e7c) Bug: 9984058 Change-Id: I79d8a934bfc390e4cd503fd592e21bc4e5446a7d
2013-08-08If in a mobile captive portal is detected enable fail fast.Wink Saville
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
2013-08-08Have CaptivePortalTracker use gservices updateable provisioning urls.Wink Saville
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
2013-08-08In CaptiviePortalTracker a socket timeout is probably a captive portal.Wink Saville
On a AT&T warm SIM a socket is not possible so a timeout occurs. In CheckMp a timing out on a socket is declared as a "warm" sim, make CaptivePortalTracker the same. Bug: 10038362 Change-Id: Icb9fb0a1b67704dc9adf6a6348a3781fb9582a89
2013-08-08Check that hipri has started.Wink Saville
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
2013-08-02Add new app ops method to reset all op modes.Dianne Hackborn
Change-Id: I5ee6764de8dc31d812e5a788914ab0099bbef4c0
2013-08-02Merge "Revert "Add version identifier to app ops."" into jb-mr2-devDave Burke
2013-08-02Revert "Add version identifier to app ops."Dave Burke
This reverts commit 483a6bbfc118409b9c46b226cf0aa6afdc4d9159. Change-Id: I91d6b8b8d1789089bf9764e734f7fe59d03151a2
2013-08-01Merge "Add version identifier to app ops." into jb-mr2-devSascha Prueter
2013-08-01Add version identifier to app ops.Dianne Hackborn
All old versions drop their modes except for the notification op (which is the only one there is currently a user-visible control for). Change-Id: I9e09cebe63e9ea81f2adc01aef7d1a5a59f57a56
2013-08-01Allow the user to block notifications for foreground services.Daniel Sandler
Stepping carefully around the fix in change Idc788527, we perform security (and AppOps, and therefore user block) checks against the uid passed to enqueueNotificationInternal rather than the Binder caller. Bug: 9502541 Change-Id: I91745db92823381df75721c1b8f11013a7fa4ecc
2013-07-31(DO NOT MERGE) Fix pub issue #58043: Copy crash in Android 4.3...Dianne Hackborn
...when clipboard listener attached We need to clear the calling identity before dispatching change notifications. Also make this more robust, so that in the face of any failure we will clean up the broadcast state. Integrated from master. Change-Id: I05e1f76ffd486439535631fe4062dabe94bd2ccf
2013-07-24Merge "Doc change: fix reference to getBestDateTimePattern()." into jb-mr2-devDirk Dougherty
2013-07-24Doc change: fix reference to getBestDateTimePattern().Dirk Dougherty
Change-Id: Iad96f4079390e3589d21402fc8e01d6446f001b3
2013-07-24Doc change: remove devices listed for vp8 hw encoder in highlights.Dirk Dougherty
Change-Id: I8058981fc90270abcdecd415c593a3211afe4acb
2013-07-24Merge "Doc change: update carousel on develop home." into jb-mr2-devDirk Dougherty
2013-07-23Doc change: update carousel on develop home.Dirk Dougherty
Change-Id: Iada49cfb6ad2f13967d8e7bd72ac08d9977feb5c
2013-07-24Merge "Doc change: Platform highlights for Android 4.3." into jb-mr2-devDirk Dougherty
2013-07-23Doc change: Platform highlights for Android 4.3.Dirk Dougherty
Change-Id: If178b8268d4d703d06266cb3adc0c124e596378c
2013-07-24Merge "update usb driver doc with download link; delete revision notes" into ↵Scott Main
jb-mr2-dev
2013-07-23Merge "docs: OpenGL ES 3.0 dev guide update" into jb-mr2-devJoe Fernandez
2013-07-23docs: OpenGL ES 3.0 dev guide updateJoe Fernandez
Change-Id: I46b9aee4c6b31e1ac6148f79b8607292b04f69c6
2013-07-23fix javadoc errorScott Main
Change-Id: Ieae3e73cda9541e774626fbd73100cdadc1513ad
2013-07-23update usb driver doc with download link;Scott Main
delete revision notes Change-Id: I325137a026ea99cb2cd5d5f4689a9c1ee5942a92
2013-07-23Merge "update action bar guide for support lib ABC" into jb-mr2-devScott Main
2013-07-23Doc change: Add Colopl video to carousel and spotlight.Dirk Dougherty
cherrypick/merge of I70b1633ea9f6c48f76f88d08b7e9fc287f7dde93 Change-Id: I70b1633ea9f6c48f76f88d08b7e9fc287f7dde93
2013-07-23update action bar guide for support lib ABCScott Main
Change-Id: Ie4594b3a0e0a686ed37d858788c7c747a1ee09e0
2013-07-22Merge "docs: Android 4.3 Platform Release Notes" into jb-mr2-devJoe Fernandez
2013-07-22docs: Android 4.3 Platform Release NotesJoe Fernandez
In addition to platform notes, modified the SDK Manager update warning to advise downloading of SDK Tools 22 or higher. This dependency is based on the updating of the SDK repository schema. The last update was repository-8 with the SDK 22.0.0 release, according to raphael@. Change-Id: Icaaf39a6d49eccdc926aa4c4249db8a0b1d095a7
2013-07-22Merge "docs: NDK r9 Release Notes" into jb-mr2-devJoe Fernandez
2013-07-19docs: NDK r9 Release NotesJoe Fernandez
Change-Id: I43cae1e306a8313ab2d003dbb762977f75bf8208
2013-07-19am 658374d5: am 2685febd: am 6f75a73c: Merge "docs: Android SDK 22.0.4 ↵Joe Fernandez
Release Notes" into jb-mr1.1-ub-dev * commit '658374d56577a4f8864ba3c7ed8f2e425d13d997': docs: Android SDK 22.0.4 Release Notes
2013-07-19am 2685febd: am 6f75a73c: Merge "docs: Android SDK 22.0.4 Release Notes" ↵Joe Fernandez
into jb-mr1.1-ub-dev * commit '2685febd0d51bac4da755756b5348eb95c57ef73': docs: Android SDK 22.0.4 Release Notes
2013-07-19am 6f75a73c: Merge "docs: Android SDK 22.0.4 Release Notes" into jb-mr1.1-ub-devJoe Fernandez
* commit '6f75a73c04ebd5f0ae10e6e89618f492d842ed96': docs: Android SDK 22.0.4 Release Notes
2013-07-19Merge "docs: Android SDK 22.0.4 Release Notes" into jb-mr1.1-ub-devJoe Fernandez
2013-07-19docs: Android SDK 22.0.4 Release NotesJoe Fernandez
Change-Id: Ia140f81dce8352860149cf709e1ed0be46c052a0
2013-07-19Merge "Make CS.isTetheringSupported dynamic" into jb-mr2-devRobert Greenwalt
2013-07-18remove significant motionScott Main
Change-Id: I764d7253d9eb4aa9f7e94f5628a29f648fd9811b
2013-07-18Merge "more details about account access in restricted profiles" into jb-mr2-devScott Main
2013-07-18am 991487c6: am 9a1f106d: am 34a1fa43: Merge "fix typo in code sample" into ↵Scott Main
jb-mr1.1-ub-dev * commit '991487c635ea0cd9ccfaae8e030325c2e8be7a3f': fix typo in code sample
2013-07-18am 9a1f106d: am 34a1fa43: Merge "fix typo in code sample" into jb-mr1.1-ub-devScott Main
* commit '9a1f106d9ef33a3ea22d7b34d736586d4fae0447': fix typo in code sample
2013-07-18am 34a1fa43: Merge "fix typo in code sample" into jb-mr1.1-ub-devScott Main
* commit '34a1fa43899dc2b0b2f249262b69c922949ab626': fix typo in code sample
2013-07-18Merge "fix typo in code sample" into jb-mr1.1-ub-devScott Main
2013-07-18more details about account access in restricted profilesScott Main
Change-Id: I2710c3e8736748ca3080ee88f076255a6639b1e3
2013-07-18Make CS.isTetheringSupported dynamicRobert Greenwalt
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