Merge "Better log in createNativeNetwork" am: 37dec89b65 am: 4728eb0924
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1704925 Change-Id: If8c106b8d0f2f71e47942a151de49daf1b65b852
This commit is contained in:
@@ -3812,7 +3812,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
final NativeNetworkConfig config;
|
final NativeNetworkConfig config;
|
||||||
if (nai.isVPN()) {
|
if (nai.isVPN()) {
|
||||||
if (getVpnType(nai) == VpnManager.TYPE_VPN_NONE) {
|
if (getVpnType(nai) == VpnManager.TYPE_VPN_NONE) {
|
||||||
Log.wtf(TAG, "Unable to get VPN type from network " + nai.network.getNetId());
|
Log.wtf(TAG, "Unable to get VPN type from network " + nai.toShortString());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
config = new NativeNetworkConfig(nai.network.getNetId(), NativeNetworkType.VIRTUAL,
|
config = new NativeNetworkConfig(nai.network.getNetId(), NativeNetworkType.VIRTUAL,
|
||||||
@@ -3830,7 +3830,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
nai.networkCapabilities.getTransportTypes());
|
nai.networkCapabilities.getTransportTypes());
|
||||||
return true;
|
return true;
|
||||||
} catch (RemoteException | ServiceSpecificException e) {
|
} catch (RemoteException | ServiceSpecificException e) {
|
||||||
loge("Error creating network " + nai.network.getNetId() + ": " + e.getMessage());
|
loge("Error creating network " + nai.toShortString() + ": " + e.getMessage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user