Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c24c0e9b authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change Ib8f16340 into eclair-mr2

* changes:
  Fix ConnectivityManager permissions check.
parents 5da9aeb4 b8f16340
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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;
        }