Commit graph

13,045 commits

Message SHA1
Update references to migrated global settings.
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

Jeff Brown   commited 2012-09-25 15:27:51 -07:00
8727271fdd
am 6c0fcc96: am 314488b7: Merge "Captive check for both mobile and wifi" into jb-mr1-dev
* commit '6c0fcc961e1650113947918dc105c2a459ebf40d':
  Captive check for both mobile and wifi

Irfan Sheriff   authored and   Android Git Automerger   commited 2012-09-20 13:39:30 -07:00
b974e23410
Captive check for both mobile and wifi
Bug: 7113195
Bug: 7102238
Bug: 7087564

Change-Id: Iac08db9de3935338ad498aa3983d2ca82057dda1

Irfan Sheriff   commited 2012-09-20 12:13:06 -07:00
2e617a7405
am 116e0ed0: am c3e3311c: Merge "Migrate network stats from removed users." into jb-mr1-dev
* commit '116e0ed0ed1fee530f32932be7145d64316dce9b':
  Migrate network stats from removed users.

Jeff Sharkey   authored and   Android Git Automerger   commited 2012-09-20 06:17:38 -07:00
aab7d3b292
Migrate network stats from removed users.
When a user is removed, migrate all network stats belonging to that
user into special UID_REMOVED bucket.  Also removes those stats from
kernel to avoid double-counting if another user is created.

Bug: 7194784
Change-Id: I03f1d660fe3754566326b7749cae8068fc224ea9

Jeff Sharkey   commited 2012-09-19 14:54:05 -07:00
4126de53fc
am 1e364aca: am 04a34b37: Merge "Actually move to Global settings." into jb-mr1-dev
* commit '1e364acac6f4768672deb73485e93c32929e25fd':
  Actually move to Global settings.

Jeff Sharkey   authored and   Android Git Automerger   commited 2012-09-17 11:10:16 -07:00
f56e2157be
Actually move to Global settings.
Also add better ConnectivityService logging.

Bug: 7157464
Change-Id: Ia235a7e62ed809240913c4782920c1410c7d597d

Jeff Sharkey   commited 2012-09-14 13:47:51 -07:00
f58fbae956
am 52781414: am fa8d83d9: Merge "Restrict lockdown and firewall to AID_SYSTEM." into jb-mr1-dev
* commit '527814142037fe08934b4e9ef3961742ffbd5a20':
  Restrict lockdown and firewall to AID_SYSTEM.

Jeff Sharkey   authored and   Android Git Automerger   commited 2012-09-06 18:07:27 -07:00
e4e3c9dce2
Restrict lockdown and firewall to AID_SYSTEM.
Bug: 7076289
Change-Id: Iafa3054335e8b1c3c8c3b8db2a4191d4ed4c8c41

Jeff Sharkey   commited 2012-09-06 17:59:14 -07:00
5663b6e934
am 623cc6b7: am bac6c129: Merge "Fix another issue #7097984 java.lang.SecurityException: Permission Denial:" into jb-mr1-dev
* commit '623cc6b79d4b4dbfea686529e4d6c2e10fe131eb':
  Fix another issue #7097984 java.lang.SecurityException: Permission Denial:

Dianne Hackborn   authored and   Android Git Automerger   commited 2012-09-04 18:54:50 -07:00
cc4caf33a9
Fix another issue #7097984 java.lang.SecurityException: Permission Denial:
broadcast asks to run as user -1 but is calling from user 0; this requires

Dupped bug of a different problem.

Change-Id: I15f4ab08b81f5f5746ba1cd183dee4f0b1281df5

Dianne Hackborn   commited 2012-09-04 18:48:37 -07:00
43fb9baa6c
am c25494a4: am 73e58381: am 0e90f738: am cd2a20f2: am 5a2772e2: Merge "Fix code problem in writePidDns"
* commit 'c25494a4a125c4cade58c85eacce9c58a7b250c8':
  Fix code problem in writePidDns

Wink Saville   authored and   Android Git Automerger   commited 2012-08-30 18:20:28 -07:00
b486a2054c
am 0e90f738: am cd2a20f2: am 5a2772e2: Merge "Fix code problem in writePidDns"
* commit '0e90f738aa82d9b30e6b4f43cd321e3f9cad2fc1':
  Fix code problem in writePidDns

Wink Saville   authored and   Android Git Automerger   commited 2012-08-30 18:16:30 -07:00
73e5838186
am 5a2772e2: Merge "Fix code problem in writePidDns"
* commit '5a2772e23b':
  Fix code problem in writePidDns

