summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/ConnectivityService.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Support for dns domain."Robert Greenwalt2012-11-161-7/+7
|\
| * Support for dns domain.Robert Greenwalt2012-11-161-7/+7
| | | | | | | | | | bug:6799630 Change-Id: I10070eddb65b7b60f0bc2b3e1e320e1aa4ec6e98
* | Increase readability of connectivity event log.Jeff Sharkey2012-11-091-12/+2
|/ | | | | Bug: 6322766 Change-Id: I556759f5fc1466cdd4db6b4574084a8068dc9909
* Remove extraneous logs.Dianne Hackborn2012-11-081-2/+2
| | | | Change-Id: I4c47d36748de91bd6fddc419afbf59552bf63e9a
* Migrate more Secure settings to Global.Jeff Sharkey2012-09-271-20/+20
| | | | | | | | Migrate networking, storage, battery, DropBox, and PackageManager related Secure settings to Global table. Bug: 7232014, 7231331, 7231198 Change-Id: I772c2a9586a2f708c9db95622477f235064b8f4d
* First step towards cleaning up Global settings.Jeff Sharkey2012-09-261-2/+2
| | | | | | | Remove all @Deprecated @hide settings, and clean up any stragglers. Bug: 7232125 Change-Id: Ibf67093c728d4a28565129b923edb1701d3b2789
* Update references to migrated global settings.Jeff Brown2012-09-251-9/+9
| | | | | | | | | | Fixed one setting that was migrated but not marked deprecated. Removed a hidden setting that is no longer used by the new power manager service. Bug: 7231172 Change-Id: I332f020f876a18d519a1a20598a172f1c98036f7
* Captive check for both mobile and wifiIrfan Sheriff2012-09-201-6/+6
| | | | | | | | Bug: 7113195 Bug: 7102238 Bug: 7087564 Change-Id: Iac08db9de3935338ad498aa3983d2ca82057dda1
* Actually move to Global settings.Jeff Sharkey2012-09-141-2/+17
| | | | | | | Also add better ConnectivityService logging. Bug: 7157464 Change-Id: Ia235a7e62ed809240913c4782920c1410c7d597d
* Restrict lockdown and firewall to AID_SYSTEM.Jeff Sharkey2012-09-061-1/+9
| | | | | Bug: 7076289 Change-Id: Iafa3054335e8b1c3c8c3b8db2a4191d4ed4c8c41
* Fix another issue #7097984 java.lang.SecurityException: Permission Denial:Dianne Hackborn2012-09-041-5/+25
| | | | | | | | broadcast asks to run as user -1 but is calling from user 0; this requires Dupped bug of a different problem. Change-Id: I15f4ab08b81f5f5746ba1cd183dee4f0b1281df5
* Improve multi-user broadcasts.Dianne Hackborn2012-08-301-5/+7
| | | | | | | | | | | | | | | | | | | You can now use ALL and CURRENT when sending broadcasts, to specify where the broadcast goes. Sticky broadcasts are now correctly separated per user, and registered receivers are filtered based on the requested target user. New Context APIs for more kinds of sending broadcasts as users. Updating a bunch of system code that sends broadcasts to explicitly specify which user the broadcast goes to. Made a single version of the code for interpreting the requested target user ID that all entries to activity manager (start activity, send broadcast, start service) use. Change-Id: Ie29f02dd5242ef8c8fa56c54593a315cd2574e1c
* Captive portal handlingIrfan Sheriff2012-08-271-21/+63
| | | | | | | | | | We now notify the user of a captive portal before switching to the network as default. This allows background applications to continue to work until the user confirms he wants to sign in to the captive portal. Also, moved out captive portal handling out of wifi as a seperate component. Change-Id: I7c7507481967e33a1afad0b4961688bd192f0d31
* Always-on VPN.Jeff Sharkey2012-08-271-7/+124
| | | | | | | | | | | | | | | | | | | Adds support for always-on VPN profiles, also called "lockdown." When enabled, LockdownVpnTracker manages the netd firewall to prevent unencrypted traffic from leaving the device. It creates narrow rules to only allow traffic to the selected VPN server. When an egress network becomes available, LockdownVpnTracker will try bringing up the VPN connection, and will reconnect if disconnected. ConnectivityService augments any NetworkInfo based on the lockdown VPN status to help apps wait until the VPN is connected. This feature requires that VPN profiles use an IP address for both VPN server and DNS. It also blocks non-default APN access when enabled. Waits for USER_PRESENT after boot to check KeyStore status. Bug: 5756357 Change-Id: If615f206b1634000d78a8350a17e88bfcac8e0d0
* Migrate legacy VPN arguments to system_server.Jeff Sharkey2012-08-241-6/+16
| | | | | | | | Generate the racoon and mtpd daemon arguments in system_server, instead of accepting them from Settings. Bug: 5756357 Change-Id: I42c1a644f6add477fe4222342640d7db15982cb8
* Begin moving VPN to NetworkStateTracker pattern.Jeff Sharkey2012-08-231-8/+15
| | | | | | | | | | | | Created base tracker that handles common bookkeeping, and move VPN to become a tracker. VPN status is now reflected in NetworkInfo, and is mapped to LegacyVpnInfo. Legacy VPN now "babysits" any init services it starts, watching for when they stop unexpectedly. Bug: 5756357 Change-Id: Iba7ec79da69469f6bd9a970cc39cf6b885b4c9c4
* Update TCP buffer size when switching network typeRobert Greenwalt2012-08-201-0/+5
| | | | | | | | | | | | | Import of non-merging change 41612 from AOSP When PDP connects in GSM network, the TCP buffer window size is set to max 8760. If the phone swicthes to UMTS, the TCP buffer size is not updated to UMTS, i.e. GPRS buffer size is still used with limited data transfer spead as a result. This fix makes sure the TCP buffer size is updated when switching network type. Change-Id: Ic44a557677ffe629e83ce1f522a9f058bee6e7b2
* Setup idletimer for network interface.Haoyu Bai2012-08-101-0/+58
| | | | | | | Cherry-picked from commit f71ca8a5728e425de61ba794c9653dd0b04f16e3 in master. DO NOT MERGE Change-Id: I6101c7ae041b4cc1237ce7a9983753dbdfa301d3
* Merge "Isolate NetworkStateTracker creation, test." into jb-mr1-devJeff Sharkey2012-08-081-70/+102
|\
| * Isolate NetworkStateTracker creation, test.Jeff Sharkey2012-08-081-70/+102
| | | | | | | | | | | | | | | | | | Change ConnectivityService to use a factory when creating NetworkStateTrackers, which gives us a good place to inject mocks for testing. Add initial tests to verify that network routes are added and removed as networks changed. Change-Id: I11cbc61a84c2ed4afa2670036295b1494eab26e1
* | Merge "Include network type that caused broadcast." into jb-mr1-devJeff Sharkey2012-08-061-0/+3
|\ \ | |/ |/|
| * Include network type that caused broadcast.Jeff Sharkey2012-08-061-0/+3
| | | | | | | | | | | | | | | | Network type can be obtained through EXTRA_NETWORK_INFO, but offer it as first-class extra since the returned NetworkInfo is deprecated. Bug: 6936247 Change-Id: Ief59577afd2bd930f0f4c5650b413feef86bfbc3
* | Make generic BaseNetworkObserver.Jeff Sharkey2012-08-051-15/+5
|/ | | | | | | This makes it easier to add new INetworkManagementEventObserver events in future. Change-Id: I432263d745558de4b878f313c1951230ed9db2b1
* Split NST handler events away from CS internals.Jeff Sharkey2012-07-261-46/+49
| | | | | | | Instead of sharing event space, use a different handler backed by the same looper. Change-Id: I11f1e4701c341665770ca640f3cba0c295bb7561
* Network data activity change intent for network interfaces.Haoyu Bai2012-07-171-0/+29
| | | | | | | | The activity notification is received from netd, an intent DATA_ACTIVITY_CHANGE is then raised for other part of the system to consume. Change-Id: Idfcc4763c51c5b314c57f546c12557082f06bebf
* 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
|\