summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorErik Kline <ek@google.com>2017-04-20 13:52:44 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-04-20 13:52:44 +0000
commite436b9a3b3f21210117bcb9f8d11e08ce2788020 (patch)
treeb79ca8bcb8ed97b164c67df501cceb55190f98c3 /service
parentc3ce46ad3d9dbcf9f878a4016203da0b068354e6 (diff)
parent142bf3ad3a9c6844d689f59b8dd1d0af3a26d3fa (diff)
Merge "Make tetherChangePermission to be secured for AppOps permission" am: 4753dd1d9e am: 4f527100f6
am: 142bf3ad3a Change-Id: Ib832240f7d5d42d1e552e60d6e5a78c9d6565904
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);
}
/**