@Override
  public void requestPermissions(Activity activity, String[] permissions, int requestCode) {
    Preconditions.checkArgument(VERSION.SDK_INT < VERSION_CODES.M);
    throw new UnsupportedOperationException("All permissions are already granted");
  }
Permission requestor implementation that automatically grants requests for any permissions.

<p>This should only be used when API level is below 23.
java/com/google/android/apps/authenticator/util/permissions/AutoGrantPermissionRequestor.java