title: Checking Android version when requesting runtime permission
body: <p>I have recently updated the code for an Android app to request permissions on Android 6.0+.
  However, I am now facing a dilemma on how I want to check for permissions.</p>
  
  <p>I saw people online checking the OS version before checking for permissions, because versions before 23, permissions are unnecessary to check due to them being granted on installation.</p>
  
  <p>Right now my checks look like this,</p>
  
  <pre><code>if(checkPermissions()){
      doThings();
  } else {
      requestPermissions();
  }
  </code></pre>
  
  <p>but should I take the effort to add this?</p>
  
  <pre><code>if (Build.VERSION.SDK_INT &gt;= 23) {
      if(checkPermissions()){
          doThings();
      } else {
          requestPermissions();
      }
  } else {
      doThings();
  }
  </code></pre>
  
  <p>I don't see the point of adding the latter to the code as from my understanding, older versions of android could run into the first sample code just fine.</p>
  
  <p>All this brings me to ask, is there a benefit to checking Android version in this case?</p>