diff options
| -rw-r--r-- | services/core/java/com/android/server/connectivity/Tethering.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/connectivity/Tethering.java b/services/core/java/com/android/server/connectivity/Tethering.java index f106b75..9ead529 100644 --- a/services/core/java/com/android/server/connectivity/Tethering.java +++ b/services/core/java/com/android/server/connectivity/Tethering.java @@ -41,6 +41,7 @@ import android.os.Binder; import android.os.INetworkManagementService; import android.os.Looper; import android.os.Message; +import android.os.SystemProperties; import android.os.UserHandle; import android.os.SystemProperties; import android.telephony.TelephonyManager; @@ -872,6 +873,10 @@ public class Tethering extends BaseNetworkObserver { if (tm != null) { secureSetting = tm.getTetherApnRequired(); } + // Allow override of TETHER_DUN_REQUIRED via prop + int prop = SystemProperties.getInt("persist.sys.dun.override", -1); + secureSetting = ((prop < 3) && (prop >= 0)) ? prop : secureSetting; + synchronized (mPublicSync) { // 2 = not set, 0 = DUN not required, 1 = DUN required if (secureSetting != 2) { |
