Install adb-setup-1.4.3 and install with admin rights - https://forum.xda-developers.com/t/...vers-15-seconds-adb-installer-v1-4-3.2588979/
Install xiaomitool v2 or mi unlock (from my site i use Mi Unlock because i have problem with "Xiaomi procedure failed: [getServiceToken] Missing serviceToken cookie"_
Log in to Xiaomi account
Unlock software options in developer mode, check the OEM unlock, USB debugging, log in to "MI unlock status"
Unlock bootloader (clears data on the phone) via mi unlock / xioami tool v2
Download platform tools - https://developer.android.com/studio/releases/platform-tools
Copy to platform tools - vbmeta and recovery.img from twrp - https://unofficialtwrp.com/unofficial-twrp-3-4-2-for-redmi-7a-pine/
Run CMD in admin, use CD command to go to path where platform tools folder is located
Start the phone in fastboot volume- and power on
Connect phone in fastboot mode to PC, with this commands upload twrp:
fastboot flash recovery recovery.img
fastboot flash vbmeta vbmeta.img
after flashing: fastboot boot recovery.img
After reboot to TWRP from CMD, install system image like Lineage OS and Gapps
Reboot
Done
Install xiaomitool v2 or mi unlock (from my site i use Mi Unlock because i have problem with "Xiaomi procedure failed: [getServiceToken] Missing serviceToken cookie"_
Log in to Xiaomi account
Unlock software options in developer mode, check the OEM unlock, USB debugging, log in to "MI unlock status"
Unlock bootloader (clears data on the phone) via mi unlock / xioami tool v2
Download platform tools - https://developer.android.com/studio/releases/platform-tools
Copy to platform tools - vbmeta and recovery.img from twrp - https://unofficialtwrp.com/unofficial-twrp-3-4-2-for-redmi-7a-pine/
Run CMD in admin, use CD command to go to path where platform tools folder is located
Start the phone in fastboot volume- and power on
Connect phone in fastboot mode to PC, with this commands upload twrp:
fastboot flash recovery recovery.img
fastboot flash vbmeta vbmeta.img
after flashing: fastboot boot recovery.img
After reboot to TWRP from CMD, install system image like Lineage OS and Gapps
Reboot
Done