diff options
author | Erik Kline <ek@google.com> | 2017-04-20 16:22:50 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-04-20 16:22:50 +0000 |
commit | d4ab575f29527b85c203df43d6bd2b5dd0b87f8f (patch) | |
tree | ef988332349143a3e7da08e30adb0f1ed38ff4f8 /service | |
parent | 4d9a47a9807cbc522190400e9f7f4cf0d8aa052e (diff) | |
parent | e436b9a3b3f21210117bcb9f8d11e08ce2788020 (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.java | 3 |
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); } /** |