We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 28b3fd1 + 4efe58d commit 81433a3Copy full SHA for 81433a3
1 file changed
services/java/com/android/server/ConnectivityService.java
@@ -2450,6 +2450,12 @@ public boolean isTetheringSupported() {
2450
int defaultVal = (SystemProperties.get("ro.tether.denied").equals("true") ? 0 : 1);
2451
boolean tetherEnabledInSettings = (Settings.Secure.getInt(mContext.getContentResolver(),
2452
Settings.Secure.TETHER_SUPPORTED, defaultVal) != 0);
2453
+ // Short term disabling of Tethering if DUN is required.
2454
+ // TODO - fix multi-connection tethering using policy-base routing
2455
+ int[] upstreamConnTypes = mTethering.getUpstreamIfaceTypes();
2456
+ for (int i : upstreamConnTypes) {
2457
+ if (i == ConnectivityManager.TYPE_MOBILE_DUN) return false;
2458
+ }
2459
return tetherEnabledInSettings && mTetheringConfigValid;
2460
}
2461
0 commit comments