commit | 1034b7c1ff688f88c70cd4f515924579217f6e9f | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Thu Jul 28 17:14:11 2016 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Fri Sep 23 11:27:13 2016 +0900 |
tree | d920fb0f3c48cd90ad3ddc899070d4a880bdc698 | |
parent | 1f6b9ebaf365f5831dd26ac0c94c88ec8e2a5677 [diff] |
Restrict access to background networks to CHANGE_NETWORK_STATE. When a network goes into the background, tell netd to set the network's permission to NETWORK. Also, close all TCP sockets on that network, to prevent long-lived TCP connections from staying on it and possibly continuing to use metered data. Bug: 23113288 Change-Id: Ie89c1940b6739160e25c6e9022b8b977afb3e16e