Wink Saville   authored and   Android Git Automerger   commited 2012-08-30 18:11:30 -07:00
cd2a20f248
Merge "Fix code problem in writePidDns"
Wink Saville   authored and   android code review   commited 2012-08-30 17:36:06 -07:00
5a2772e23b
am f59dfc81: am 73365695: Merge "Improve multi-user broadcasts." into jb-mr1-dev
* commit 'f59dfc81f4d1e91aa436ed70d7f8372bce3d91e0':
  Improve multi-user broadcasts.

Dianne Hackborn   authored and   Android Git Automerger   commited 2012-08-30 15:01:28 -07:00
fab1f2400e
Improve multi-user broadcasts.
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

Dianne Hackborn   commited 2012-08-30 14:33:22 -07:00
bc55bd1cf7
Merge commit '949dcad8' into manualmerge
Conflicts:
	services/java/com/android/server/ConnectivityService.java

Change-Id: I02fee6839c2a8879fb6e885d8fc8483f17d655c2

Irfan Sheriff   commited 2012-08-27 23:03:50 -07:00
04327607d0
Captive portal handling
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

Irfan Sheriff   commited 2012-08-27 22:27:06 -07:00
ba8388bf7a
am f261d88f: am 116ee10b: Merge "Always-on VPN." into jb-mr1-dev
* commit 'f261d88f818df20dfd033746bd3072bd42b705c9':
  Always-on VPN.

Jeff Sharkey   authored and   Android Git Automerger   commited 2012-08-27 15:17:41 -07:00
03ca5c9f83
Always-on VPN.
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

Jeff Sharkey   commited 2012-08-27 12:35:05 -07:00
f2e722a507
am 33f94286: am 34f86312: Merge "Migrate legacy VPN arguments to system_server." into jb-mr1-dev
* commit '33f942865c27a0af155ec2be2f1154fe7ece6072':
  Migrate legacy VPN arguments to system_server.

Jeff Sharkey   authored and   Android Git Automerger   commited 2012-08-24 11:37:58 -07:00
31b50e628d
Migrate legacy VPN arguments to system_server.
Generate the racoon and mtpd daemon arguments in system_server,
instead of accepting them from Settings.

Bug: 5756357
Change-Id: I42c1a644f6add477fe4222342640d7db15982cb8

Jeff Sharkey   commited 2012-08-24 11:29:58 -07:00
c2a8e40c7a
am 45a630e8: am d5fc86f0: Merge "Begin moving VPN to NetworkStateTracker pattern." into jb-mr1-dev
* commit '45a630e87ecfa89682d1b8230dd5c6473284e4c1':
  Begin moving VPN to NetworkStateTracker pattern.

Jeff Sharkey   authored and   Android Git Automerger   commited 2012-08-23 16:52:05 -07:00
5c900a6685
Begin moving VPN to NetworkStateTracker pattern.
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

Jeff Sharkey   commited 2012-08-23 16:41:06 -07:00
02e14d9481
am bb1d9847: am 80bb8d29: Merge "Update TCP buffer size when switching network type" into jb-mr1-dev
* commit 'bb1d98473c737bff05e3ae11d8ec53195e04725a':
  Update TCP buffer size when switching network type

Robert Greenwalt   authored and   Android Git Automerger   commited 2012-08-20 12:57:28 -07:00
4e235f7eb7
Update TCP buffer size when switching network type
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

Robert Greenwalt   commited 2012-08-20 12:28:51 -07:00
f90d00e593
am 634f34af: am a819a078: am 89ab6757: (-s ours) am 6626398a: Merge "Fix for updating TCP buffer size when switching network type"
* commit '634f34af410ee181ef104260b2f31a87562eb4e0':
  Fix for updating TCP buffer size when switching network type

Robert Greenwalt   authored and   Android Git Automerger   commited 2012-08-17 13:49:52 -07:00
f021438b03
am 89ab6757: (-s ours) am 6626398a: Merge "Fix for updating TCP buffer size when switching network type"
* commit '89ab67578e':
  Fix for updating TCP buffer size when switching network type

Robert Greenwalt   authored and   Android Git Automerger   commited 2012-08-17 13:44:54 -07:00
a819a0786b
am 6626398a: Merge "Fix for updating TCP buffer size when switching network type"
* commit '6626398a72ae592e3a9184c9b0868df0fc1f1724':
  Fix for updating TCP buffer size when switching network type

Robert Greenwalt   authored and   Android Git Automerger   commited 2012-08-17 13:28:25 -07:00
89ab67578e
Fix for updating TCP buffer size when switching network type
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: Iaa527c84f56cae108f4c7276bbed10552faaff6c

