If want to remove pattern lock and frp lock in Xiaomi Redmi note 5 pro phone then you can try to repair it by your self have to charge a battery with any charger and charged it by 95% and also need UMT Tool and your data is very important for so it is good to do a backup of data it may consist of contact details, important messages, emails or any other important thing which feel to be the backup in a device. This backup can be done on another device. we have to do the backup because after a format of a device, all data will be gone and it will not be recovered. For backup in other devices, you can use another external device like hard drive, SD card or any other suitable devices. If are doing by own. do it at your own risk as we don't take any responsibility if a device is damaged
UMT Tool tool is license you can't solve without that if follow this post guide when you use this then may be you faced these type issue like error occurs of USB not recognized then your USB is not working. if a battery is not charged, your USB socket will not proper work and you will fail in this method. if any issues please write your questions in the comment box I will try my best to help you.