summaryrefslogtreecommitdiff
path: root/cmds/telecom/src
diff options
context:
space:
mode:
authorJordan Liu <jminjie@google.com>2020-01-24 14:29:20 -0800
committerJordan Liu <jminjie@google.com>2020-01-27 17:30:51 +0000
commitc0673e9cbf1d4301feac8be394389b38a05be27a (patch)
tree5aa7669b1eb4edea27c841ee2a766ebafaab4d59 /cmds/telecom/src
parent0ab00030a2ec3ffb848153718360aced093df29c (diff)
Update test to not assume 2 max SIMs
Bug: 145710242 Test: passes existing tests Change-Id: I6546acb58a25d161634986348e7122e12c2b7c04
Diffstat (limited to 'cmds/telecom/src')
-rw-r--r--cmds/telecom/src/com/android/commands/telecom/Telecom.java8
1 files 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 1987440106f5..97074050448e 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 {