code: @Nullable
    public ActivityInfo removeActivity(ComponentName componentName) {
      return removeComponent(
          componentName, activityFilters, p -> p.activities, (p, a) -> p.activities = a);
    }
docs: Removes activity from the package manager.
  
  @return the removed component or {@code null} if no such component existed.