@Override
  @TargetApi(23)
  public void requestPermissions(Activity activity, String[] permissions, int requestCode) {
    Preconditions.checkArgument(VERSION.SDK_INT >= VERSION_CODES.M);
    ActivityCompat.requestPermissions(activity, permissions, requestCode);
  }
Runtime permission requestor implementation for Android M and above.
java/com/google/android/apps/authenticator/util/permissions/RuntimePermissionRequestor.java