Tech matters:locked boot load

A donation of xiaomi note mi 4x came along,problem is the owner forgot the pattern so in my haste for an upgrade I took it for flashing.
Sasa imekwama kwa logo not going past that
Nisaidiwe how I can finally gain its functionality. Feeling frustrated

Hiyo inaitwa boot loop, meaning a soft brick has occured.

Naomi wako friendly in these areas mpaka kuna serious guides on this…

I’m assuming the fundi had enabled OEM unlocking feature in the Developer options menu before flashing the new firmware.

First, you will have to unlock the boot loader…
https://xiaomifirmware.com/guides-and-tips/guide-unlock-xiaomi-redmi-note-4x/

Second, install TWRP custom recovery…
https://xiaomifirmware.com/guides-and-tips/install-twrp-via-fastboot-redmi-note-4x/

Then follow their guide on unbricking the device…
https://xiaomifirmware.com/guides-and-tips/guide-unbrick-redmi-note-4x/

You will also need to download the stock rom for the phone in case the guy used the wrong/damaged rom for your phone.

assumimg you have a pc with adb and fastboot drivers installed and working Go to en.miui.com create account download fastboot firmware for you device and Mi flash tool. Fire up your device in fastboot mode(not sure mi 4x keys but hope ni vol- and pwr button) then connect to pc start mi flash tool load rom and flash wait for it to finish viola done.
ps. download firmware stock juu ya boot image ijakua patched with miui 8

Asanteni sana wakubwa wacha nitafanya hii maneno Leo mchana. Thank you