Share via


DevicePolicyManager.MtePolicy Property

Definition

Called by a device owner, profile owner of an organization-owned device to get the Memory Tagging Extension (MTE) policy

        <a href="https://source.android.com/docs/security/test/memory-safety/arm-mte">
        Learn more about MTE</a> -or- Called by a device owner, profile owner of an organization-owned device, to set the Memory
        Tagging Extension (MTE) policy.
public virtual Android.App.Admin.MteMode MtePolicy { [Android.Runtime.Register("getMtePolicy", "()I", "GetGetMtePolicyHandler", ApiSince=34)] [Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_MTE")] get; [Android.Runtime.Register("setMtePolicy", "(I)V", "GetSetMtePolicy_IHandler", ApiSince=34)] [Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_MTE")] set; }
[<get: Android.Runtime.Register("getMtePolicy", "()I", "GetGetMtePolicyHandler", ApiSince=34)>]
[<get: Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_MTE")>]
[<set: Android.Runtime.Register("setMtePolicy", "(I)V", "GetSetMtePolicy_IHandler", ApiSince=34)>]
[<set: Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_MTE")>]
member this.MtePolicy : Android.App.Admin.MteMode with get, set

Property Value

the currently set MTE policy

Attributes

Remarks

Property getter documentation:

Called by a device owner, profile owner of an organization-owned device to get the Memory Tagging Extension (MTE) policy

Learn more about MTE

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

Property setter documentation:

Called by a device owner, profile owner of an organization-owned device, to set the Memory Tagging Extension (MTE) policy. MTE is a CPU extension that allows to protect against certain classes of security problems at a small runtime performance cost overhead.

The MTE policy can only be set to #MTE_DISABLED if called by a device owner. Otherwise a SecurityException will be thrown.

The device needs to be rebooted to apply changes to the MTE policy.

Java documentation for android.app.admin.DevicePolicyManager.setMtePolicy(int).

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