Using these codes is a straightforward process, but it differs slightly depending on whether you are using a generic Android code or a specific Xiaomi service code.
On the REDMI A3, these codes work on both the stock Android Go and MIUI versions, though some codes may be disabled by Xiaomi for security reasons.