> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.appaloosa.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# PIN Code Configuration for Android Devices

Appaloosa lets you require a PIN code (or a password) on your Android devices and define how strong it must be. When a device does not meet the requirements, the user is asked to set a new code.

Where you configure it depends on the enrolment mode:

* **Managed devices:** open your Android managed configuration, then the **Security** tab, **Access code** card. On COPE devices (company owned, personally enabled), this code applies to the Work Profile only.
* **COPE devices, whole device:** in the same configuration, **Personal usage** tab, **Access code** card. This code protects the whole device.
* **BYOD devices:** open your Android BYOD configuration, then the **Security** tab, **Access code** card. This code protects the Work Profile only, the personal side of the device is not affected.

[![](https://storage.crisp.chat/users/helpdesk/website/-/a/5/0/8/a50834340ddef000/de73c1c5-5e66-4267-b8ab-523a6a_nrrax8.png)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2687595510/82fd62b975a61710e36dbbdd206c/managed_access_code_en.png?expires=1795685400&signature=bc263f75a19655dc5ab4dd0f0266855eec5153b0e9f8c7229b976c4654aac411&req=diYvEcx3mIReWfMW1HO4zfY49D7WOfNed8uQkdfeBJ53ZWLO9v0PEWICfqY%2B%0AZZWt3PGOkdB2JSfBGvI%3D%0A)

# How it works

Once you save the configuration, the policy is sent to every device using it. If the current lock screen does not meet the requirements, the device displays a notification asking the user to change their code. The **Passcode** line of the device overview shows whether a lock screen is set on the device.

Android handles password rules differently depending on its version, which is why the card has two ways of describing the code:

* **Android 12 and above** use the **Password complexity** level.
* **Android 11 and below** use the **Minimum PIN length**. It is also used on any version when no complexity is set.

Appaloosa sends both, and each device applies the one its Android version supports, so a mixed fleet is covered by a single configuration.

# Enable PIN restriction

Turns the requirement on or off. When it is off, Appaloosa does not require any code and the other fields of the card are not applied.

# Minimum PIN length

The minimum number of characters of the code, from **4** to **16**.

On Android 11 and below, the code must also avoid repeating (4444) or ordered (1234, 4321, 2468) sequences. A PIN or a password both work, as long as they are long enough.

**Watch out for the Low complexity:** when **Password complexity** is set to **Low**, devices on Android 11 and below only require a lock screen (pattern, PIN or password) and the minimum length is not enforced.

# Password complexity

On Android 11 and below, complexity levels do not exist: **Medium** and **High** are applied as the **Minimum PIN length** rule described above, and **Low** only requires a lock screen.

On Android 12 and above, you can choose one of the following levels to define the weakest lock screen the user may choose:

* **Not defined:** the device uses the **Minimum PIN length** instead.
* **Low:** a pattern, or a PIN with repeating (4444) or ordered (1234) digits, is accepted.
* **Medium:** a PIN without repeating or ordered digits, or an alphabetic or alphanumeric password, with at least 4 characters.
* **High:** a PIN without repeating or ordered digits and at least 8 digits, or an alphabetic or alphanumeric password with at least 6 characters.

A pattern is only accepted with the **Low** level.

# Settings available on managed devices

The **Access code** card of the **Security** tab offers three more settings. They are available once **Enable PIN restriction** is on.

* **Maximum Auto-Lock (in minutes):** the device locks itself after this idle time, from **1** to **15** minutes. The user can still pick a shorter delay in the device settings, not a longer one.
* **Number of unique passwords required before reuse:** how many previous codes the user cannot use again. With **3**, the new code must differ from the last three.
* **Maximum password lifetime (in days):** after this number of days, the user is asked to change their code.

Leave a field empty to apply no restriction.

# COPE devices

A COPE device has a Work Profile and a personal side, so it can carry two codes:

* the **Security** tab code protects the Work Profile, the work apps and their data;
* the **Personal usage** tab code protects the whole device, it is the one used to unlock the screen.

The **Personal usage** card offers **Minimum PIN length** and **Password complexity**, which work as described above.

[![](https://storage.crisp.chat/users/helpdesk/website/-/f/1/6/8/f168cb8187776000/547ed737-d9f0-4275-8ff5-011d99_1885klo.png)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2687596195/97089380d3b8072f7601c52d88c1/cope_access_code_en.png?expires=1795685400&signature=d5352cc187a8c38c48f7228bedd0cb34ce17fe5d285796b96bde53b819624c63&req=diYvEcx3m4BWXPMW1HO4zXpBngASMvWnDK747JOUzO8GLOGvUivJZR0wJHbG%0AYi8EfCJcDM%2FWAH42kN0%3D%0A)

# BYOD devices

On a personal device, Appaloosa only manages the Work Profile. The **Access code** card of the BYOD configuration offers **Minimum PIN length** and **Password complexity**, applied to the Work Profile. The user keeps full control over the code of their device.

[![](https://storage.crisp.chat/users/helpdesk/website/-/f/6/f/6/f6f6f7cbb000a000/f31da056-d896-4fe9-b059-36e562_1625smo.png)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2687596646/d1106b9fb2592333b9991d035d49/byod_access_code_en.png?expires=1795685400&signature=1811cc10929dc11d90a49d0a4b871e4b1c242c58c73d344f8cffd9f497c0573f&req=diYvEcx3m4dbX%2FMW1HO4zQz%2BXdEdFEIxEqXmaN1jhQaxr6HsKYUxnLeArSKI%0A9yrMivts%2BSeCdnccdOs%3D%0A)

# Compliance settings (BYOD)

The **Compliance settings** card of the BYOD **Security** tab defines what happens when a Work Profile stays without a valid code:

* **Days before blocking a non compliant work profile:** after this number of days, work apps are blocked and the user receives a notification explaining how to fix the issue. Personal apps keep working. Use **0** to block right away.
* **Days before wiping a non compliant work profile:** after this number of days, the Work Profile and its data are deleted from the device. Personal data is not touched.

The wipe delay must be greater than the block delay, otherwise the rule is not applied. Set both to **0** to disable it. As soon as the user sets a valid code, the Work Profile is unblocked.

[![](https://storage.crisp.chat/users/helpdesk/website/-/1/4/6/4/1464adbe96f51f/8f84c879-7f09-4944-99ed-9bcf74_1g69zwl.png)](https://downloads.intercomcdn.com/i/o/c1ebb48d/2687596882/afe811e48db6cef52664591755a2/byod_compliance_en.png?expires=1795685400&signature=e00925185d249705172817e88f2580ed888195c4941a2cea6cb99ed79d44f183&req=diYvEcx3m4lXW%2FMW1HO4zRj2k6kLOZK0wZM6o78qPb%2Fd%2BMew%2FkopfG%2F8bU3u%0AKm5pRAnNXmxHG87th20%3D%0A)

# Notes

* Appaloosa never sees the code chosen by the user. If a user of a managed device forgets it, use the **Change PIN code** action from the device page to set a new one, consistent with the requirements of the configuration. You can also lock the device right after the change.
* On the default configuration, each field has a lock icon. A locked field applies its value to every other configuration of the store, where it can no longer be changed.