Fix ConnectivityManager permissions check. am: 28f430176a
Original change: undetermined Change-Id: I1b8c2b82adaecbd44779dc5bfe597f850bed39e8
This commit is contained in:
@@ -572,6 +572,8 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
|
||||
// javadoc from interface
|
||||
public int stopUsingNetworkFeature(int networkType, String feature) {
|
||||
enforceChangePermission();
|
||||
|
||||
int pid = getCallingPid();
|
||||
int uid = getCallingUid();
|
||||
|
||||
@@ -611,7 +613,7 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
||||
Log.d(TAG, "stopUsingNetworkFeature for net " + networkType +
|
||||
": " + feature);
|
||||
}
|
||||
enforceChangePermission();
|
||||
|
||||
if (!ConnectivityManager.isNetworkTypeValid(networkType)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user