Commit graph android_packages_modules_Co.../services/java/com/android
Message SHA1
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

Wink Saville   commited 2013-08-13 12:41:06 -07:00
37e7312e12
am 4157cb24: am 02eab434: am 3f58ba89: Merge "If in a mobile captive portal is detected enable fail fast." into jb-mr2-dev
* commit '4157cb2477':
  If in a mobile captive portal is detected enable fail fast.

Wink Saville   authored and   Android Git Automerger   commited 2013-08-08 17:10:34 -07:00
78f8907ae1
am a0ffa2ed: am 55adb390: am 6db564f6: Merge "Have CaptivePortalTracker use gservices updateable provisioning urls." into jb-mr2-dev
* commit 'a0ffa2ed4c':
  Have CaptivePortalTracker use gservices updateable provisioning urls.

Wink Saville   authored and   Android Git Automerger   commited 2013-08-08 17:10:32 -07:00
0d406dffc0
am 80cc1ebd: am 9b6363e5: am cbad1243: Merge "Check that hipri has started." into jb-mr2-dev
* commit '80cc1ebde9':
  Check that hipri has started.

Wink Saville   authored and   Android Git Automerger   commited 2013-08-08 16:22:14 -07:00
5ae370c753
am 02eab434: am 3f58ba89: Merge "If in a mobile captive portal is detected enable fail fast." into jb-mr2-dev
* commit '02eab434ad9faa25291e63023b7e66698ca457a8':
  If in a mobile captive portal is detected enable fail fast.

Wink Saville   authored and   Android Git Automerger   commited 2013-08-08 15:46:55 -07:00
4157cb2477
am 55adb390: am 6db564f6: Merge "Have CaptivePortalTracker use gservices updateable provisioning urls." into jb-mr2-dev
* commit '55adb390bb96175db9abee3ead349a98b4dc4262':
  Have CaptivePortalTracker use gservices updateable provisioning urls.

Wink Saville   authored and   Android Git Automerger   commited 2013-08-08 15:46:52 -07:00
a0ffa2ed4c
am 9b6363e5: am cbad1243: Merge "Check that hipri has started." into jb-mr2-dev
* commit '9b6363e5e6d37e3e8d103751d81613eeca32bbbf':
  Check that hipri has started.

Wink Saville   authored and   Android Git Automerger   commited 2013-08-08 15:46:46 -07:00
80cc1ebde9
Merge "If in a mobile captive portal is detected enable fail fast." into jb-mr2-dev
Wink Saville   authored and   Android (Google) Code Review   commited 2013-08-08 22:07:27 +00:00
3f58ba8957
Merge "Have CaptivePortalTracker use gservices updateable provisioning urls." into jb-mr2-dev
Wink Saville   authored and   Android (Google) Code Review   commited 2013-08-08 22:06:21 +00:00
6db564f6a3
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

Jason Monk   commited 2013-08-07 21:01:39 -04:00
43324ee732
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

Wink Saville   commited 2013-08-07 16:22:47 -07:00
ffdadd64e8
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

Wink Saville   commited 2013-08-07 11:02:57 -07:00
4a165bb3de
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

Wink Saville   commited 2013-08-05 14:15:54 -07:00
f714b7f5a2
Merge "Add accessors for all addresses and clarify compare* methods"
Lorenzo Colitti   authored and   Android (Google) Code Review   commited 2013-08-01 06:44:29 +00:00
a5094dc770
Fix excessive log spew.
Bug: 10115060
Change-Id: I61fd83071da1224f38757b8d90f58c8d6c41d36b

Wink Saville   commited 2013-07-31 15:49:04 -07:00
27f9273cf3
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

Lorenzo Colitti   commited 2013-08-01 00:21:24 +09:00
43553b6fad
am 15884007: Merge "464xlat: use a gatewayed route, not point-to-point"
* commit '158840079a501784c76e9816b215b3a1839074ef':
  464xlat: use a gatewayed route, not point-to-point

