Skip to content

Why are these RawContact deletions failing? #224

Answered by vestrel00
yuanhoujun asked this question in Q&A
Discussion options

You must be logged in to vote

@yuanhoujun, based on the logs. I see that the RawContact you are attempting to delete is NOT getting deleted! It is also not even being marked for deletion. I think I know what's going on here.

I noticed that the RawContact you are trying to delete belongs to a com.xiaomi account. I think that this is a read-only RawContact; https://developer.android.com/reference/android/provider/ContactsContract.RawContactsColumns#RAW_CONTACT_IS_READ_ONLY

I was going to ask you to log the value of ContactsContract.RawContacts.RAW_CONTACT_IS_READ_ONLY in the RawContacts table but the query keeps throwing an exception when adding that column 😬

If it is read-only, then we might not be able to delete it a…

Replies: 19 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vestrel00
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@yuanhoujun
Comment options

@vestrel00
Comment options

@vestrel00
Comment options

Comment options

You must be logged in to vote
2 replies
@vestrel00
Comment options

@vestrel00
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #219 on June 14, 2022 20:24.