title: How to get Android Contact details without READ_CONTACTS permission
body: <p>According to the official docs at <a href="https://developer.android.com/guide/components/intents-common#Contacts" rel="noreferrer">https://developer.android.com/guide/components/intents-common#Contacts</a></p>
  
  <p>You can use a pick intent </p>
  
  <pre><code>public void selectContact() {
  Intent intent = new Intent(Intent.ACTION_PICK);
  intent.setType(ContactsContract.Contacts.CONTENT_TYPE);
  if (intent.resolveActivity(getPackageManager()) != null) {
      startActivityForResult(intent, REQUEST_SELECT_CONTACT);
  }
  </code></pre>
  
  <p>}</p>
  
  <blockquote>
    <p>For information about how to retrieve contact details once you have the contact URI, read Retrieving Details for a Contact. Remember, when you retrieve the contact URI with the above intent, you <strong>do not</strong> need the READ_CONTACTS permission to read details for that contact.</p>
  </blockquote>
  
  <p>It points to <a href="https://developer.android.com/training/contacts-provider/retrieve-details" rel="noreferrer">https://developer.android.com/training/contacts-provider/retrieve-details</a> for getting the details for the contact</p>
  
  <p>When I follow the instructions in the link above I get </p>
  
  <pre><code>Caused by: java.lang.SecurityException: Permission Denial: reading com.android.providers.contacts.ContactsProvider2 uri content://com.android.contacts/data from pid=5313, uid=10087 requires android.permission.READ_CONTACTS, or grantUriPermission()
  </code></pre>
  
  <p>I've tried to get the Contact details via </p>
  
  <ul>
  <li>Loader (as in the link instructions)</li>
  <li>getContentResolver().query()</li>
  <li>tried both with lookupKey and getting the contact id</li>
  </ul>
  
  <p>Every way gives the requires android.permission.READ_CONTACTS Exception.
  Is there an example of this that works the way the documentation says?</p>
  
  <p>Minimal, Complete, and Verifiable example at</p>
  
  <p><a href="https://github.com/aaronvargas/ContactsSSCCE" rel="noreferrer">https://github.com/aaronvargas/ContactsSSCCE</a></p>
  
  <p>To test both with and without READ_CONTACTS, you'll have to change it in System App Settings</p>
  
  <p>-<strong>Edit</strong></p>
  
  <p>Created issue on Android Issue Tracker at <a href="https://issuetracker.google.com/issues/118400813" rel="noreferrer">https://issuetracker.google.com/issues/118400813</a></p>