return rowsDeleted;
// Delete from telephony provider context.contentResolver.delete(BlockedNumbers.CONTENT_URI, ...) // Also delete from SMS provider context.contentResolver.delete(Uri.parse("content://sms/blocked"), ...) // Force sync via Carrier Messaging Client SmsManager.getDefault().clearBlockedNumberForSubscriber(subId, phoneNumber) Carrier Call Filtering: For RCS (Rich Communication Services) and VoLTE, carriers (T-Mobile, Verizon, Jio) maintain their own block list on the IMS core. When a user unblocks a contact on Android, the OS sends a CarrierConfigManager update via the TelephonyManager . However, if the carrier's network has a stale cache, the number remains blocked at the network level for up to 24 hours . unblock contact android
Unblocking via the Contacts app must issue a ContentResolver.delete() on BlockedNumberContract.BlockedNumbers.CONTENT_URI and update the raw_contacts table. If either transaction fails (e.g., database lock), the contact appears unblocked in the UI but remains blocked by the telephony stack. 4. The Unblock Transaction: Atomicity Analysis Executing an unblock triggers the following sequence (Android 13+): Unblocking via the Contacts app must issue a ContentResolver