From c0673e9cbf1d4301feac8be394389b38a05be27a Mon Sep 17 00:00:00 2001 From: Jordan Liu Date: Fri, 24 Jan 2020 14:29:20 -0800 Subject: [PATCH] Update test to not assume 2 max SIMs Bug: 145710242 Test: passes existing tests Change-Id: I6546acb58a25d161634986348e7122e12c2b7c04 --- .../telecom/src/com/android/commands/telecom/Telecom.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cmds/telecom/src/com/android/commands/telecom/Telecom.java b/cmds/telecom/src/com/android/commands/telecom/Telecom.java index 1987440106f53..97074050448e5 100644 --- a/cmds/telecom/src/com/android/commands/telecom/Telecom.java +++ b/cmds/telecom/src/com/android/commands/telecom/Telecom.java @@ -366,12 +366,8 @@ public final class Telecom extends BaseCommand { } private void runGetMaxPhones() throws RemoteException { - // This assumes the max number of SIMs is 2, which it currently is - if (TelephonyManager.MULTISIM_ALLOWED == mTelephonyManager.isMultiSimSupported()) { - System.out.println("2"); - } else { - System.out.println("1"); - } + // how many logical modems can be potentially active simultaneously + System.out.println(mTelephonyManager.getSupportedModemCount()); } private void runSetEmergencyPhoneAccountPackageFilter() throws RemoteException {