code: function runAndroid(argv: Array<string>, ctx: ConfigT, args: Object) {
    if (!checkAndroid(args.root)) {
      logger.error(
        'Android project not found. Are you sure this is a React Native project?',
      );
      return;
    }
  
    if (!args.packager) {
      return buildAndRun(args);
    }
  
    return isPackagerRunning(args.port).then(result => {
      if (result === 'running') {
        logger.info('JS server already running.');
      } else if (result === 'unrecognized') {
        logger.warn('JS server not recognized, continuing with build...');
      } else {
        // result == 'not_running'
        logger.info('Starting JS server...');
        startServerInNewWindow(args.port, args.terminal, ctx.reactNativePath);
      }
      return buildAndRun(args);
    });
  }
docs: Starts the app on a connected Android emulator or device.