Magnus Strandberg   authored and   Zoran Jovanovic   commited 2012-08-17 11:38:44 +02:00
daa042513c
am 35d875ad: am 77b25796: Merge "Setup idletimer for network interface." into jb-mr1-dev
* commit '35d875ade38abd8dba6b7756ca612167ce8bcad0':
  Setup idletimer for network interface.

Ashish Sharma   authored and   Android Git Automerger   commited 2012-08-10 16:09:34 -07:00
e4565dcbeb
Setup idletimer for network interface.
Cherry-picked from commit f71ca8a5728e425de61ba794c9653dd0b04f16e3 in
master. DO NOT MERGE

Change-Id: I6101c7ae041b4cc1237ce7a9983753dbdfa301d3

Haoyu Bai   commited 2012-08-10 15:58:34 -07:00
92e03a787a
resolved conflicts for merge of ab4e251a to master
Change-Id: I59ad9fe6e777c6677331f83d5e1de28b66f28af7

Jeff Sharkey   commited 2012-08-08 16:39:00 -07:00
696aeb4e78
Merge "Isolate NetworkStateTracker creation, test." into jb-mr1-dev
Jeff Sharkey   authored and   Android (Google) Code Review   commited 2012-08-08 16:25:41 -07:00
9844730f62
Isolate NetworkStateTracker creation, test.
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

Jeff Sharkey   commited 2012-08-08 16:23:41 -07:00
6b9021d76c
Merge "Setup idletimer for network interface."
Ashish Sharma   authored and   Android (Google) Code Review   commited 2012-08-06 16:22:04 -07:00
5f4cd1dfef
Setup idletimer for network interface.
Change-Id: I1251b60f4c3c31c75c2acd531495ca75bbb35ff5

Haoyu Bai   commited 2012-08-06 14:27:55 -07:00
8ce570b0f3
Merge "Include network type that caused broadcast." into jb-mr1-dev
Jeff Sharkey   authored and   Android (Google) Code Review   commited 2012-08-06 13:40:44 -07:00
976942a8ee
Include network type that caused broadcast.
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

Jeff Sharkey   commited 2012-08-06 11:45:01 -07:00
47905d1f1d
Make generic BaseNetworkObserver.
This makes it easier to add new INetworkManagementEventObserver events
in future.

Change-Id: I432263d745558de4b878f313c1951230ed9db2b1

Jeff Sharkey   commited 2012-08-05 14:32:41 -07:00
60e6c1ac06
Split NST handler events away from CS internals.
Instead of sharing event space, use a different handler backed by
the same looper.

Change-Id: I11f1e4701c341665770ca640f3cba0c295bb7561

Jeff Sharkey   commited 2012-07-26 14:09:09 -07:00
a1ef1bec2a
Network data activity change intent for network interfaces.
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

Haoyu Bai   commited 2012-07-17 17:13:03 -07:00
b5da575fc7
am 406feb59: (-s ours) Create telephony-common and mms-common - DO NOT MERGE
* commit '406feb595d':
  Create telephony-common and mms-common - DO NOT MERGE

Wink Saville   authored and   Android Git Automerger   commited 2012-07-17 12:36:56 -07:00
e0bdc06669
Create telephony-common and mms-common - DO NOT MERGE
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

Wink Saville   authored and   Jean-Baptiste Queru   commited 2012-07-17 12:23:09 -07:00
406feb595d
Create telephony-common and mms-common
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

Wink Saville   commited 2012-07-11 16:02:08 -07:00
64e3f78abb
Fix code problem in writePidDns
When app call startUsingNetworkFeature() to keep alive, there is a
code problem in writePidDns() to update the net.dnsX.<pid> property.

Change-Id: I83b02da4808f106c9ca00e350ad38e4bd5cba689

Catherine Liu   commited 2012-06-29 16:09:35 -05:00
e6228bdbd7
Reconcile with jb-release
Change-Id: I4200341adee9a73e326fb9f0c6eefa3d8e01a2b9

The Android Open Source Project   commited 2012-06-19 07:15:35 -07:00
da0ba6beec
merge in jb-release history after reset to jb-dev
The Android Automerger   commited 2012-06-19 07:03:42 -07:00
fd9cdfb85d
am 56bb344c: Merge "Added or fixed doctrings for required permissions." into jb-dev
* commit '56bb344ccfd3d261cea9987c98a17d0820279b17':
  Added or fixed doctrings for required permissions.

Nicolas Falliere   authored and   Android Git Automerger   commited 2012-06-18 17:42:57 -07:00
5889983f0b