diff options
author | Erik Kline <ek@google.com> | 2017-04-20 04:28:52 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-04-20 04:28:53 +0000 |
commit | 4753dd1d9e157bfcc42e1a2fecede38c23d427b2 (patch) | |
tree | e375f3d01990cf8c2381ac32c5aecbdc1468c563 /service | |
parent | bbb34492362f266beae1fe05fb9eed32e59b4a79 (diff) | |
parent | 51a3fde8c51c2040184addd928cd319ecdb31ff8 (diff) |
Merge "Make tetherChangePermission to be secured for AppOps permission"
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); } /** |