Android Kills Direct WRITE_CONTACTS: Migration Guide to Intent-Based Contact Editing
Direct contacts manipulation will break for apps targeting the 2027 Android release, forcing a redesign of the write path. The replacement Intents shift user-visible behavior to the system editor, which changes UX and requires careful handling of result callbacks and permission grants.
Android has announced a two-phase plan to phase out direct contacts writes. For apps targeting the next Android version in 2027, requesting `WRITE_CONTACTS` alone will no longer allow direct insertion or modification of contacts. The first phase, in 2026's Android 17 QPR2, introduces the `MANAGE_CONTACTS` special access permission; the second phase, alongside the 2027 release, tightens direct write behavior and unifies contact Intent handling. Apps targeting older versions keep existing behavior, but device system version and target SDK must be evaluated separately.
For user-initiated actions like saving a business card or adding a phone number, the recommended path is now to launch the system's contact editor via Intents. `ACTION_INSERT` creates a new contact with pre-filled fields; `ACTION_INSERT_OR_EDIT` lets the user choose an existing contact or create a new one; `ACTION_EDIT` edits a known contact URI. These Intents do not require the `WRITE_CONTACTS` permission and shift the final save decision to the user, which changes the interaction flow: the app can no longer assume the write succeeded after calling `startActivity()`.
For background sync scenarios, such as two-way enterprise contact sync or bulk backup/restore, apps must evaluate the new special access permission `MANAGE_CONTACTS`. This permission must be granted through system settings, not the runtime permission dialog, and covers read, add, update, and delete. The article also covers account hints via `EXTRA_ACCOUNT`, photo pre-fill via the upcoming `EXTRA_PHOTO_URI` field, the need to pair URI grants with `ClipData`, and the pitfall of deleting avatar files too early. Code audits should search for `WRITE_CONTACTS`, `RawContacts.CONTENT_URI`, `Data.CONTENT_URI`, and `applyBatch`, then confirm each usage to separate queries from writes.
The deletion of WRITE_CONTACTS reflects a broader Android trend of moving sensitive user data operations behind system UI, trading app control for user consent and consistency.
The two-phase rollout means developers have a clear migration window, but the true breaking point is not the device's Android version but the target SDK, a distinction that often trips up teams.
The requirement to use ClipData alongside the photo URI is easy to miss; without it, the receiving editor cannot read the image even though the URI is present.
The line between user-initiated and background sync is the key architectural decision; apps that try to pass off background sync as user-initiated will likely face Play policy rejection.