code: public static void setAllowSmallerIntervalsForMarshmallow(boolean allowSmallerIntervals) {
          if (allowSmallerIntervals && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
              throw new IllegalStateException("This method is only allowed to call on Android M or earlier");
          }
          JobConfig.allowSmallerIntervals = allowSmallerIntervals;
      }
docs: Option to override the minimum period and minimum flex for periodic jobs. This is useful for testing
  purposes. This method only works for Android M and earlier. Later versions throw an exception.
  
  @param allowSmallerIntervals Whether a smaller interval and flex than the minimum values are allowed
  for periodic jobs are allowed. The default value is {@code false}.