Lorenzo Colitti   authored and   Android Git Automerger   commited 2013-07-30 09:57:18 -07:00
178acfced7
464xlat: use a gatewayed route, not point-to-point
Various applications such as Skype and our legacy VPN code
do not understand routes pointed directly at point-to-point
interfaces and require a default gateway IPv4 address in
order to function.

Grudgingly accept that routes without default gateways Are Hard
and use gatewayed routes instead. This causes routing to go from:

default dev clat4  scope link

to:

default via 192.0.0.4 dev clat4  scope link
192.0.0.4 dev clat4  scope link

and those apps now work.

Bug: 9597256
Bug: 9597516
Change-Id: I7b7890873802d3cb99affd6eb70b8ab75e7a2cf6

Lorenzo Colitti   commited 2013-07-31 01:09:53 +09:00
00f6629ed9
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

Wink Saville   commited 2013-07-29 15:02:29 -07:00
70dbdcc418
Merge "Remove unused mDnsOverridden"
Geremy Condra   authored and   Android (Google) Code Review   commited 2013-07-26 17:48:54 +00:00
45a5bf908e
Remove unused mDnsOverridden
mDnsOverridden is no longer used now that VPNs do not override the
default DNS settings.

Change-Id: I69495b9a6de7d60628813f357d3dbdf548695ada

Chad Brubaker   commited 2013-07-23 17:49:37 -07:00
a8e8112dab
Merge "Fix default DNS not being set on network changes"
Geremy Condra   authored and   Android (Google) Code Review   commited 2013-07-24 00:32:34 +00:00
3b8e7328bd
Fix default DNS not being set on network changes
Change-Id: I3c45404cab34c77b20dadc1d8aee127aa08fd0bd

Chad Brubaker   commited 2013-07-23 17:13:36 -07:00
45e721f586
Merge "Fix supplimentary network connections with VPNs"
Geremy Condra   authored and   Android (Google) Code Review   commited 2013-07-23 17:58:33 +00:00
2b07accdee
Merge "Support multiple Vpn ManageDialogs"
Geremy Condra   authored and   Android (Google) Code Review   commited 2013-07-23 17:55:45 +00:00
12e55c99af
Fix supplimentary network connections with VPNs
Enables the use of supplimentary mobile networks like MMS, and HIPRI
while VPNs are running.

Change-Id: I313f57a905b4e16bd4322c68687cbff1cfbe9d3e

Chad Brubaker   commited 2013-07-19 15:57:05 -07:00
78850f3081
resolved conflicts for merge of 64031ab2 to master
Change-Id: Ia9509ab6897e27da8bf4fc61a4140f2f93acb80f

Robert Greenwalt   commited 2013-07-19 14:30:49 -07:00
00eb17fb05
resolved conflicts for merge of 248d8d2c to master
Change-Id: Idd0ad9b1504fddf68c4c4cc04731de1eddd204b3

Robert Greenwalt   commited 2013-07-19 14:09:30 -07:00
1bf31d7571
am d7aeae15: am df43ba82: am e3badc10: Merge "When a SIM is changed check mobile provisioning." into jb-mr2-dev
* commit 'd7aeae15a1':
  When a SIM is changed check mobile provisioning.

Wink Saville   authored and   Android Git Automerger   commited 2013-07-19 13:42:36 -07:00
48f0c5a396
checkMobileProvisioning is not using sendNotification.
Change-Id: Ie5b98b462b29fe9339fcb8207d2d33e3028a155c

Wink Saville   commited 2013-07-19 09:27:56 -07:00
b56c4fd054
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

Robert Greenwalt   commited 2013-07-18 14:24:42 -07:00
81b0274875
Merge "Add gservices updater for carrier provisioning url" into jb-mr2-dev
Robert Greenwalt   authored and   Android (Google) Code Review   commited 2013-07-17 23:46:25 +00:00
1f905dede5
Add gservices updater for carrier provisioning url
bug:9623159
Change-Id: I36697ed341353b7a3dbec5afe20241102e76f6f1

Robert Greenwalt   commited 2013-07-17 14:05:33 -07:00
7ddc6c985d
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

