Merge "emulator: disable setting NR as network type"

This commit is contained in:
Bo Hu
2021-08-26 16:53:09 +00:00
committed by Gerrit Code Review

View File

@@ -86,8 +86,11 @@ public class DefaultActivity extends Activity {
// Disable offload wifi tethering // Disable offload wifi tethering
Settings.Global.putInt(getContentResolver(), Settings.Global.TETHER_OFFLOAD_DISABLED, 1); Settings.Global.putInt(getContentResolver(), Settings.Global.TETHER_OFFLOAD_DISABLED, 1);
TelephonyManager mTelephony = getApplicationContext().getSystemService(TelephonyManager.class); // b/193418404
mTelephony.setPreferredNetworkTypeBitmask(TelephonyManager.NETWORK_TYPE_BITMASK_NR); // 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);
} }
// remove this activity from the package manager. // remove this activity from the package manager.