Aracılığıyla paylaş


DevicePolicyManager.ManagedProfileCallerIdAccessPolicy Property

Definition

Called by a profile owner of a managed profile to retrieve the caller id policy. -or- Called by a profile owner of a managed profile to set the packages that are allowed to lookup contacts in the managed profile based on caller id information.

public virtual Android.App.Admin.PackagePolicy? ManagedProfileCallerIdAccessPolicy { [Android.Runtime.Register("getManagedProfileCallerIdAccessPolicy", "()Landroid/app/admin/PackagePolicy;", "GetGetManagedProfileCallerIdAccessPolicyHandler", ApiSince=34)] get; [Android.Runtime.Register("setManagedProfileCallerIdAccessPolicy", "(Landroid/app/admin/PackagePolicy;)V", "GetSetManagedProfileCallerIdAccessPolicy_Landroid_app_admin_PackagePolicy_Handler", ApiSince=34)] set; }
[<get: Android.Runtime.Register("getManagedProfileCallerIdAccessPolicy", "()Landroid/app/admin/PackagePolicy;", "GetGetManagedProfileCallerIdAccessPolicyHandler", ApiSince=34)>]
[<set: Android.Runtime.Register("setManagedProfileCallerIdAccessPolicy", "(Landroid/app/admin/PackagePolicy;)V", "GetSetManagedProfileCallerIdAccessPolicy_Landroid_app_admin_PackagePolicy_Handler", ApiSince=34)>]
member this.ManagedProfileCallerIdAccessPolicy : Android.App.Admin.PackagePolicy with get, set

Property Value

the current caller id policy

Attributes

Remarks

Property getter documentation:

Called by a profile owner of a managed profile to retrieve the caller id policy.

The calling device admin must be a profile owner of a managed profile. If it is not, a SecurityException will be thrown.

Java documentation for android.app.admin.DevicePolicyManager.getManagedProfileCallerIdAccessPolicy().

Property setter documentation:

Called by a profile owner of a managed profile to set the packages that are allowed to lookup contacts in the managed profile based on caller id information.

For example, the policy determines if a dialer app in the parent profile resolving an incoming call can search the caller id data, such as phone number, of managed contacts and return managed contacts that match.

The calling device admin must be a profile owner of a managed profile. If it is not, a SecurityException will be thrown.

A PackagePolicy#PACKAGE_POLICY_ALLOWLIST_AND_SYSTEM policy type allows access from the OEM default packages for the Sms, Dialer and Contact roles, in addition to the packages specified in PackagePolicy#getPackageNames()

Java documentation for android.app.admin.DevicePolicyManager.setManagedProfileCallerIdAccessPolicy(android.app.admin.PackagePolicy).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to