summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/ConnectivityService.java
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | WifiWatchdogService - disable bad connectionsIsaac Levy2011-06-241-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Complete rewrite of WifiWatchdogService.java. Checking for connectivity and managing wifi upon failure detection. Change-Id: Ifcb8b5d7e0112cbc2f2282d76fdc93ea15527a44
* | | | | | resolved conflicts for merge of 40717996 to masterRobert Greenwalt2011-06-241-1/+25
|\ \ \ \ \ \ | |/ / / / / |/| / / / / | |/ / / / Change-Id: Ie5c0f1f20c313d6c568b3b06f778f75223914ada
| * | | | am 1d6ffd73: Merge "Restrict access to protected networks." into honeycomb-LTERobert Greenwalt2011-06-231-1/+25
| |\| | | | | | | | | | | | | | | | | | | | | | | * commit '1d6ffd7339c3dfa53de19e27ca09e57233cc25ef': Restrict access to protected networks.
| | * | | Restrict access to protected networks.Robert Greenwalt2011-06-221-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some networks should only be brought up and controlled by system apps. bug: 4585677 Change-Id: I61b1ee3dcfca0ee54387cecffe5198a0b010d98b
* | | | | resolved conflicts for merge of 7a652bc8 to masterRobert Greenwalt2011-06-221-18/+2
|\| | | | | | | | | | | | | | | | | | | Change-Id: Id0a41cae36f5a3b30f2fe8a202c934153b9cd03f
| * | | | resolved conflicts for merge of b427f0e6 to honeycomb-plus-aospRobert Greenwalt2011-06-201-18/+2
| |\| | | | | | | | | | | | | | | | | | Change-Id: I8e287fd814b4a3ca72014ea060a1de043d1b4713
| | * | | Fix tethering upstream determination.Robert Greenwalt2011-06-201-18/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Used to use iface names, but on mobile ifaces are multipurpose. Refined to use ConnectivityService types. bug:4530116 Change-Id: Iaa632d5f540d27ffff683bd7d94f8004bf422e71
* | | | | Notify policy listeners about metered ifaces.Jeff Sharkey2011-06-171-26/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "DownloadManager flags for network policy."Jeff Sharkey2011-06-161-4/+2
|\ \ \ \ \
| * | | | | DownloadManager flags for network policy.Jeff Sharkey2011-06-161-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handful of DownloadManager flags to record when a download was paused because of NetworkPolicyManager rules. Change-Id: I99fc47f529cb6c8a42dbeca049e0cd0f1556eac4
* | | | | | am 241b65ac: am 5f350512: Merge "Reset connections AFTER we take down the ↵Robert Greenwalt2011-06-161-4/+37
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | network." into honeycomb-LTE * commit '241b65aca93e263f0869c5bec4ad1dbda0dec6db': Reset connections AFTER we take down the network.
| * | | | | am 5f350512: Merge "Reset connections AFTER we take down the network." into ↵Robert Greenwalt2011-06-161-4/+37
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb-LTE * commit '5f3505121b761dbd3bba62d1603fbab49de139b9': Reset connections AFTER we take down the network.
| | * | | | Reset connections AFTER we take down the network.Robert Greenwalt2011-06-161-4/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | VPN: migrate from generic Bundle to our own Parcelable VpnConfig.Chia-chi Yeh2011-06-151-8/+21
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that VpnConfig is for internal use only. Also remove hidden methods from ConnectivityManager. Change-Id: Ic298c4dc9a2c6c452bd8f4be6fa84e7ac489c0c4
* | | | | The service part of the user space VPN support.Chia-chi Yeh2011-06-081-0/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dialogs will be in another change. Change-Id: I0cdfd2ef21ffd40ee955b3cbde5ada65dbfdb0bc
* | | | | Map network identity using ConnectivityService.Jeff Sharkey2011-06-071-29/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Merge "Do not register the callbacks in the constructor."Chia-chi Yeh2011-06-071-0/+6
|\ \ \ \ \
| * | | | | Do not register the callbacks in the constructor.Chia-chi Yeh2011-05-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic7509c35cfb17b022a2af3cc14170942d6510e2d
* | | | | | Policy and rules work for ConnectivityManager.Jeff Sharkey2011-06-011-28/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Move stringToFile utility from ConnectivityService to FileUtilsMike Lockwood2011-05-281-24/+7
|/ / / / / | | | | | | | | | | | | | | | | | | | | Change-Id: I59a2dc649d59677f6b5e7ade252587c7c151ec06 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | am 5a6bec53: resolved conflicts for merge of dec3dda8 to honeycomb-plus-aospRobert Greenwalt2011-05-211-17/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | * commit '5a6bec53e224b2db9ecbc6920faab08f4a962256': Simplfy getActive* calls in ConnectivityService
| * | | | resolved conflicts for merge of dec3dda8 to honeycomb-plus-aospRobert Greenwalt2011-05-201-17/+2
| |\| | | | | | | | | | | | | | | | | | Change-Id: If14c7fc51c4549524c2f39797a902093582bae6d
| | * | | Simplfy getActive* calls in ConnectivityServiceRobert Greenwalt2011-05-201-27/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One had been simplified on GB, but somehow it didn't make it here. bug: 4463770 Change-Id: Ica51e836b1a7a489526a223168910b8e06c99c2b
* | | | | Merge c41aefe1Jean-Baptiste Queru2011-05-191-19/+54
|\| | | | | | | | | | | | | | | | | | | Change-Id: I70fc4382f832d1a2bded8a5ee7d9b96fac77879b
| * | | | am 59b1a4ed: Switch to use netd to add/remove routes.Robert Greenwalt2011-05-181-19/+55
| |\| | | | | | | | | | | | | | | | | | | | | | | * commit '59b1a4ede7032c1b4d897e13dd4ede09b5e14743': Switch to use netd to add/remove routes.
| | * | | Switch to use netd to add/remove routes.Robert Greenwalt2011-05-181-19/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also adds support for v6 routes and for removing single routes. Change-Id: I1c4f08c7938371090944d8d6f603e1e0d6d70c01
* | | | | am b22a9fd9: am 01758e81: Linkproperties update via unsol data call state ↵Kazuhiro Ondo2011-05-181-0/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | change. * commit 'b22a9fd9bb32133cbc7dc4fc7752dbf68e52dffe': Linkproperties update via unsol data call state change.
| * | | | am 01758e81: Linkproperties update via unsol data call state change.Kazuhiro Ondo2011-05-181-0/+14
| |\| | | | | | | | | | | | | | | | | | | | | | | * commit '01758e81b3ad89934581885bb2fc7006510ec639': Linkproperties update via unsol data call state change.
| | * | | Linkproperties update via unsol data call state change.Kazuhiro Ondo2011-05-171-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Extract NetworkManagementService out from Tethering to ConnectivityService.Chia-chi Yeh2011-05-111-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and also some minor refactoring. Change-Id: I0e74f30ef1b035d9ed37571c512fedc15d05db77
* | | | | am 441bc9a6: am e6848fac: Merge "Fix the adding of host routes." into ↵Robert Greenwalt2011-05-111-11/+36
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb-LTE * commit '441bc9a6f41ca1678a6c965bec7e2f18227ac100': Fix the adding of host routes.
| * | | | am e6848fac: Merge "Fix the adding of host routes." into honeycomb-LTERobert Greenwalt2011-05-101-11/+36
| |\| | | | | | | | | | | | | | | | | | | | | | | * commit 'e6848faceff58f84f671dbc73be08ef7890fea09': Fix the adding of host routes.
| | * | | Fix the adding of host routes.Robert Greenwalt2011-05-101-11/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used to just add Change-Id: I991e4cc976cc2932887dd3242fd50e013d521b0a
* | | | | am 9c7e6fc5: am f13eb830: Merge "Add auto-restore timeout for secondary ↵Robert Greenwalt2011-05-041-4/+15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | networks." into honeycomb-LTE * commit '9c7e6fc50614cc1739d4bfbf6187893c27b01a67': Add auto-restore timeout for secondary networks.
| * | | | am f13eb830: Merge "Add auto-restore timeout for secondary networks." into ↵Robert Greenwalt2011-05-041-4/+15
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb-LTE * commit 'f13eb8301f4704179938e374129f2943c9c38d5f': Add auto-restore timeout for secondary networks.
| | * | | Merge "Add auto-restore timeout for secondary networks." into honeycomb-LTERobert Greenwalt2011-05-041-4/+15
| | |\ \ \
| | | * | | Add auto-restore timeout for secondary networks.Robert Greenwalt2011-05-031-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | resolved conflicts for merge of db46fa25 to masterRobert Greenwalt2011-05-021-7/+13
|\| | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8df9d5d07588fbd70e417dae567be26f645b74b6
| * | | | | am a47c4019: Merge "Add RouteInfo objects for tracking routes." into ↵Robert Greenwalt2011-05-021-7/+13
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | honeycomb-LTE * commit 'a47c40193fcbe9ca07facea78b2828afdae5e025': Add RouteInfo objects for tracking routes.
| | * | | | Add RouteInfo objects for tracking routes.Robert Greenwalt2011-05-021-7/+13
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Used to have list of gateways for default routes, but general static routes should be supported. Change-Id: I01730142c6139f2b833b9d48f5381d2d320b69f6
| * | | | am 2869d171: resolved conflicts for merge of 08c39c6a to honeycomb-LTEBenoit Goby2011-04-111-0/+5
| |\| | | | | | | | | | | | | | | | | | | | | | | * commit '2869d1715d815ef2b357bf182d384515cdf6f9ab': Add support for USB Ethernet adapters
| | * | | resolved conflicts for merge of 08c39c6a to honeycomb-LTEBenoit Goby2011-04-111-0/+5
| | |\ \ \ | | | | | | | | | | | | | | | | | | Change-Id: I79f8ac1dc8ff9f5d0559d37043b850cd26246b92
| | | * | | Add support for USB Ethernet adaptersBenoit Goby2011-04-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6ae34a32d0e1b6f21c484b8639c3e7ce086e568d
* | | | | | am de1b950d: am 9e7a5a1e: Merge "ConnectivityService needs to use the new ↵Wink Saville2011-04-071-18/+18
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | names for the NetConfig vars." into honeycomb-LTE * commit 'de1b950d2b07737e3d284ed2ada361737d8a5a1a': ConnectivityService needs to use the new names for the NetConfig vars.
| * | | | | am 9e7a5a1e: Merge "ConnectivityService needs to use the new names for the ↵Wink Saville2011-04-071-18/+18
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NetConfig vars." into honeycomb-LTE * commit '9e7a5a1e567a0e696d9a7b68fffd00b7408e6ac1': ConnectivityService needs to use the new names for the NetConfig vars.
| | * | | | ConnectivityService needs to use the new names for the NetConfig vars.Wink Saville2011-04-071-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I809a624057462871cd1849051286c2bffd5099e9
* | | | | | am f4a29403: resolved conflicts for merge of 70c3d1c2 to honeycomb-plus-aospRobert Greenwalt2011-04-071-70/+65
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f4a29403ae5b6d3e8e754a025d33f0c33adecb21': Add external dependency API.
| * | | | | resolved conflicts for merge of 70c3d1c2 to honeycomb-plus-aospRobert Greenwalt2011-04-071-70/+65
| |\| | | | | | | | | | | | | | | | | | | | | | Change-Id: I0962138f6ecb1ed54fda25524d8850b086f13c4f
| | * | | | Add external dependency API.Robert Greenwalt2011-04-071-71/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An APN will not be connected to if some external dependency is not met. bug:3486704 Change-Id: I7d94df343b260013efd11faa978deb13f07f1389
* | | | | | am e716a551: resolved conflicts for merge of ab2194aa to honeycomb-plus-aospRobert Greenwalt2011-04-041-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e716a5515bfb9d9f1f8a5b87fee8b75bef3a1a96': Only leave one default network up at a time.