Android 14 中的企业功能新变化
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面简要介绍了 Android 14(API 级别 34)中引入的企业 API、功能和行为变更。
Android 14(API 级别 34)添加了以下两个字段:
这两个字段一起可让具有 READ_CONTACTS
权限的个人应用列出所有工作资料联系人和电话号码,前提是 DevicePolicyManager
中的跨资料联系人政策允许这么做。
跨资料访问联系人
您可以使用 DevicePolicyManager
中的以下方法设置和查询该政策,这些方法指定了允许哪些软件包从个人资料中访问工作联系人:
这些方法可向后兼容,应改用这些方法,而不是现在已废弃的下列方法:
跨资料来电显示搜索
同样,Android 14(API 级别 34)还针对跨资料来电显示搜索添加了以下方法:
这些方法可向后兼容,应改用这些方法,而不是现在已废弃的下列方法:
超宽带
超宽带 (UWB) 是一种无线技术,在很大一部分射频频谱内,都能使用非常低的能量水平进行短距离、高带宽通信。
从 Android 14(API 级别 34)开始,设备或资料所有者可以通过 DevicePolicyManager.addUserRestriction()
应用 DISALLOW_ULTRA_WIDEBAND_RADIO
用户限制,对组织所有的设备禁止使用 UWB。
废弃
Android 14 废弃了以下 API,值得引起注意:
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-27。
[null,null,["最后更新时间 (UTC):2025-08-27。"],[],[],null,["This page provides an overview of the enterprise APIs, features, and behavior\nchanges introduced in Android 14 (API level 34).\n| **Note:** Members of our [Enterprise Mobility Management (EMM) partner community](https://www.androidenterprise.dev/) can find more information about EMM-impacting changes in Android 14 in the corresponding [knowledge article](https://emm.androidenterprise.dev/s/article/EMM-impacting-changes-in-Android-14) on the EMM community site.\n\nContacts\n\nAndroid 14 (API level 34) adds the following two fields:\n\n- [`ContactsContract.Contacts#ENTERPRISE_CONTENT_URI`](/reference/android/provider/ContactsContract.Contacts#ENTERPRISE_CONTENT_URI)\n- [`ContactsContract.CommonDataKinds.Phone#ENTERPRISE_CONTENT_URI`](/reference/android/provider/ContactsContract.CommonDataKinds.Phone#ENTERPRISE_CONTENT_URI)\n\nTogether, these fields allow personal apps with the [`READ_CONTACTS`](/reference/android/Manifest.permission#READ_CONTACTS)\npermission to list all work profile contacts and phone numbers as long as the\ncross-profile contacts policy in `DevicePolicyManager` allows it.\n\nCross-profile access to contacts\n\nThe policy can be set and queried using the following methods in\n`DevicePolicyManager`, which specify which packages are allowed to access work\ncontacts from the personal profile:\n\n- [`setManagedProfileContactsAccessPolicy()`](/reference/android/app/admin/DevicePolicyManager#setManagedProfileContactsAccessPolicy(android.app.admin.PackagePolicy))\n- [`getManagedProfileContactsAccessPolicy()`](/reference/android/app/admin/DevicePolicyManager#getManagedProfileContactsAccessPolicy())\n\nThese methods are backward compatible and should be used instead of the\nfollowing methods that are now deprecated:\n\n- [`setCrossProfileContactsSearchDisabled()`](/reference/android/app/admin/DevicePolicyManager#setCrossProfileContactsSearchDisabled(android.content.ComponentName,%20boolean))\n- [`getCrossProfileContactsSearchDisabled()`](/reference/android/app/admin/DevicePolicyManager#getCrossProfileContactsSearchDisabled(android.content.ComponentName))\n\nCross-profile caller ID searches\n\nSimilarly, Android 14 (API level 34) adds the following methods for\ncross-profile caller ID searches:\n\n- [`setManagedProfileCallerIdAccessPolicy()`](/reference/android/app/admin/DevicePolicyManager#setManagedProfileCallerIdAccessPolicy(android.app.admin.PackagePolicy))\n- [`getManagedProfileCallerIdAccessPolicy()`](/reference/android/app/admin/DevicePolicyManager#getManagedProfileCallerIdAccessPolicy())\n\nThese methods are backward compatible and should be used instead of the\nfollowing methods that are now deprecated:\n\n- [`getCrossProfileCallerIdDisabled()`](/reference/android/app/admin/DevicePolicyManager#getCrossProfileCallerIdDisabled(android.content.ComponentName))\n- [`setCrossProfileCallerIdDisabled()`](/reference/android/app/admin/DevicePolicyManager#setCrossProfileCallerIdDisabled(android.content.ComponentName,%20boolean))\n\nUltra wideband\n\nUltra wideband (UWB) is a radio technology that can use a very low energy level\nfor short-range, high-bandwidth communications over a large portion of the radio\nspectrum.\n\nStarting in Android 14 (API level 34), a device or profile owner can disallow\nUWB on an organization-owned device by applying the\n[`DISALLOW_ULTRA_WIDEBAND_RADIO`](/reference/android/os/UserManager#DISALLOW_ULTRA_WIDEBAND_RADIO) user restriction with\n[`DevicePolicyManager.addUserRestriction()`](/reference/android/app/admin/DevicePolicyManager#addUserRestriction(android.content.ComponentName,%20java.lang.String)).\n\nDeprecations\n\nAndroid 14 includes the following notable API deprecations:\n\n- [`DevicePolicyManager#setCrossProfileCalendarPackages`](/reference/android/app/admin/DevicePolicyManager#setCrossProfileCalendarPackages(android.content.ComponentName,%20java.util.Set%3Cjava.lang.String%3E)) and\n [`DevicePolicyManager#getCrossProfileCalendarPackages`](/reference/android/app/admin/DevicePolicyManager#getCrossProfileCalendarPackages(android.content.ComponentName)) are deprecated.\n\n Calendar apps should migrate to [connected apps](https://developers.google.com/android/work/connected-apps) and device policy\n controllers (DPCs) should use\n [`DevicePolicyManager#setCrossProfilePackages`](/reference/android/app/admin/DevicePolicyManager#setCrossProfilePackages(android.content.ComponentName,%20java.util.Set%3Cjava.lang.String%3E)) instead.\n- The following methods are deprecated:\n\n - [`DevicePolicyManager#setCrossProfileContactsSearchDisabled`](/reference/android/app/admin/DevicePolicyManager#setCrossProfileContactsSearchDisabled(android.content.ComponentName,%20boolean))\n - [`DevicePolicyManager#getCrossProfileContactsSearchDisabled`](/reference/android/app/admin/DevicePolicyManager#getCrossProfileContactsSearchDisabled(android.content.ComponentName))\n - [`DevicePolicyManager#setCrossProfileCallerIdDisabled`](/reference/android/app/admin/DevicePolicyManager#setCrossProfileCallerIdDisabled(android.content.ComponentName,%20boolean))\n - [`DevicePolicyManager#getCrossProfileCallerIdDisabled`](/reference/android/app/admin/DevicePolicyManager#getCrossProfileCallerIdDisabled(android.content.ComponentName))\n\n DPCs should use the alternative methods outlined in the preceding\n [Contacts](#contacts) section."]]