File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
services/java/com/android/server Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2450,6 +2450,12 @@ public boolean isTetheringSupported() {
24502450 int defaultVal = (SystemProperties .get ("ro.tether.denied" ).equals ("true" ) ? 0 : 1 );
24512451 boolean tetherEnabledInSettings = (Settings .Secure .getInt (mContext .getContentResolver (),
24522452 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+ }
24532459 return tetherEnabledInSettings && mTetheringConfigValid ;
24542460 }
24552461
You can’t perform that action at this time.
0 commit comments