emulator: disable setting NR as network type am: fe83c41c1d

Original change: https://googleplex-android-review.googlesource.com/c/platform/development/+/15669110

Change-Id: Ib5404e0872e75c11da80b59b43fe249841c51e1f
This commit is contained in:
bohu
2021-08-25 01:08:40 +00:00
committed by Automerger Merge Worker

View File

@@ -87,6 +87,10 @@ public class DefaultActivity extends Activity {
// Disable offload wifi tethering
Settings.Global.putInt(getContentResolver(), Settings.Global.TETHER_OFFLOAD_DISABLED, 1);
// b/193418404
// the following blocks, TODO: find out why and fix it. disable this for now.
// TelephonyManager mTelephony = getApplicationContext().getSystemService(TelephonyManager.class);
// mTelephony.setPreferredNetworkTypeBitmask(TelephonyManager.NETWORK_TYPE_BITMASK_NR);
TelephonyManager mTelephony = getApplicationContext().getSystemService(TelephonyManager.class);
mTelephony.setPreferredNetworkTypeBitmask(TelephonyManager.NETWORK_TYPE_BITMASK_NR);
if ("freeform".equals(displaySettingsName)) {