summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorErik Kline <ek@google.com>2017-04-20 16:22:50 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-04-20 16:22:50 +0000
commitd4ab575f29527b85c203df43d6bd2b5dd0b87f8f (patch)
treeef988332349143a3e7da08e30adb0f1ed38ff4f8 /service
parent4d9a47a9807cbc522190400e9f7f4cf0d8aa052e (diff)
parente436b9a3b3f21210117bcb9f8d11e08ce2788020 (diff)
Merge "Make tetherChangePermission to be secured for AppOps permission" am: 4753dd1d9e am: 4f527100f6 am: 142bf3ad3a
am: e436b9a3b3 Change-Id: Ic66fd9947fd9581eef06a249b9f8b71ff6d3277a
Diffstat (limited to 'service')
-rw-r--r--service/java/com/android/server/wifi/util/WifiPermissionsUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/util/WifiPermissionsUtil.java b/service/java/com/android/server/wifi/util/WifiPermissionsUtil.java
index 6de39ac3d..8b687db81 100644
--- a/service/java/com/android/server/wifi/util/WifiPermissionsUtil.java
+++ b/service/java/com/android/server/wifi/util/WifiPermissionsUtil.java
@@ -81,7 +81,8 @@ public class WifiPermissionsUtil {
* @param context Context object of the caller.
*/
public void enforceTetherChangePermission(Context context) {
- ConnectivityManager.enforceTetherChangePermission(context);
+ String pkgName = context.getOpPackageName();
+ ConnectivityManager.enforceTetherChangePermission(context, pkgName);
}
/**