Unpack Platform-tools (adb/fastboot) in the “C:\adb” folder.
Boot your device into fastboot mode (press and hold “Volume down” + “Power” button.
Connect your device to PC via USB cable.
Open the command prompt from “C:\adb” folder.
Check if bootloader on your device is unlocked with the following command:
fastboot oem device-info
If you see “Device unlocked: true” – the bootloader is unlocked. If you see “Device unlocked: false”, that means the bootloader is locked. To unlock the bootloader on Redmi 4A you should first request official permission from MIUI.
Now download and flash TWRP Custom Recovery (TWRP .img file should be in the “C:\adb” folder).