From 5577300386d49242947182e7aed62aad7f757f5f Mon Sep 17 00:00:00 2001 From: Makoto Onuki Date: Thu, 20 Feb 2020 10:09:08 -0800 Subject: [PATCH] Temporarily fix for the "telecom" command Bug: 148897549 Test: m telecom && adb sync && adb shell telecom set-sim-count 0 Change-Id: I0951aa78dd3a4cc45d0a849baf9bcac1b31ef339 --- cmds/telecom/src/com/android/commands/telecom/Telecom.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmds/telecom/src/com/android/commands/telecom/Telecom.java b/cmds/telecom/src/com/android/commands/telecom/Telecom.java index 97074050448e5..fe270a480d83f 100644 --- a/cmds/telecom/src/com/android/commands/telecom/Telecom.java +++ b/cmds/telecom/src/com/android/commands/telecom/Telecom.java @@ -46,6 +46,10 @@ public final class Telecom extends BaseCommand { * @param args The command-line arguments */ public static void main(String[] args) { + // Initialize the telephony module. + // TODO: Do it in zygote and RuntimeInit. b/148897549 + ActivityThread.initializeMainlineModules(); + (new Telecom()).run(args); }