From d0c6ccbafdebc73d03cf3cd47f02f9f6c78a69ff Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Fri, 14 Sep 2012 16:26:37 -0700 Subject: [PATCH] Move NetworkPolicy from apps to UID. For multi-user devices, switch to storing policy per-user instead of per-app. Also watch for user added/removed broadcasts to clean up policies and apply global restrictions. Bug: 7121279 Change-Id: Ia7326bd0ebe0586fa4ec6d3a62f6313dc8814007 --- core/java/android/content/Intent.java | 4 +- .../android/net/INetworkPolicyManager.aidl | 6 +- .../android/net/NetworkPolicyManager.java | 18 +- core/java/android/os/UserHandle.java | 12 +- .../net/NetworkPolicyManagerService.java | 227 +++++++++++------- .../NetworkPolicyManagerServiceTest.java | 65 +---- 6 files changed, 177 insertions(+), 155 deletions(-) diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index bca5ade50655f..b86ac9839cb74 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -1473,7 +1473,7 @@ public class Intent implements Parcelable, Cloneable { * Broadcast Action: A new application package has been installed on the * device. The data contains the name of the package. Note that the * newly installed package does not receive this broadcast. - *

My include the following extras: + *

May include the following extras: *