Chad Brubaker   commited 2013-07-16 18:59:12 -07:00
7dcfa2a06b
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

Wink Saville   commited 2013-07-16 17:16:37 -07:00
9564f2b34f
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

Chad Brubaker   commited 2013-07-15 12:14:10 -07:00
31de0b69b0
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

Chad Brubaker   commited 2013-07-12 20:51:03 -07:00
ccae0d365b
am 7d8ad734: am 42a85412: am 925ec03f: Merge "VZW wants the phoneNumber to be 10 zero\'s if there isn\'t one." into jb-mr2-dev
* commit '7d8ad734af':
  VZW wants the phoneNumber to be 10 zero's if there isn't one.

Wink Saville   authored and   Android Git Automerger   commited 2013-07-12 12:14:01 -07:00
c137d87017
VZW wants the phoneNumber to be 10 zero's if there isn't one.
Bug: 9784059
Change-Id: I41bba908855648d2560440655d8a75a7cb2e0859

Wink Saville   commited 2013-07-10 23:00:07 -07:00
dfabd993a7
am ef5c31ae: am db011499: am 753d754c: Merge "Fix NPE if mobile is not supported in checkMobileProvisioning." into jb-mr2-dev
* commit 'ef5c31ae3e':
  Fix  NPE if mobile is not supported in checkMobileProvisioning.

Wink Saville   authored and   Android Git Automerger   commited 2013-07-02 12:41:31 -07:00
b72702da1f
Fix NPE if mobile is not supported in checkMobileProvisioning.
Bug: 9664438
Change-Id: If0c4938956a80e8d6a21a968aa771d0d8f546b3c

Wink Saville   commited 2013-07-02 10:55:14 -07:00
fdb84863b3
Merge commit '68513498' into fix-merge-conflict
* commit '68513498':
  Add checkMobileProvisioning to ConnectivityService.

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

Change-Id: Ieceb9c8f4aa4fa99258e56a720b4c74512369458

Wink Saville   commited 2013-07-01 16:12:31 -07:00
2e63bb7ef5
Add checkMobileProvisioning to ConnectivityService.
Bug: 9279964
Change-Id: I42c326a21e05aa301e9d974ed9ac1d59472780ec

Wink Saville   commited 2013-06-29 21:10:57 -07:00
690cb18254
464xlat: use a gatewayed route, not point-to-point
Various applications such as Skype and our legacy VPN code
do not understand routes pointed directly at point-to-point
interfaces and require a default gateway IPv4 address in
order to function.

Grudgingly accept that routes without default gateways Are Hard
and use gatewayed routes instead. This causes routing to go from:

default dev clat4  scope link

to:

default via 192.0.0.4 dev clat4  scope link
192.0.0.4 dev clat4  scope link

and those apps now work.

Bug: 9597256
Bug: 9597516
Change-Id: I7b7890873802d3cb99affd6eb70b8ab75e7a2cf6

Lorenzo Colitti   commited 2013-06-29 00:14:43 +09:00
25f5af234f
Move battery stats call from SystemUI to system server.
The UPDATE_DEVICE_STATS permission is no longer required in sysui.

Change-Id: Icc3120b7873563e3727e56bed9f3b4767da0606d

John Spurlock   commited 2013-06-25 10:21:11 -04:00
4ba7e413e7
Fix parsing of global:http_proxy value.
This caused a runtime restart for ':' and did not disable the proxy for ""
before.

Change-Id: Ib88b21e9eba5818a4968ae604abad8a3b3d1766f

Andreas Huber   commited 2013-05-28 15:17:37 -07:00
9df8955fe1
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

Robert Greenwalt   commited 2013-05-23 18:33:06 -07:00
ec8a9e6200
Merge "Support WiFi only device at runtime." into jb-mr2-dev
Wink Saville   authored and   Android (Google) Code Review   commited 2013-04-24 15:44:08 +00:00
d292caf445
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

Wink Saville   commited 2013-04-23 14:26:51 -07:00
23ee8db792
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

Robert Greenwalt   commited 2013-04-22 14:13:51 -07:00
308b9acca1