OSDN Git Service

Push firewall rules up to ConnectivityService.
authorJeff Sharkey <jsharkey@android.com>
Mon, 14 Sep 2015 17:09:47 +0000 (10:09 -0700)
committerJeff Sharkey <jsharkey@android.com>
Mon, 14 Sep 2015 22:49:36 +0000 (15:49 -0700)
commitdc988061ac145c86d6871e249d65ca326aaff99f
tree0bad9dc649de8bd74d0d8125d00f730cab94f805
parent84dc08a208eea7a4ddf043cadbb28987cf90ae22
Push firewall rules up to ConnectivityService.

getActiveNetworkInfo() and friends already know how to augment their
results to help apps detect when network access is blocked.  This
change wires up the new app-idle and device-idle firewall rules to
be reported through these APIs.

This also causes other platform tools like DownloadManager and
SyncManager to respect these new policies.

Bug: 24050462
Change-Id: Id9517b0b70be7e3ca2ab27bed8049db916e4d829
core/java/android/net/NetworkPolicyManager.java
services/core/java/com/android/server/ConnectivityService.java
services/core/java/com/android/server/net/NetworkPolicyManagerService.java