"1. Download the official EUI firmware in zip format for installation from the recovery.
2. We go to TWRP (who does not, install jui version recovery first )
3. We selectively clean the first four sections.
Like (System,Data, Cache,Boot)
4. Restart in recovery.
5. Copy the EUI to the root of the phone.
6. Flash EUI Recovery Flashable.
EUi Recovery Flashable
7. Now Wait For Installation .
8. We reboot into the system (the system will ask for the password) and turn off the phone.
9. Download this recovery here
https://cloud.mail.ru/public/ABYn/3G3kujboP10. Now We Have To Flash Above Recovery With Miflash Software
11. We go into the recovery and do a cleaning system.
12. We reboot into the system.Done.
Attention! Not all firmware are installed. Most likely original. I tried this . Caste has not yet become one.P.S. Only this firmware got up. The rest (neither custom nor India) went. I conclude that the android 7.1 is not completely cleaned and eui is ported to it. If suddenly a brick - installation of P1 and P2 from the instruction to JUI helps (helped me))"
==============
albo https://www.youtube.com/watch?v=Qcr81IekfJ0