am c24c0e9b: Merge change Ib8f16340 into eclair-mr2
Merge commit 'c24c0e9b5f81541af5d3094774eeebb4216655c5' into eclair-mr2-plus-aosp * commit 'c24c0e9b5f81541af5d3094774eeebb4216655c5': Fix ConnectivityManager permissions check.
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