Program: 191100
Project: 191100
Buggy source:
/** 
 * Starts a miscellaneous grab bag of stuff that has yet to be refactored and organized.
 */
private void startOtherServices(){
  final Context context=mSystemContext;
  VibratorService vibrator=null;
  IMountService mountService=null;
  NetworkManagementService networkManagement=null;
  NetworkStatsService networkStats=null;
  NetworkPolicyManagerService networkPolicy=null;
  ConnectivityService connectivity=null;
  NetworkScoreService networkScore=null;
  NsdService serviceDiscovery=null;
  WindowManagerService wm=null;
  SerialService serial=null;
  NetworkTimeUpdateService networkTimeUpdater=null;
  CommonTimeManagementService commonTimeMgmtService=null;
  InputManagerService inputManager=null;
  TelephonyRegistry telephonyRegistry=null;
  ConsumerIrService consumerIr=null;
  MmsServiceBroker mmsService=null;
  HardwarePropertiesManagerService hardwarePropertiesService=null;
  Object wigigP2pService=null;
  Object wigigService=null;
  boolean disableStorage=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableBluetooth=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableLocation=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableSystemUI=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableNonCoreServices=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableNetwork=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableNetworkTime=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableRtt=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableMediaProjection=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableSerial=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableSearchManager=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableTrustManager=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableTextServices=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableSamplingProfiler=SystemProperties.getBoolean("String_Node_Str",false);
  boolean isEmulator=SystemProperties.get("String_Node_Str").equals("String_Node_Str");
  boolean enableWigig=SystemProperties.getBoolean("String_Node_Str",false);
  try {
    Slog.i(TAG,"String_Node_Str");
    SystemConfig.getInstance();
    traceBeginAndSlog("String_Node_Str");
    ServiceManager.addService("String_Node_Str",new SchedulingPolicyService());
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    mSystemServiceManager.startService(TelecomLoaderService.class);
    traceBeginAndSlog("String_Node_Str");
    telephonyRegistry=new TelephonyRegistry(context);
    ServiceManager.addService("String_Node_Str",telephonyRegistry);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    mEntropyMixer=new EntropyMixer(context);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    mContentResolver=context.getContentResolver();
    Slog.i(TAG,"String_Node_Str");
    mSystemServiceManager.startService(CameraService.class);
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(ACCOUNT_SERVICE_CLASS);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(CONTENT_SERVICE_CLASS);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    mActivityManagerService.installSystemProviders();
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    vibrator=new VibratorService(context);
    ServiceManager.addService("String_Node_Str",vibrator);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    consumerIr=new ConsumerIrService(context);
    ServiceManager.addService(Context.CONSUMER_IR_SERVICE,consumerIr);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(AlarmManagerService.class);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    final Watchdog watchdog=Watchdog.getInstance();
    watchdog.init(context,mActivityManagerService);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    inputManager=new InputManagerService(context);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    wm=WindowManagerService.main(context,inputManager,mFactoryTestMode != FactoryTest.FACTORY_TEST_LOW_LEVEL,!mFirstBoot,mOnlyCore);
    ServiceManager.addService(Context.WINDOW_SERVICE,wm);
    ServiceManager.addService(Context.INPUT_SERVICE,inputManager);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(VrManagerService.class);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    mActivityManagerService.setWindowManager(wm);
    inputManager.setWindowManagerCallbacks(wm.getInputMonitor());
    inputManager.start();
    mDisplayManagerService.windowManagerAndInputReady();
    if (isEmulator) {
      Slog.i(TAG,"String_Node_Str");
    }
 else     if (mFactoryTestMode == FactoryTest.FACTORY_TEST_LOW_LEVEL) {
      Slog.i(TAG,"String_Node_Str");
    }
 else     if (!context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) {
      Slog.i(TAG,"String_Node_Str");
    }
 else     if (disableBluetooth) {
      Slog.i(TAG,"String_Node_Str");
    }
 else {
      mSystemServiceManager.startService(BluetoothService.class);
    }
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(MetricsLoggerService.class);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(PinnerService.class);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  }
 catch (  RuntimeException e) {
    Slog.e("String_Node_Str","String_Node_Str");
    Slog.e("String_Node_Str","String_Node_Str",e);
  }
  StatusBarManagerService statusBar=null;
  INotificationManager notification=null;
  LocationManagerService location=null;
  CountryDetectorService countryDetector=null;
  ILockSettings lockSettings=null;
  AssetAtlasService atlas=null;
  MediaRouterService mediaRouter=null;
  if (mFactoryTestMode != FactoryTest.FACTORY_TEST_LOW_LEVEL) {
    mSystemServiceManager.startService(InputMethodManagerService.Lifecycle.class);
    traceBeginAndSlog("String_Node_Str");
    try {
      ServiceManager.addService(Context.ACCESSIBILITY_SERVICE,new AccessibilityManagerService(context));
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  }
  try {
    wm.displayReady();
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  if (mFactoryTestMode != FactoryTest.FACTORY_TEST_LOW_LEVEL) {
    if (!disableStorage && !"String_Node_Str".equals(SystemProperties.get("String_Node_Str"))) {
      try {
        mSystemServiceManager.startService(MOUNT_SERVICE_CLASS);
        mountService=IMountService.Stub.asInterface(ServiceManager.getService("String_Node_Str"));
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
    }
  }
  mSystemServiceManager.startService(UiModeManagerService.class);
  if (!mOnlyCore) {
    Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
    try {
      mPackageManagerService.updatePackagesIfNeeded();
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  }
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  try {
    mPackageManagerService.performFstrimIfNeeded();
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  try {
    ActivityManagerNative.getDefault().showBootMessage(context.getResources().getText(com.android.internal.R.string.android_upgrading_starting_apps),false);
  }
 catch (  RemoteException e) {
  }
  if (mFactoryTestMode != FactoryTest.FACTORY_TEST_LOW_LEVEL) {
    if (!disableNonCoreServices) {
      traceBeginAndSlog("String_Node_Str");
      try {
        mSystemServiceManager.startService(LOCK_SETTINGS_SERVICE_CLASS);
        lockSettings=ILockSettings.Stub.asInterface(ServiceManager.getService("String_Node_Str"));
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      if (!SystemProperties.get(PERSISTENT_DATA_BLOCK_PROP).equals("String_Node_Str")) {
        mSystemServiceManager.startService(PersistentDataBlockService.class);
      }
      mSystemServiceManager.startService(DeviceIdleController.class);
      mSystemServiceManager.startService(DevicePolicyManagerService.Lifecycle.class);
    }
    if (!disableSystemUI) {
      traceBeginAndSlog("String_Node_Str");
      try {
        statusBar=new StatusBarManagerService(context,wm);
        ServiceManager.addService(Context.STATUS_BAR_SERVICE,statusBar);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices) {
      traceBeginAndSlog("String_Node_Str");
      try {
        ServiceManager.addService(Context.CLIPBOARD_SERVICE,new ClipboardService(context));
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNetwork) {
      traceBeginAndSlog("String_Node_Str");
      try {
        networkManagement=NetworkManagementService.create(context);
        ServiceManager.addService(Context.NETWORKMANAGEMENT_SERVICE,networkManagement);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices && !disableTextServices) {
      mSystemServiceManager.startService(TextServicesManagerService.Lifecycle.class);
    }
    if (!disableNetwork) {
      traceBeginAndSlog("String_Node_Str");
      try {
        networkScore=new NetworkScoreService(context);
        ServiceManager.addService(Context.NETWORK_SCORE_SERVICE,networkScore);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      traceBeginAndSlog("String_Node_Str");
      try {
        networkStats=NetworkStatsService.create(context,networkManagement);
        ServiceManager.addService(Context.NETWORK_STATS_SERVICE,networkStats);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      traceBeginAndSlog("String_Node_Str");
      try {
        networkPolicy=new NetworkPolicyManagerService(context,mActivityManagerService,(IPowerManager)ServiceManager.getService(Context.POWER_SERVICE),networkStats,networkManagement);
        ServiceManager.addService(Context.NETWORK_POLICY_SERVICE,networkPolicy);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_NAN)) {
        mSystemServiceManager.startService(WIFI_NAN_SERVICE_CLASS);
      }
 else {
        Slog.i(TAG,"String_Node_Str");
      }
      mSystemServiceManager.startService(WIFI_P2P_SERVICE_CLASS);
      mSystemServiceManager.startService(WIFI_SERVICE_CLASS);
      mSystemServiceManager.startService("String_Node_Str");
      if (!disableRtt) {
        mSystemServiceManager.startService("String_Node_Str");
      }
      if (enableWigig) {
        try {
          Slog.i(TAG,"String_Node_Str");
          PathClassLoader wigigClassLoader=new PathClassLoader("String_Node_Str","String_Node_Str",getClass().getClassLoader());
          Class wigigP2pClass=wigigClassLoader.loadClass("String_Node_Str");
          Constructor<Class> ctor=wigigP2pClass.getConstructor(Context.class);
          wigigP2pService=ctor.newInstance(context);
          Slog.i(TAG,"String_Node_Str");
          ServiceManager.addService("String_Node_Str",(IBinder)wigigP2pService);
          Class wigigClass=wigigClassLoader.loadClass("String_Node_Str");
          ctor=wigigClass.getConstructor(Context.class);
          wigigService=ctor.newInstance(context);
          Slog.i(TAG,"String_Node_Str");
          ServiceManager.addService("String_Node_Str",(IBinder)wigigService);
        }
 catch (        Throwable e) {
          reportWtf("String_Node_Str",e);
        }
      }
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_ETHERNET) || mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST)) {
        mSystemServiceManager.startService(ETHERNET_SERVICE_CLASS);
      }
      traceBeginAndSlog("String_Node_Str");
      try {
        connectivity=new ConnectivityService(context,networkManagement,networkStats,networkPolicy);
        ServiceManager.addService(Context.CONNECTIVITY_SERVICE,connectivity);
        networkStats.bindConnectivityManager(connectivity);
        networkPolicy.bindConnectivityManager(connectivity);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      traceBeginAndSlog("String_Node_Str");
      try {
        serviceDiscovery=NsdService.create(context);
        ServiceManager.addService(Context.NSD_SERVICE,serviceDiscovery);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices) {
      traceBeginAndSlog("String_Node_Str");
      try {
        ServiceManager.addService(Context.UPDATE_LOCK_SERVICE,new UpdateLockService(context));
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices) {
      mSystemServiceManager.startService(RecoverySystemService.class);
    }
    if (mountService != null && !mOnlyCore) {
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        mountService.waitForAsecScan();
      }
 catch (      RemoteException ignored) {
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    mSystemServiceManager.startService(NotificationManagerService.class);
    notification=INotificationManager.Stub.asInterface(ServiceManager.getService(Context.NOTIFICATION_SERVICE));
    networkPolicy.bindNotificationManager(notification);
    mSystemServiceManager.startService(DeviceStorageMonitorService.class);
    if (!disableLocation) {
      traceBeginAndSlog("String_Node_Str");
      try {
        location=new LocationManagerService(context);
        ServiceManager.addService(Context.LOCATION_SERVICE,location);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      traceBeginAndSlog("String_Node_Str");
      try {
        countryDetector=new CountryDetectorService(context);
        ServiceManager.addService(Context.COUNTRY_DETECTOR,countryDetector);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices && !disableSearchManager) {
      traceBeginAndSlog("String_Node_Str");
      try {
        mSystemServiceManager.startService(SEARCH_MANAGER_SERVICE_CLASS);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    mSystemServiceManager.startService(DropBoxManagerService.class);
    if (!disableNonCoreServices && context.getResources().getBoolean(R.bool.config_enableWallpaperService)) {
      traceBeginAndSlog("String_Node_Str");
      mSystemServiceManager.startService(WALLPAPER_SERVICE_CLASS);
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(AudioService.Lifecycle.class);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    if (!disableNonCoreServices) {
      mSystemServiceManager.startService(DockObserver.class);
      if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) {
        mSystemServiceManager.startService(THERMAL_OBSERVER_CLASS);
      }
    }
    traceBeginAndSlog("String_Node_Str");
    try {
      inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context,inputManager));
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    if (!disableNonCoreServices) {
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_MIDI)) {
        mSystemServiceManager.startService(MIDI_SERVICE_CLASS);
      }
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST) || mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_ACCESSORY)) {
        Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
        mSystemServiceManager.startService(USB_SERVICE_CLASS);
        Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      }
      if (!disableSerial) {
        traceBeginAndSlog("String_Node_Str");
        try {
          serial=new SerialService(context);
          ServiceManager.addService(Context.SERIAL_SERVICE,serial);
        }
 catch (        Throwable e) {
          Slog.e(TAG,"String_Node_Str",e);
        }
        Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      }
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        hardwarePropertiesService=new HardwarePropertiesManagerService(context);
        ServiceManager.addService(Context.HARDWARE_PROPERTIES_SERVICE,hardwarePropertiesService);
      }
 catch (      Throwable e) {
        Slog.e(TAG,"String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    mSystemServiceManager.startService(TwilightService.class);
    mSystemServiceManager.startService(JobSchedulerService.class);
    mSystemServiceManager.startService(SoundTriggerService.class);
    if (!disableNonCoreServices) {
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_BACKUP)) {
        mSystemServiceManager.startService(BACKUP_MANAGER_SERVICE_CLASS);
      }
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS) || context.getResources().getBoolean(R.bool.config_enableAppWidgetService)) {
        mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);
      }
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_VOICE_RECOGNIZERS)) {
        mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);
      }
      if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {
        Slog.i(TAG,"String_Node_Str");
        mSystemServiceManager.startService(GestureLauncherService.class);
      }
      mSystemServiceManager.startService(SensorNotificationService.class);
      mSystemServiceManager.startService(ContextHubSystemService.class);
    }
    traceBeginAndSlog("String_Node_Str");
    try {
      ServiceManager.addService("String_Node_Str",new DiskStatsService(context));
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    if (!disableSamplingProfiler) {
      traceBeginAndSlog("String_Node_Str");
      try {
        ServiceManager.addService("String_Node_Str",new SamplingProfilerService(context));
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNetwork && !disableNetworkTime) {
      traceBeginAndSlog("String_Node_Str");
      try {
        networkTimeUpdater=new NetworkTimeUpdateService(context);
        ServiceManager.addService("String_Node_Str",networkTimeUpdater);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    traceBeginAndSlog("String_Node_Str");
    try {
      commonTimeMgmtService=new CommonTimeManagementService(context);
      ServiceManager.addService("String_Node_Str",commonTimeMgmtService);
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    if (!disableNetwork) {
      traceBeginAndSlog("String_Node_Str");
      try {
        CertBlacklister blacklister=new CertBlacklister(context);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices) {
      mSystemServiceManager.startService(DreamManagerService.class);
    }
    if (!disableNonCoreServices && ZygoteInit.PRELOAD_RESOURCES) {
      traceBeginAndSlog("String_Node_Str");
      try {
        atlas=new AssetAtlasService(context);
        ServiceManager.addService(AssetAtlasService.ASSET_ATLAS_SERVICE,atlas);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices) {
      ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE,new GraphicsStatsService(context));
    }
    if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_PRINTING)) {
      mSystemServiceManager.startService(PRINT_MANAGER_SERVICE_CLASS);
    }
    mSystemServiceManager.startService(RestrictionsManagerService.class);
    mSystemServiceManager.startService(MediaSessionService.class);
    if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_HDMI_CEC)) {
      mSystemServiceManager.startService(HdmiControlService.class);
    }
    if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_LIVE_TV)) {
      mSystemServiceManager.startService(TvInputManagerService.class);
    }
    if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_PICTURE_IN_PICTURE)) {
      mSystemServiceManager.startService(MediaResourceMonitorService.class);
    }
    if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)) {
      mSystemServiceManager.startService(TvRemoteService.class);
    }
    if (!disableNonCoreServices) {
      traceBeginAndSlog("String_Node_Str");
      try {
        mediaRouter=new MediaRouterService(context);
        ServiceManager.addService(Context.MEDIA_ROUTER_SERVICE,mediaRouter);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      if (!disableTrustManager) {
        mSystemServiceManager.startService(TrustManagerService.class);
      }
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) {
        mSystemServiceManager.startService(FingerprintService.class);
      }
      traceBeginAndSlog("String_Node_Str");
      try {
        BackgroundDexOptService.schedule(context);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    mSystemServiceManager.startService(ShortcutService.Lifecycle.class);
    mSystemServiceManager.startService(LauncherAppsService.class);
  }
  if (!disableNonCoreServices && !disableMediaProjection) {
    mSystemServiceManager.startService(MediaProjectionManagerService.class);
  }
  if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) {
    mSystemServiceManager.startService(WEAR_BLUETOOTH_SERVICE_CLASS);
  }
  final boolean safeMode=wm.detectSafeMode();
  if (safeMode) {
    mActivityManagerService.enterSafeMode();
    VMRuntime.getRuntime().disableJitCompilation();
  }
 else {
    VMRuntime.getRuntime().startJitCompilation();
  }
  mmsService=mSystemServiceManager.startService(MmsServiceBroker.class);
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  try {
    vibrator.systemReady();
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  if (lockSettings != null) {
    try {
      lockSettings.systemReady();
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);
  mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  if (enableWigig) {
    try {
      Slog.i(TAG,"String_Node_Str");
      Class wigigP2pClass=wigigP2pService.getClass();
      Method m=wigigP2pClass.getMethod("String_Node_Str",int.class);
      m.invoke(wigigP2pService,new Integer(SystemService.PHASE_SYSTEM_SERVICES_READY));
      Class wigigClass=wigigService.getClass();
      m=wigigClass.getMethod("String_Node_Str",int.class);
      m.invoke(wigigService,new Integer(SystemService.PHASE_SYSTEM_SERVICES_READY));
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
  }
  try {
    wm.systemReady();
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  if (safeMode) {
    mActivityManagerService.showSafeModeOverlay();
  }
  Configuration config=wm.computeNewConfiguration();
  DisplayMetrics metrics=new DisplayMetrics();
  WindowManager w=(WindowManager)context.getSystemService(Context.WINDOW_SERVICE);
  w.getDefaultDisplay().getMetrics(metrics);
  context.getResources().updateConfiguration(config,metrics);
  final Theme systemTheme=context.getTheme();
  if (systemTheme.getChangingConfigurations() != 0) {
    systemTheme.rebase();
  }
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  try {
    mPowerManagerService.systemReady(mActivityManagerService.getAppOpsService());
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  try {
    mPackageManagerService.systemReady();
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  try {
    mDisplayManagerService.systemReady(safeMode,mOnlyCore);
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  final NetworkManagementService networkManagementF=networkManagement;
  final NetworkStatsService networkStatsF=networkStats;
  final NetworkPolicyManagerService networkPolicyF=networkPolicy;
  final ConnectivityService connectivityF=connectivity;
  final NetworkScoreService networkScoreF=networkScore;
  final LocationManagerService locationF=location;
  final CountryDetectorService countryDetectorF=countryDetector;
  final NetworkTimeUpdateService networkTimeUpdaterF=networkTimeUpdater;
  final CommonTimeManagementService commonTimeMgmtServiceF=commonTimeMgmtService;
  final AssetAtlasService atlasF=atlas;
  final InputManagerService inputManagerF=inputManager;
  final TelephonyRegistry telephonyRegistryF=telephonyRegistry;
  final MediaRouterService mediaRouterF=mediaRouter;
  final MmsServiceBroker mmsServiceF=mmsService;
  mActivityManagerService.systemReady(new Runnable(){
    @Override public void run(){
      Slog.i(TAG,"String_Node_Str");
      mSystemServiceManager.startBootPhase(SystemService.PHASE_ACTIVITY_MANAGER_READY);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        mActivityManagerService.startObservingNativeCrashes();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      if (!mOnlyCore) {
        Slog.i(TAG,"String_Node_Str");
        Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
        mWebViewUpdateService.prepareWebViewInSystemServer();
        Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      }
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        startSystemUi(context);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        if (networkScoreF != null)         networkScoreF.systemReady();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        if (networkManagementF != null)         networkManagementF.systemReady();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        if (networkStatsF != null)         networkStatsF.systemReady();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        if (networkPolicyF != null)         networkPolicyF.systemReady();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        if (connectivityF != null)         connectivityF.systemReady();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Watchdog.getInstance().start();
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      mSystemServiceManager.startBootPhase(SystemService.PHASE_THIRD_PARTY_APPS_CAN_START);
      try {
        if (locationF != null)         locationF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (countryDetectorF != null)         countryDetectorF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (networkTimeUpdaterF != null)         networkTimeUpdaterF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (commonTimeMgmtServiceF != null) {
          commonTimeMgmtServiceF.systemRunning();
        }
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (atlasF != null)         atlasF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (inputManagerF != null)         inputManagerF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (telephonyRegistryF != null)         telephonyRegistryF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (mediaRouterF != null)         mediaRouterF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (mmsServiceF != null)         mmsServiceF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (networkScoreF != null)         networkScoreF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
  }
);
}

Fixed version (ground truth):
/** 
 * Starts a miscellaneous grab bag of stuff that has yet to be refactored and organized.
 */
private void startOtherServices(){
  final Context context=mSystemContext;
  VibratorService vibrator=null;
  IMountService mountService=null;
  NetworkManagementService networkManagement=null;
  NetworkStatsService networkStats=null;
  NetworkPolicyManagerService networkPolicy=null;
  ConnectivityService connectivity=null;
  NetworkScoreService networkScore=null;
  NsdService serviceDiscovery=null;
  WindowManagerService wm=null;
  SerialService serial=null;
  NetworkTimeUpdateService networkTimeUpdater=null;
  CommonTimeManagementService commonTimeMgmtService=null;
  InputManagerService inputManager=null;
  TelephonyRegistry telephonyRegistry=null;
  ConsumerIrService consumerIr=null;
  MmsServiceBroker mmsService=null;
  HardwarePropertiesManagerService hardwarePropertiesService=null;
  Object wigigP2pService=null;
  Object wigigService=null;
  boolean disableStorage=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableBluetooth=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableLocation=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableSystemUI=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableNonCoreServices=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableNetwork=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableNetworkTime=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableRtt=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableMediaProjection=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableSerial=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableSearchManager=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableTrustManager=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableTextServices=SystemProperties.getBoolean("String_Node_Str",false);
  boolean disableSamplingProfiler=SystemProperties.getBoolean("String_Node_Str",false);
  boolean isEmulator=SystemProperties.get("String_Node_Str").equals("String_Node_Str");
  boolean enableWigig=SystemProperties.getBoolean("String_Node_Str",false);
  try {
    Slog.i(TAG,"String_Node_Str");
    SystemConfig.getInstance();
    traceBeginAndSlog("String_Node_Str");
    ServiceManager.addService("String_Node_Str",new SchedulingPolicyService());
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    mSystemServiceManager.startService(TelecomLoaderService.class);
    traceBeginAndSlog("String_Node_Str");
    telephonyRegistry=new TelephonyRegistry(context);
    ServiceManager.addService("String_Node_Str",telephonyRegistry);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    mEntropyMixer=new EntropyMixer(context);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    mContentResolver=context.getContentResolver();
    Slog.i(TAG,"String_Node_Str");
    mSystemServiceManager.startService(CameraService.class);
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(ACCOUNT_SERVICE_CLASS);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(CONTENT_SERVICE_CLASS);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    mActivityManagerService.installSystemProviders();
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    vibrator=new VibratorService(context);
    ServiceManager.addService("String_Node_Str",vibrator);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    consumerIr=new ConsumerIrService(context);
    ServiceManager.addService(Context.CONSUMER_IR_SERVICE,consumerIr);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(AlarmManagerService.class);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    final Watchdog watchdog=Watchdog.getInstance();
    watchdog.init(context,mActivityManagerService);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    inputManager=new InputManagerService(context);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    wm=WindowManagerService.main(context,inputManager,mFactoryTestMode != FactoryTest.FACTORY_TEST_LOW_LEVEL,!mFirstBoot,mOnlyCore);
    ServiceManager.addService(Context.WINDOW_SERVICE,wm);
    ServiceManager.addService(Context.INPUT_SERVICE,inputManager);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(VrManagerService.class);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    mActivityManagerService.setWindowManager(wm);
    inputManager.setWindowManagerCallbacks(wm.getInputMonitor());
    inputManager.start();
    mDisplayManagerService.windowManagerAndInputReady();
    if (isEmulator) {
      Slog.i(TAG,"String_Node_Str");
    }
 else     if (mFactoryTestMode == FactoryTest.FACTORY_TEST_LOW_LEVEL) {
      Slog.i(TAG,"String_Node_Str");
    }
 else     if (!context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH)) {
      Slog.i(TAG,"String_Node_Str");
    }
 else     if (disableBluetooth) {
      Slog.i(TAG,"String_Node_Str");
    }
 else {
      mSystemServiceManager.startService(BluetoothService.class);
    }
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(MetricsLoggerService.class);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(PinnerService.class);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  }
 catch (  RuntimeException e) {
    Slog.e("String_Node_Str","String_Node_Str");
    Slog.e("String_Node_Str","String_Node_Str",e);
  }
  StatusBarManagerService statusBar=null;
  INotificationManager notification=null;
  LocationManagerService location=null;
  CountryDetectorService countryDetector=null;
  ILockSettings lockSettings=null;
  AssetAtlasService atlas=null;
  MediaRouterService mediaRouter=null;
  if (mFactoryTestMode != FactoryTest.FACTORY_TEST_LOW_LEVEL) {
    mSystemServiceManager.startService(InputMethodManagerService.Lifecycle.class);
    traceBeginAndSlog("String_Node_Str");
    try {
      ServiceManager.addService(Context.ACCESSIBILITY_SERVICE,new AccessibilityManagerService(context));
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  }
  try {
    wm.displayReady();
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  if (mFactoryTestMode != FactoryTest.FACTORY_TEST_LOW_LEVEL) {
    if (!disableStorage && !"String_Node_Str".equals(SystemProperties.get("String_Node_Str"))) {
      try {
        mSystemServiceManager.startService(MOUNT_SERVICE_CLASS);
        mountService=IMountService.Stub.asInterface(ServiceManager.getService("String_Node_Str"));
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
    }
  }
  mSystemServiceManager.startService(UiModeManagerService.class);
  if (!mOnlyCore) {
    Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
    try {
      mPackageManagerService.updatePackagesIfNeeded();
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  }
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  try {
    mPackageManagerService.performFstrimIfNeeded();
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  try {
    ActivityManagerNative.getDefault().showBootMessage(context.getResources().getText(com.android.internal.R.string.android_upgrading_starting_apps),false);
  }
 catch (  RemoteException e) {
  }
  if (mFactoryTestMode != FactoryTest.FACTORY_TEST_LOW_LEVEL) {
    if (!disableNonCoreServices) {
      traceBeginAndSlog("String_Node_Str");
      try {
        mSystemServiceManager.startService(LOCK_SETTINGS_SERVICE_CLASS);
        lockSettings=ILockSettings.Stub.asInterface(ServiceManager.getService("String_Node_Str"));
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      if (!SystemProperties.get(PERSISTENT_DATA_BLOCK_PROP).equals("String_Node_Str")) {
        mSystemServiceManager.startService(PersistentDataBlockService.class);
      }
      mSystemServiceManager.startService(DeviceIdleController.class);
      mSystemServiceManager.startService(DevicePolicyManagerService.Lifecycle.class);
    }
    if (!disableSystemUI) {
      traceBeginAndSlog("String_Node_Str");
      try {
        statusBar=new StatusBarManagerService(context,wm);
        ServiceManager.addService(Context.STATUS_BAR_SERVICE,statusBar);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices) {
      traceBeginAndSlog("String_Node_Str");
      try {
        ServiceManager.addService(Context.CLIPBOARD_SERVICE,new ClipboardService(context));
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNetwork) {
      traceBeginAndSlog("String_Node_Str");
      try {
        networkManagement=NetworkManagementService.create(context);
        ServiceManager.addService(Context.NETWORKMANAGEMENT_SERVICE,networkManagement);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices && !disableTextServices) {
      mSystemServiceManager.startService(TextServicesManagerService.Lifecycle.class);
    }
    if (!disableNetwork) {
      traceBeginAndSlog("String_Node_Str");
      try {
        networkScore=new NetworkScoreService(context);
        ServiceManager.addService(Context.NETWORK_SCORE_SERVICE,networkScore);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      traceBeginAndSlog("String_Node_Str");
      try {
        networkStats=NetworkStatsService.create(context,networkManagement);
        ServiceManager.addService(Context.NETWORK_STATS_SERVICE,networkStats);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      traceBeginAndSlog("String_Node_Str");
      try {
        networkPolicy=new NetworkPolicyManagerService(context,mActivityManagerService,(IPowerManager)ServiceManager.getService(Context.POWER_SERVICE),networkStats,networkManagement);
        ServiceManager.addService(Context.NETWORK_POLICY_SERVICE,networkPolicy);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WIFI_NAN)) {
        mSystemServiceManager.startService(WIFI_NAN_SERVICE_CLASS);
      }
 else {
        Slog.i(TAG,"String_Node_Str");
      }
      mSystemServiceManager.startService(WIFI_P2P_SERVICE_CLASS);
      mSystemServiceManager.startService(WIFI_SERVICE_CLASS);
      mSystemServiceManager.startService("String_Node_Str");
      if (!disableRtt) {
        mSystemServiceManager.startService("String_Node_Str");
      }
      if (enableWigig) {
        try {
          Slog.i(TAG,"String_Node_Str");
          PathClassLoader wigigClassLoader=new PathClassLoader("String_Node_Str","String_Node_Str",getClass().getClassLoader());
          Class wigigP2pClass=wigigClassLoader.loadClass("String_Node_Str");
          Constructor<Class> ctor=wigigP2pClass.getConstructor(Context.class);
          wigigP2pService=ctor.newInstance(context);
          Slog.i(TAG,"String_Node_Str");
          ServiceManager.addService("String_Node_Str",(IBinder)wigigP2pService);
          Class wigigClass=wigigClassLoader.loadClass("String_Node_Str");
          ctor=wigigClass.getConstructor(Context.class);
          wigigService=ctor.newInstance(context);
          Slog.i(TAG,"String_Node_Str");
          ServiceManager.addService("String_Node_Str",(IBinder)wigigService);
        }
 catch (        Throwable e) {
          reportWtf("String_Node_Str",e);
        }
      }
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_ETHERNET) || mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST)) {
        mSystemServiceManager.startService(ETHERNET_SERVICE_CLASS);
      }
      traceBeginAndSlog("String_Node_Str");
      try {
        connectivity=new ConnectivityService(context,networkManagement,networkStats,networkPolicy);
        ServiceManager.addService(Context.CONNECTIVITY_SERVICE,connectivity);
        networkStats.bindConnectivityManager(connectivity);
        networkPolicy.bindConnectivityManager(connectivity);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      traceBeginAndSlog("String_Node_Str");
      try {
        serviceDiscovery=NsdService.create(context);
        ServiceManager.addService(Context.NSD_SERVICE,serviceDiscovery);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices) {
      traceBeginAndSlog("String_Node_Str");
      try {
        ServiceManager.addService(Context.UPDATE_LOCK_SERVICE,new UpdateLockService(context));
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices) {
      mSystemServiceManager.startService(RecoverySystemService.class);
    }
    if (mountService != null && !mOnlyCore) {
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        mountService.waitForAsecScan();
      }
 catch (      RemoteException ignored) {
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    mSystemServiceManager.startService(NotificationManagerService.class);
    notification=INotificationManager.Stub.asInterface(ServiceManager.getService(Context.NOTIFICATION_SERVICE));
    networkPolicy.bindNotificationManager(notification);
    mSystemServiceManager.startService(DeviceStorageMonitorService.class);
    if (!disableLocation) {
      traceBeginAndSlog("String_Node_Str");
      try {
        location=new LocationManagerService(context);
        ServiceManager.addService(Context.LOCATION_SERVICE,location);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      traceBeginAndSlog("String_Node_Str");
      try {
        countryDetector=new CountryDetectorService(context);
        ServiceManager.addService(Context.COUNTRY_DETECTOR,countryDetector);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices && !disableSearchManager) {
      traceBeginAndSlog("String_Node_Str");
      try {
        mSystemServiceManager.startService(SEARCH_MANAGER_SERVICE_CLASS);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    mSystemServiceManager.startService(DropBoxManagerService.class);
    if (!disableNonCoreServices && context.getResources().getBoolean(R.bool.config_enableWallpaperService)) {
      traceBeginAndSlog("String_Node_Str");
      mSystemServiceManager.startService(WALLPAPER_SERVICE_CLASS);
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    traceBeginAndSlog("String_Node_Str");
    mSystemServiceManager.startService(AudioService.Lifecycle.class);
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    if (!disableNonCoreServices) {
      mSystemServiceManager.startService(DockObserver.class);
      if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) {
      }
    }
    traceBeginAndSlog("String_Node_Str");
    try {
      inputManager.setWiredAccessoryCallbacks(new WiredAccessoryManager(context,inputManager));
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    if (!disableNonCoreServices) {
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_MIDI)) {
        mSystemServiceManager.startService(MIDI_SERVICE_CLASS);
      }
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_HOST) || mPackageManager.hasSystemFeature(PackageManager.FEATURE_USB_ACCESSORY)) {
        Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
        mSystemServiceManager.startService(USB_SERVICE_CLASS);
        Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      }
      if (!disableSerial) {
        traceBeginAndSlog("String_Node_Str");
        try {
          serial=new SerialService(context);
          ServiceManager.addService(Context.SERIAL_SERVICE,serial);
        }
 catch (        Throwable e) {
          Slog.e(TAG,"String_Node_Str",e);
        }
        Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      }
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        hardwarePropertiesService=new HardwarePropertiesManagerService(context);
        ServiceManager.addService(Context.HARDWARE_PROPERTIES_SERVICE,hardwarePropertiesService);
      }
 catch (      Throwable e) {
        Slog.e(TAG,"String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    mSystemServiceManager.startService(TwilightService.class);
    mSystemServiceManager.startService(JobSchedulerService.class);
    mSystemServiceManager.startService(SoundTriggerService.class);
    if (!disableNonCoreServices) {
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_BACKUP)) {
        mSystemServiceManager.startService(BACKUP_MANAGER_SERVICE_CLASS);
      }
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_APP_WIDGETS) || context.getResources().getBoolean(R.bool.config_enableAppWidgetService)) {
        mSystemServiceManager.startService(APPWIDGET_SERVICE_CLASS);
      }
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_VOICE_RECOGNIZERS)) {
        mSystemServiceManager.startService(VOICE_RECOGNITION_MANAGER_SERVICE_CLASS);
      }
      if (GestureLauncherService.isGestureLauncherEnabled(context.getResources())) {
        Slog.i(TAG,"String_Node_Str");
        mSystemServiceManager.startService(GestureLauncherService.class);
      }
      mSystemServiceManager.startService(SensorNotificationService.class);
      mSystemServiceManager.startService(ContextHubSystemService.class);
    }
    traceBeginAndSlog("String_Node_Str");
    try {
      ServiceManager.addService("String_Node_Str",new DiskStatsService(context));
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    if (!disableSamplingProfiler) {
      traceBeginAndSlog("String_Node_Str");
      try {
        ServiceManager.addService("String_Node_Str",new SamplingProfilerService(context));
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNetwork && !disableNetworkTime) {
      traceBeginAndSlog("String_Node_Str");
      try {
        networkTimeUpdater=new NetworkTimeUpdateService(context);
        ServiceManager.addService("String_Node_Str",networkTimeUpdater);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    traceBeginAndSlog("String_Node_Str");
    try {
      commonTimeMgmtService=new CommonTimeManagementService(context);
      ServiceManager.addService("String_Node_Str",commonTimeMgmtService);
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    if (!disableNetwork) {
      traceBeginAndSlog("String_Node_Str");
      try {
        CertBlacklister blacklister=new CertBlacklister(context);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices) {
      mSystemServiceManager.startService(DreamManagerService.class);
    }
    if (!disableNonCoreServices && ZygoteInit.PRELOAD_RESOURCES) {
      traceBeginAndSlog("String_Node_Str");
      try {
        atlas=new AssetAtlasService(context);
        ServiceManager.addService(AssetAtlasService.ASSET_ATLAS_SERVICE,atlas);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    if (!disableNonCoreServices) {
      ServiceManager.addService(GraphicsStatsService.GRAPHICS_STATS_SERVICE,new GraphicsStatsService(context));
    }
    if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_PRINTING)) {
      mSystemServiceManager.startService(PRINT_MANAGER_SERVICE_CLASS);
    }
    mSystemServiceManager.startService(RestrictionsManagerService.class);
    mSystemServiceManager.startService(MediaSessionService.class);
    if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_HDMI_CEC)) {
      mSystemServiceManager.startService(HdmiControlService.class);
    }
    if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_LIVE_TV)) {
      mSystemServiceManager.startService(TvInputManagerService.class);
    }
    if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_PICTURE_IN_PICTURE)) {
      mSystemServiceManager.startService(MediaResourceMonitorService.class);
    }
    if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)) {
      mSystemServiceManager.startService(TvRemoteService.class);
    }
    if (!disableNonCoreServices) {
      traceBeginAndSlog("String_Node_Str");
      try {
        mediaRouter=new MediaRouterService(context);
        ServiceManager.addService(Context.MEDIA_ROUTER_SERVICE,mediaRouter);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      if (!disableTrustManager) {
        mSystemServiceManager.startService(TrustManagerService.class);
      }
      if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_FINGERPRINT)) {
        mSystemServiceManager.startService(FingerprintService.class);
      }
      traceBeginAndSlog("String_Node_Str");
      try {
        BackgroundDexOptService.schedule(context);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
    mSystemServiceManager.startService(ShortcutService.Lifecycle.class);
    mSystemServiceManager.startService(LauncherAppsService.class);
  }
  if (!disableNonCoreServices && !disableMediaProjection) {
    mSystemServiceManager.startService(MediaProjectionManagerService.class);
  }
  if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_WATCH)) {
  }
  final boolean safeMode=wm.detectSafeMode();
  if (safeMode) {
    mActivityManagerService.enterSafeMode();
    VMRuntime.getRuntime().disableJitCompilation();
  }
 else {
    VMRuntime.getRuntime().startJitCompilation();
  }
  mmsService=mSystemServiceManager.startService(MmsServiceBroker.class);
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  try {
    vibrator.systemReady();
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  if (lockSettings != null) {
    try {
      lockSettings.systemReady();
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  mSystemServiceManager.startBootPhase(SystemService.PHASE_LOCK_SETTINGS_READY);
  mSystemServiceManager.startBootPhase(SystemService.PHASE_SYSTEM_SERVICES_READY);
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  if (enableWigig) {
    try {
      Slog.i(TAG,"String_Node_Str");
      Class wigigP2pClass=wigigP2pService.getClass();
      Method m=wigigP2pClass.getMethod("String_Node_Str",int.class);
      m.invoke(wigigP2pService,new Integer(SystemService.PHASE_SYSTEM_SERVICES_READY));
      Class wigigClass=wigigService.getClass();
      m=wigigClass.getMethod("String_Node_Str",int.class);
      m.invoke(wigigService,new Integer(SystemService.PHASE_SYSTEM_SERVICES_READY));
    }
 catch (    Throwable e) {
      reportWtf("String_Node_Str",e);
    }
  }
  try {
    wm.systemReady();
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  if (safeMode) {
    mActivityManagerService.showSafeModeOverlay();
  }
  Configuration config=wm.computeNewConfiguration();
  DisplayMetrics metrics=new DisplayMetrics();
  WindowManager w=(WindowManager)context.getSystemService(Context.WINDOW_SERVICE);
  w.getDefaultDisplay().getMetrics(metrics);
  context.getResources().updateConfiguration(config,metrics);
  final Theme systemTheme=context.getTheme();
  if (systemTheme.getChangingConfigurations() != 0) {
    systemTheme.rebase();
  }
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  try {
    mPowerManagerService.systemReady(mActivityManagerService.getAppOpsService());
    Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  try {
    mPackageManagerService.systemReady();
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
  try {
    mDisplayManagerService.systemReady(safeMode,mOnlyCore);
  }
 catch (  Throwable e) {
    reportWtf("String_Node_Str",e);
  }
  Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
  final NetworkManagementService networkManagementF=networkManagement;
  final NetworkStatsService networkStatsF=networkStats;
  final NetworkPolicyManagerService networkPolicyF=networkPolicy;
  final ConnectivityService connectivityF=connectivity;
  final NetworkScoreService networkScoreF=networkScore;
  final LocationManagerService locationF=location;
  final CountryDetectorService countryDetectorF=countryDetector;
  final NetworkTimeUpdateService networkTimeUpdaterF=networkTimeUpdater;
  final CommonTimeManagementService commonTimeMgmtServiceF=commonTimeMgmtService;
  final AssetAtlasService atlasF=atlas;
  final InputManagerService inputManagerF=inputManager;
  final TelephonyRegistry telephonyRegistryF=telephonyRegistry;
  final MediaRouterService mediaRouterF=mediaRouter;
  final MmsServiceBroker mmsServiceF=mmsService;
  mActivityManagerService.systemReady(new Runnable(){
    @Override public void run(){
      Slog.i(TAG,"String_Node_Str");
      mSystemServiceManager.startBootPhase(SystemService.PHASE_ACTIVITY_MANAGER_READY);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        mActivityManagerService.startObservingNativeCrashes();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      if (!mOnlyCore) {
        Slog.i(TAG,"String_Node_Str");
        Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
        mWebViewUpdateService.prepareWebViewInSystemServer();
        Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      }
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        startSystemUi(context);
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        if (networkScoreF != null)         networkScoreF.systemReady();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        if (networkManagementF != null)         networkManagementF.systemReady();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        if (networkStatsF != null)         networkStatsF.systemReady();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        if (networkPolicyF != null)         networkPolicyF.systemReady();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      try {
        if (connectivityF != null)         connectivityF.systemReady();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Watchdog.getInstance().start();
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
      Trace.traceBegin(Trace.TRACE_TAG_SYSTEM_SERVER,"String_Node_Str");
      mSystemServiceManager.startBootPhase(SystemService.PHASE_THIRD_PARTY_APPS_CAN_START);
      try {
        if (locationF != null)         locationF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (countryDetectorF != null)         countryDetectorF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (networkTimeUpdaterF != null)         networkTimeUpdaterF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (commonTimeMgmtServiceF != null) {
          commonTimeMgmtServiceF.systemRunning();
        }
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (atlasF != null)         atlasF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (inputManagerF != null)         inputManagerF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (telephonyRegistryF != null)         telephonyRegistryF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (mediaRouterF != null)         mediaRouterF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (mmsServiceF != null)         mmsServiceF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      try {
        if (networkScoreF != null)         networkScoreF.systemRunning();
      }
 catch (      Throwable e) {
        reportWtf("String_Node_Str",e);
      }
      Trace.traceEnd(Trace.TRACE_TAG_SYSTEM_SERVER);
    }
  }
);
}