Return error upon attempt to use non-existent APN
startUsingNetworkFeature will ignore errors from reconnect - causing ConnectivityService to send faulty information back to requester. Change-Id: I4e0fcc1addd84da409cdc1eed1a95d25d925e020
This commit is contained in:
committed by
Zoran Jovanovic
parent
dc456a66da
commit
c6534b5030
@@ -1183,8 +1183,11 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||||||
log("startUsingNetworkFeature reconnecting to " + networkType + ": " +
|
log("startUsingNetworkFeature reconnecting to " + networkType + ": " +
|
||||||
feature);
|
feature);
|
||||||
}
|
}
|
||||||
network.reconnect();
|
if (network.reconnect()) {
|
||||||
return PhoneConstants.APN_REQUEST_STARTED;
|
return PhoneConstants.APN_REQUEST_STARTED;
|
||||||
|
} else {
|
||||||
|
return PhoneConstants.APN_REQUEST_FAILED;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// need to remember this unsupported request so we respond appropriately on stop
|
// need to remember this unsupported request so we respond appropriately on stop
|
||||||
synchronized(this) {
|
synchronized(this) {
|
||||||
|
|||||||
Reference in New Issue
Block a user