summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/ConnectivityService.java
Commit message (Collapse)AuthorAgeFilesLines
...
* Create telephony-common and mms-commonWink Saville2012-07-111-8/+9
| | | | | | | | | | | | | | | | | These have been created to reduce the size and complexity of frameworks/base. mms-common was created by moving all of frameworks/base/core/java/com/google/android/mms to: frameworks/opt/mms telephony-common was created by moving some of frameworks/base/telephony to: frameworks/opt/telephony Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
* Modify logging to debug this issueRobert Greenwalt2012-05-241-89/+106
| | | | | | | | | Logging exec time on startUsingNetworkFeature as we've had some reports suggesting it's causing ANRs. Remove some logging from NDC so it's local log is more useful. bug:6492166 Change-Id: I258ff6c59bff2c65935242d50496d84720c5d493
* Block metered APNs when app is restricted.Jeff Sharkey2012-05-021-11/+24
| | | | | | | | | | When an app is restricted in the background, don't allow them to start using metered network features. With this change they can still use network features when in foreground. This avoids situation where apps can bring up APNs which they are unable to use. Bug: 5838267 Change-Id: I3ac96f2a545f67cba1ef12b8536cfd0da769d955
* Add bit to eventlog to handle new network typesRobert Greenwalt2012-04-251-7/+7
| | | | | bug:5514930 Change-Id: I29288cb39902578992ee53b171f228f8eeb407fd
* Merge "Stop complaining about failure to remove routes"Robert Greenwalt2012-04-241-2/+2
|\
| * Stop complaining about failure to remove routesRobert Greenwalt2012-04-231-2/+2
| | | | | | | | | | | | | | | | | | We often get told a network has gone away after the interface is downed and the routes are auto-removed. Change the log to VDBUG so standard builds don't have the noise. bug:2856577 Change-Id: If12ec3ed3b646ff6ef89b3778d037cfc478c0d25
* | Add ALLOW_METERED column to DownloadManager.Jeff Sharkey2012-04-181-12/+24
| | | | | | | | | | | | | | | | Also allow isActiveNetworkMetered() to inspect networks without requiring ACCESS_WIFI_STATE. Bug: 3001465 Change-Id: Ibc23577d4ad941e4f93db417be6b046881dcbfb1
* | API to report if active network is metered.Jeff Sharkey2012-04-161-0/+13
|/ | | | | | | | Report to developers if active network is "metered" and define it as the user being sensitive to heavy data usage. Bug: 3001465 Change-Id: I855ca3cd3eb1de3c4814148d70ccf24957af898a
* Fix the bug net.dns1.pid is same as net.dns2.pidyoonsung.nam2012-03-021-1/+2
| | | | | | | | writePidDns() does not increase the index in case first given dns already exist in the property. Change-Id: I1129d0042929b3ee119160e53cae0e4143c7ea88 Signed-off-by: yoonsung.nam <yoonsung.nam@samsung.com>
* Send broadcast when changing restrict background.Jeff Sharkey2012-02-071-6/+23
| | | | | | | | | | | When changing global restrict background status, send connectivity change broadcast, since it radically changes DISCONNECTED/BLOCKED status system-wide. Also reduce verbose stats logging. Bug: 5854466 Change-Id: I3b612c520f50cc3000a3a569b7e0ab5f691cc2bd
* Add additional debugWink Saville2012-01-251-1/+5
| | | | | | | When ConnectivityService#startUsingNetworkFeature is called and the special network is not available output some additional information. Change-Id: I34b226a208596fa6418f1f37a0feec1d274d493c
* Merge "Stop using shared DUN APN when tethering stops."Robert Greenwalt2012-01-201-11/+25
|\
| * Stop using shared DUN APN when tethering stops.Robert Greenwalt2012-01-031-11/+25
| | | | | | | | | | | | | | | | | | Even if other people are sharing the connection (ie, carrier wants default and tethered traffic on the same APN) stop using a carrier-described APN when the tethering stops. bug:5525764 Change-Id: I95ed2aaed4d79519d233a62cf2945edead8114bc
* | Disable wimax when mobile data is in Settingstk.mun2012-01-061-0/+6
|/ | | | | | | - Add wimax related code in handleSetMobileData to disable wimax when Moblie data is disabled (Settings -> Wireless & Networks - More -> Mobile Networks ->Data Enabled) Change-Id: Ibf2d9da2eb90d161128005f26ac4b3e991526af4 Signed-off-by: tk.mun <tk.mun@samsung.com>
* Fix NPE in ConnectivityService.Robert Greenwalt2011-11-111-0/+1
| | | | | | | | | If it's configured with a defined network but can't create a network state tracker for it, it would NPE and restart the framework whenever a default network disconnects. bug:5603268 Change-Id: I816c4f522d766e0353a713623f6635b03395b01e
* Fix Wimax-less build.Robert Greenwalt2011-11-101-1/+3
| | | | | | | | A build with the wimax network type defined but wimax disabled causes an NPE in ConnectivityService's constructor. bug:5237167 Change-Id: I929eac217e1afa0e61346fdbc3e96a7d3ad09a54
* Fix build.Robert Greenwalt2011-11-081-1/+1
| | | | | | | Missed a commit that fixed some issues. bug:5237167 Change-Id: I61e44831e2c3f1cf613ca1387aa95d712b7d2ded
* Wimax : wimax framework related open source.tk.mun2011-11-071-1/+88
| | | | | | | | | | | | Integrate wimax network related changes into Android Framework. - In Connectivity service, start wimax service. - 4G icon display in StatusBarPolicy. - DHCP renew add. - Add radio for wiamx Change-Id: I2d9012247edfdf49d71ca7e1414afd0006f330ca Signed-off-by: tk.mun <tk.mun@samsung.com> bug:5237167
* Start using IP tool for advanced routing.Robert Greenwalt2011-11-041-27/+50
| | | | | | bug:5495862 bug:5396842 Change-Id: I5e31b352b14a4dc746cacce4d61cf8d9ad7382a0
* Temp disable Tethering if DUN is requiredRobert Greenwalt2011-10-271-0/+6
| | | | | | | | | | Getting source-based routing working is too risk for this point in the project but tethering is broken otherwise, so disable the tethering option if DUN is required until we can get a real fix in. bug:5495862 Change-Id: I5e852bf30c887599024a8b61af86ffec1d5333af
* Move battery stats to xt_qtaguid for data stats.Jeff Sharkey2011-10-091-2/+13
| | | | | | | | | | | | | Replace TrafficStats calls by reading values from xt_qtaguid kernel module. To keep BatteryStatsImpl changes lightweight, cache recently parsed stats. Tracks mobile ifaces from ConnectivityService. Refactor xt_qtaguid parsing into factory outside of NMS. Add stats grouping based on UID, and total based on limiting filters like iface prefix and UID. Bug: 4902271 Change-Id: I533f116c434b77f93355bf95b839e7478528505b
* VPN: temporarily disable the default proxy when VPN is active.Chia-chi Yeh2011-10-031-18/+35
| | | | | Bug: 5361858 Change-Id: I99e84cce9c99ff1f5fdccbfd3bfb9cf496ac541c
* ConnectivityService: detach the logic of global proxy.Chia-chi Yeh2011-10-031-7/+2
| | | | | | | The current implementation of global proxy is dead, and it will be removed completely in separate changes. Change-Id: I54f6b3960f761483d28d808e99db4c71c9c0348d
* Revert "Tell the resolver what protocols to use."Lorenzo Colitti2011-09-281-45/+6
| | | | | | | | | Change Ife82a8d8 broke IPv6 on wifi. Change I4e3a69ea is an alternate approach that does not require any framework changes. Bug: 5284168 Change-Id: Ib6e002aa23700adc71051cf6b76860545497dbf4
* Merge "Watch network subtype, tethering teardown, empty."Jeff Sharkey2011-09-251-3/+4
|\
| * Watch network subtype, tethering teardown, empty.Jeff Sharkey2011-09-221-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Watch for changes to telephony network subtype, and update iface mapping to persist stats under correct type. Update network stats before removing tethering NAT rules. Skip recording that would create empty historical buckets. Query UID stats before iface stats to always skew positive when counters are actively rolling forward. Bug: 5360042, 5359860, 5335674, 5334448 Change-Id: I8aa37b568e8ffb70647218aa1aff5195d3e44d5a
* | am b849074c: Merge "Tell the resolver what protocols to use." into ↵Robert Greenwalt2011-09-221-6/+45
|\ \ | |/ |/| | | | | | | | | ics-factoryrom * commit 'b849074cb58edc15b0764afdde0326c0b6d5b147': Tell the resolver what protocols to use.
| * Merge "Tell the resolver what protocols to use." into ics-factoryromRobert Greenwalt2011-09-221-6/+45
| |\
| | * Tell the resolver what protocols to use.Robert Greenwalt2011-09-221-6/+45
| | | | | | | | | | | | | | | | | | | | | | | | Stop guessing based on the connectivity of the default route and use the correct v4/v6 proto for your pid. bug:5284168 Change-Id: Ife82a8d8e54c0ace2bc9e8a624b11d29a4e285e2
* | | am 904fb9d7: Merge "Notify people of empty proxies too." into ics-factoryromWink Saville2011-09-221-1/+2
|\| | | | | | | | | | | | | | * commit '904fb9d79cc72879e4c6767c219ec78feda8e62b': Notify people of empty proxies too.
| * | Notify people of empty proxies too.Robert Greenwalt2011-09-211-1/+2
| | | | | | | | | | | | | | | | | | | | | We were telling people when the proxy changed, except if it was changed to null. bug:5263946 Change-Id: I83416dac8fe992168a8aafd5676f9faee4e484d0
* | | am 4aa8d943: Merge "Reduce connectivity logging" into ics-factoryromWink Saville2011-09-211-43/+65
|\| | | | | | | | | | | | | | * commit '4aa8d943a970008915b703758743b107927d96fa': Reduce connectivity logging
| * | Reduce connectivity loggingWink Saville2011-09-211-43/+65
| |/ | | | | | | Change-Id: I5d45b8fbcd01e42df7f2b1cf02fb5b226128abb8
* / Change hostname format to conform to specificationIrfan Sheriff2011-09-201-1/+1
|/ | | | | | | Underscore is not allowed as per RFC 952 Bug: 5348537 Change-Id: I618c137fd54ecf36cece3b9eba39c51cda3aeac3
* Collect and persist tethering stats.Jeff Sharkey2011-09-161-0/+6
| | | | | | | | | Use new "gettetherstats" netd command to retrieve statistics for active tethering connections. Keep tethering poll events separate from UID poll, even though they end up same historical structures. Bug: 5244846 Change-Id: Ia0c5165f6712c12b51586f86c331a2aad4ad6afb
* Create new isNetworkSupported APIRobert Greenwalt2011-08-311-0/+6
| | | | | | | | | Useful for checking if on a wifi-only device. Similar to asking for NetworkInfo for a network type and checking for null, though here the intent is explicit. bug:5087537 Change-Id: Ia3ddd09b6b735b8b3ceb7a347891e015fd96b218
* Introduce immediate CONNECTIVITY_ACTION variant.Jeff Sharkey2011-08-291-6/+18
| | | | | | | | | | | | New broadcast that is dispatched immediately after connectivity changes have been handled by ConnectivityService, bypassing any applicable CONNECTIVITY_CHANGE_DELAY. Also protect CONNECTIVITY_CHANGE broadcasts, since they should only be sent by system. Bug: 5198167 Change-Id: I75f1fb44b21da1879f0ab960bcaa481126d70fde
* Proactively disable data when over policy limit.Jeff Sharkey2011-08-231-3/+30
| | | | | | | | | | | | | | Add policy controls to NetworkStateTracker which are combined with other user preference and internal flags to decide if data connection should be established. Better locking around enabled flags. When data network would be over limit, proactively disable data on that network. Enable when policy is snoozed or when cycle resets. Track and dismiss notifications from now-stale policies. Bug: 4587023, 5178147 Change-Id: Ibfcc9f73cda7c369209af701b46eddd3d1943f2d
* Merge "Background data notification, API clean up."Jeff Sharkey2011-08-181-47/+0
|\
| * Background data notification, API clean up.Jeff Sharkey2011-08-171-47/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When restricting background data, show ongoing notification to give easy access to re-enable. Deprecate getBackgroundDataSetting() API to always return true, since NetworkInfo.isConnected() is new source of truth. Handle upgrade path by reading from existing secure value, and kick one last broadcast when changing value. Remove background data code from ConnectivityService. Remove warning alerts, since they push ifaces into restricted list; should only happen when iface has limit. Bug: 5163559, 5129421 Change-Id: I0064d9d643656a4d32aaae51d4a58bce49fe295f
* | Merge "P2p enhancements"repo sync2011-08-161-45/+41
|\ \
| * | P2p enhancementsrepo sync2011-08-101-45/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | - ConnectivityService interaction and support for running dhcp server and client - State machine enhancements for connectivity interaction Change-Id: Iba3beb8c87554ffd67a7b7e852bbb4dd8666a4f5
* | | VPN: reset legacy VPN when resetting IPv4 addresses.Chia-chi Yeh2011-08-161-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently legacy VPN only works on IPv4, and it should always turn down when the addresses are changed. It assumed that the interface will be brought down and up, so the event can be detected via interfaceStatusChanged(). However, the assumption was incorrect and the event is actually driver-dependent. To fix this issue, ConnectivityService now tells VPN that the interface is down when resetting IPv4 addresses. Change-Id: I76d15e56552d86635c5b274ca980be5da905a6fb
* | | Flush central DNS cache when things change.Robert Greenwalt2011-08-151-14/+30
| |/ |/| | | | | | | | | | | Flushes the cache for an interface when either routes or DNS servers change. Change-Id: I021305f781be669aaa12074dc1cc21511f49eac4
* | Remove default routes for non-default networks.Robert Greenwalt2011-08-091-0/+13
|/ | | | | | | | Recoding/port of a change that existed in GB but got dropped in the shuffle. bug:5036222 Change-Id: I87e819d255c0c46f3ec8fe0fe18d27ae9df1ae36
* resolved conflicts for merge of 7bb2d942 to masterWink Saville2011-08-051-9/+64
|\ | | | | | | Change-Id: I026b01805c81d8b26d22e4a195e5e38655a34d32
| * am 090df1dc: Merge "Delay connectivity change notifications." into honeycomb-LTEWink Saville2011-08-041-9/+64
| |\ | | | | | | | | | | | | * commit '090df1dc4188e5b9ef10a0aca5081a196085ff56': Delay connectivity change notifications.
| | * Delay connectivity change notifications.Wink Saville2011-08-041-9/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because changes to the route tables take time to propagate we add a delay when sending out change notifications. This allows applications, such as GTalk, to create sockets without encountering a 3 minute timeout. Bug: 5008488 Change-Id: I0eefb03a5d6358a58ea6ae5b4f697ff302b5511d
* | | Merge "Expose quota status for active network."Jeff Sharkey2011-08-031-0/+25
|\ \ \
| * | | Expose quota status for active network.Jeff Sharkey2011-08-021-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create API to expose quota status derived from underlying network policy. This is designed to support applications making informed decisions when performing network requests. Fix bug with random stats generation, and write policy when changing restrict background data flag. Deprecate EXTRA_NETWORK_INFO, since it varies based on UID. Bug: 4517283, 5088603 Change-Id: Ic6893a8967f69937e466be226ba7bb86ef5a5d2d