StoreRules

规则 · 了解受限权限及最小范围替代方案

Can I still use the WRITE_CONTACTS permission?

通俗解读

面向 API 38 及以上的应用不能再使用 WRITE_CONTACTS 创建、修改或删除联系人;写入联系人提供程序会抛出 SecurityException,应用应进行处理。

  • 对于面向 API 38 或更高版本的应用,WRITE_CONTACTS 不再授予创建、修改或删除联系人的能力。
  • 系统不会为这些应用显示权限请求对话框。
  • 尝试写入联系人提供程序将抛出 SecurityException。
  • 应用应处理此异常,而不是假定写入已成功。

摘要由 StoreRules 撰写,并与官方原文核对。

官方原文摘录

Not for apps targeting API level 38 or higher. For these apps, WRITECONTACTS no longer grants the ability to create, modify, or delete contacts. The system won't show the permission request dialog. Attempts to write to the Contacts Provider will throw a SecurityException. Your app should handle this exception rather …

阅读官方全文 ↗ 在 StoreRules 规则库中打开 询问你的应用是否合规

变更历史

首次出现: 2026-10-30

开发者关于此条款的案例

暂无案例。

分享你的案例