code: function injectOptions(manifestData, pluginPreferences) {
    var changedManifest = manifestData;
    var activitiesList = changedManifest['manifest']['application'][0]['activity'];
    var launchActivityIndex = getMainLaunchActivityIndex(activitiesList);
    var ulIntentFilters = [];
    var launchActivity;
  
    if (launchActivityIndex < 0) {
      console.warn('Could not find launch activity in the AndroidManifest file. Can\'t inject Universal Links preferences.');
      return;
    }
  
    // get launch activity
    launchActivity = activitiesList[launchActivityIndex];
  
    // generate intent-filters
    pluginPreferences.hosts.forEach(function(host) {
      host.paths.forEach(function(hostPath) {
        ulIntentFilters.push(createIntentFilter(host.name, host.scheme, hostPath));
      });
    });
  
    // add Universal Links intent-filters to the launch activity
    launchActivity['intent-filter'] = launchActivity['intent-filter'].concat(ulIntentFilters);
  
    return changedManifest;
  }
docs: region Methods to inject preferences into AndroidManifest.xml file 
  Inject options into manifest file.
  
  @param {Object} manifestData - manifest content where preferences should be injected
  @param {Object} pluginPreferences - plugin preferences from config.xml; already parsed
  @return {Object} updated manifest data with corresponding intent-filters