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