title: Android sdk23 find places to update and request permission
body: <p>May be I am missing something, but is there a way to quickly know all the places I have to update with the new permission checks needed for Android apps using sdk23? </p>
  
  <p>As a developer this change is very frustrating considering the multiple places that need to be updated. I would like to make sure I don't forget/miss any of them.</p>
  
  <p>I am talking about finding where it will be needed to use these two functions before using the permissions qualified as 'Dangerous'</p>
  
  <pre><code>ContextCompat.checkSelfPermission()
  ActivityCompat.requestPermissions()
  </code></pre>
  
  <p><a href="https://developer.android.com/training/permissions/requesting.html" rel="nofollow noreferrer">https://developer.android.com/training/permissions/requesting.html</a></p>
  
  <p>Dangerous permissions
  <a href="https://developer.android.com/guide/topics/security/permissions.html#normal-dangerous" rel="nofollow noreferrer">https://developer.android.com/guide/topics/security/permissions.html#normal-dangerous</a></p>
  
  <p><strong>EDIT</strong> </p>
  
  <p>In some cases the code throws SecurityException like when trying to use <strong>location</strong> without the granted permission. But in other cases it just returns null like here</p>
  
  <pre><code>AccountManager.get(context).getAccountsByType("com.google")
  </code></pre>