Unblock Contact Android ~upd~ -

return rowsDeleted;

// 4. Request carrier sync (for RCS/VoLTE carriers) val cm = context.getSystemService(CarrierMessagingService::class.java) cm?.notifyBlockedNumbersChanged(subId, listOf(normalized), false) // false = unblock unblock contact android

// 6. Force a contacts provider sync val cr = context.contentResolver cr.update(ContactsContract.RawContacts.CONTENT_URI, ContentValues().apply put("contact_blocked", 0) , "phone_number = ?", arrayOf(normalized)) Unblocking a contact on Android is a distributed transaction problem, not a simple state change. The complexity arises from the fragmentation between telephony, SMS, contacts, and carrier systems. As of Android 15, the platform is moving toward a unified BlockedNumberService API that promises eventual consistency within 500ms. However, for older devices (Android 12 and below), a full unblock is only guaranteed after a device reboot or a carrier network cache timeout — a fact rarely documented in user-facing help articles. return rowsDeleted; // 4

| Storage Location | URI / Path | Purpose | | :--- | :--- | :--- | | | content://com.android.blockednumber/blocked | Primary source of truth for telephony. | | Contacts DB | data/data/com.android.providers.contacts/databases/contacts.db (Table: raw_contacts ) | Marks STARRED (0) and CUSTOM_RINGTONE (null) but also flags CONTACT_STATUS for blocked. | | Call Log | content://call_log/calls | Adds CALL_BLOCK_REASON column (Value: 1 for user block). | | SMS Provider | content://sms/blocked | Isolated blocking for Messaging app. | | Storage Location | URI / Path |

Look at carrier_blocked_timestamp in call_log . If this timestamp is after the user's unblock action, the carrier is overriding the OS. 7. Android 14+ Auto-verify and Spam Persistence Android 14 introduced "Auto-verify" (Google Play Services) and "Verified SMS." These features create a third-party spam score attached to a number, stored in Google's SafetyNet database (cloud-side).

The SMS/MMS app maintains its own blocked table: content://sms/blocked . This table is not automatically synced with the BlockedNumberProvider on unblock. Google Messages and Samsung Messages use a periodic sync job (run every 6-12 hours). Therefore, unblocking a contact does not immediately unblock SMS delivery.