hooks/lib/android/manifestWriter.js
function removeIntentFiltersFromActivity(activity) {
  var oldIntentFilters = activity['intent-filter'];
  var newIntentFilters = [];

  if (oldIntentFilters == null || oldIntentFilters.length == 0) {
    return;
  }

  oldIntentFilters.forEach(function(intentFilter) {
    if (!isIntentFilterForUniversalLinks(intentFilter)) {
      newIntentFilters.push(intentFilter);
    }
  });

  activity['intent-filter'] = newIntentFilters;
}
function removeIntentFiltersFromActivity(activity) {
  var oldIntentFilters = activity['intent-filter'];
  var newIntentFilters = [];

  if (oldIntentFilters == null || oldIntentFilters.length == 0) {
    return;
  }

  oldIntentFilters.forEach(function(intentFilter) {
    if (!isIntentFilterForUniversalLinks(intentFilter)) {
      newIntentFilters.push(intentFilter);
    }
  });

  activity['intent-filter'] = newIntentFilters;
}
function removeIntentFiltersFromActivity ( activity ) { var oldIntentFilters = activity [ 'intent-filter' ] ; var newIntentFilters = [ ] ; if ( oldIntentFilters == null || oldIntentFilters . length == 0 ) { return ; } oldIntentFilters . forEach ( function ( intentFilter ) { if ( ! isIntentFilterForUniversalLinks ( intentFilter ) ) { newIntentFilters . push ( intentFilter ) ; } } ) ; activity [ 'intent-filter' ] = newIntentFilters ; }
Remove old intent filters from the given activity.

@param {Object} activity - activity, from which we need to remove intent-filters.
Changes applied to the passed object.
Remove old intent filters from the given activity .