summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2015-10-22 06:15:05 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-10-22 06:15:05 +0000
commit809dcade9906001f6aa51a68aa783e20bb1d7c0d (patch)
tree67b733596e2b983339bcc7cdf721e0bed16fa5db /services
parent0dccd128001ceff9437f736bd70dfd1986e315d5 (diff)
parentd54270506669e474b5b8d1703212c77780a04ae9 (diff)
downloadframeworks_base-809dcade9906001f6aa51a68aa783e20bb1d7c0d.zip
frameworks_base-809dcade9906001f6aa51a68aa783e20bb1d7c0d.tar.gz
frameworks_base-809dcade9906001f6aa51a68aa783e20bb1d7c0d.tar.bz2
Merge "Reinstate CHANGE_NETWORK_STATE as a normal permission." into mnc-dr-dev
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/ConnectivityService.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java
index 3860005..327fb8a 100644
--- a/services/core/java/com/android/server/ConnectivityService.java
+++ b/services/core/java/com/android/server/ConnectivityService.java
@@ -1447,10 +1447,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
}
private void enforceChangePermission() {
- int uid = Binder.getCallingUid();
- Settings.checkAndNoteChangeNetworkStateOperation(mContext, uid, Settings
- .getPackageNameForUid(mContext, uid), true);
-
+ ConnectivityManager.enforceChangePermission(mContext);
}
private void enforceTetherAccessPermission() {