Merge "Prefer default Internet network for upstream tethering." into pi-dev
am: 1e1635a45e Change-Id: I9cddf1fb7aa3b8d56bf048c563556244e74808c2
This commit is contained in:
@@ -898,6 +898,10 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
public boolean isTetheringSupported() {
|
||||
return ConnectivityService.this.isTetheringSupported();
|
||||
}
|
||||
@Override
|
||||
public NetworkRequest getDefaultNetworkRequest() {
|
||||
return mDefaultRequest;
|
||||
}
|
||||
};
|
||||
return new Tethering(mContext, mNetd, mStatsService, mPolicyManager,
|
||||
IoThread.get().getLooper(), new MockableSystemProperties(),
|
||||
@@ -915,7 +919,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
|
||||
private NetworkRequest createDefaultInternetRequestForTransport(
|
||||
int transportType, NetworkRequest.Type type) {
|
||||
NetworkCapabilities netCap = new NetworkCapabilities();
|
||||
final NetworkCapabilities netCap = new NetworkCapabilities();
|
||||
netCap.addCapability(NET_CAPABILITY_INTERNET);
|
||||
netCap.addCapability(NET_CAPABILITY_NOT_RESTRICTED);
|
||||
if (transportType > -1) {
|
||||
|
||||
Reference in New Issue
Block a user