From 9e18fd1a72ceca43ffd8bc50476a05e236b38b08 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Mon, 2 May 2011 17:51:29 -0700 Subject: [PATCH] Permissions to protect bandwidth statistics. Introduces new "net_bw_stats" group which will protect reading detailed bandwidth statistics from the kernel. Also introduce "net_bw_acct" group which will enable specific applications to request that their network traffic be counted against other UIDs. This change associates manifest permissions with the low-level GIDs. Change-Id: If3fc28053afda201ff305d798a8878ff1f35b997 --- core/res/AndroidManifest.xml | 8 ++++++++ core/res/res/values/strings.xml | 5 +++++ data/etc/platform.xml | 10 ++++++++++ 3 files changed, 23 insertions(+) diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 47902a8bc2ace..53e063a488fe2 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1393,6 +1393,14 @@ android:description="@string/permdesc_manageNetworkPolicy" android:protectionLevel="signature" /> + + + diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index b5f408423adfd..a525ee310efb7 100755 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -1443,6 +1443,11 @@ Allows an application to manage network policies and define application-specific rules. + + modify network usage accounting + + Allows modification of how network usage is accounted against applications. Not for use by normal applications. + diff --git a/data/etc/platform.xml b/data/etc/platform.xml index b9c0d80ce25da..0b8d40f5d97c0 100644 --- a/data/etc/platform.xml +++ b/data/etc/platform.xml @@ -84,6 +84,16 @@ + + + + + + + + + +