Loading services/java/com/android/server/ConnectivityService.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -572,6 +572,8 @@ public class ConnectivityService extends IConnectivityManager.Stub { // javadoc from interface // javadoc from interface public int stopUsingNetworkFeature(int networkType, String feature) { public int stopUsingNetworkFeature(int networkType, String feature) { enforceChangePermission(); int pid = getCallingPid(); int pid = getCallingPid(); int uid = getCallingUid(); int uid = getCallingUid(); Loading Loading @@ -611,7 +613,7 @@ public class ConnectivityService extends IConnectivityManager.Stub { Log.d(TAG, "stopUsingNetworkFeature for net " + networkType + Log.d(TAG, "stopUsingNetworkFeature for net " + networkType + ": " + feature); ": " + feature); } } enforceChangePermission(); if (!ConnectivityManager.isNetworkTypeValid(networkType)) { if (!ConnectivityManager.isNetworkTypeValid(networkType)) { return -1; return -1; } } Loading Loading
services/java/com/android/server/ConnectivityService.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -572,6 +572,8 @@ public class ConnectivityService extends IConnectivityManager.Stub { // javadoc from interface // javadoc from interface public int stopUsingNetworkFeature(int networkType, String feature) { public int stopUsingNetworkFeature(int networkType, String feature) { enforceChangePermission(); int pid = getCallingPid(); int pid = getCallingPid(); int uid = getCallingUid(); int uid = getCallingUid(); Loading Loading @@ -611,7 +613,7 @@ public class ConnectivityService extends IConnectivityManager.Stub { Log.d(TAG, "stopUsingNetworkFeature for net " + networkType + Log.d(TAG, "stopUsingNetworkFeature for net " + networkType + ": " + feature); ": " + feature); } } enforceChangePermission(); if (!ConnectivityManager.isNetworkTypeValid(networkType)) { if (!ConnectivityManager.isNetworkTypeValid(networkType)) { return -1; return -1; } } Loading