You can use the device's built-in feature to check its hardware functionalities.
To test the hardware of Xiaomi Redmi Note 5A Prime, follow these steps:
Step 1: Go to the introduction settings.
.jpg)
Step 2: Tap repeatedly on the Kernel version line until the test feature appears.

Step 3: Select the features one by one to start checking for any errors.
.jpg)
Step 4: The results will appear for you to easily track which items have failed.
.jpg)
With these steps, the setup is complete. Wishing you success!
