Merge "emulator: disable setting NR as network type"
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user