title: ContactsContract.Data.IS_READ_ONLY returns negative value -1
body: <blockquote>
  <p><strong><a href="https://developer.android.com/reference/android/provider/ContactsContract.DataColumns.html#IS_READ_ONLY" rel="nofollow noreferrer">IS_READ_ONLY</a></strong></p>
  <p>flag: &quot;0&quot; by default, &quot;1&quot; if the row cannot be modified or deleted
  except by a sync adapter. See CALLER_IS_SYNCADAPTER. Type: INTEGER
  Constant Value: &quot;is_read_only&quot;</p>
  </blockquote>
  <p>When I have apply the above in my code, I am getting <strong>-1</strong> as the output for all the contacts. I am using <code>IS_READ_ONLY</code> to identify the read only contacts synced in WhatsApp, PayTM, Duo, etc.</p>
  <pre><code>Cursor curContacts = cr.query(ContactsContract.Contacts.CONTENT_URI, null,  null, null, null);
          if (curContacts != null) {
              while (curContacts.moveToNext()) {
                  int contactsReadOnly = curContacts.getColumnIndex(ContactsContract.Data.IS_READ_ONLY);
                  Log.d(Config.TAG, String.valueOf(contactsReadOnly));
              }
          }
  </code></pre>
  <p><strong>OutPut</strong></p>
  <pre><code>-1
  -1
  -1
  </code></pre>
  <p>Have also tried the below line instead of <code>Data.IS_READ_ONLY</code>, but the output is same.</p>
  <pre><code>int contactsReadOnly = curContacts.getColumnIndex(ContactsContract.RawContacts.RAW_CONTACT_IS_READ_ONLY);
  </code></pre>