summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorErik Kline <ek@google.com>2017-04-20 04:34:47 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-04-20 04:34:47 +0000
commit4f527100f611a7f18e64d87bdb570ac885767ff1 (patch)
treee375f3d01990cf8c2381ac32c5aecbdc1468c563 /service
parent15c5b17bbf7643d101631186e18eeeb006a04994 (diff)
parent4753dd1d9e157bfcc42e1a2fecede38c23d427b2 (diff)
Merge "Make tetherChangePermission to be secured for AppOps permission"
am: 4753dd1d9e Change-Id: Ib5523f1a10fc20ecc6d7304c4a1f02ff78768c03
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);
}
/**