You are not satisfied with the functionality of the stock firmware.
Where can I find the firmware?
On the official website of your phone manufacturer.
On specialized services where users post custom or official OS.
What should be done before installing the firmware?
Create a backup copy of user data and transfer it to your computer.
Insert your SD card into your phone. An SD card is needed to write firmware to it.
Remember your smartphone model.
Fully charge your device. If the battery runs out during the firmware, the device will no longer turn on.
Find and download the archive with Firmware.
Installing TWRP Recovery
Install the Official TWRP App from the Play Store on your phone. And run this application.
When you start the application for the first time, you need to give consent to future manipulations, as well as to give consent to granting the application Superuser rights and click the 'OK' button.
After moving to the next screen, you need to select the 'TWRP FLASH' item and give the application root rights.
On the main screen of the application, the 'Select Device' drop-down list is available, in which you need to find and select the device model for installing the recovery.
After selecting a device, the application will direct the user to a web page to download the appropriate modified recovery environment image file. Download the suggested *.img file.
When the file is loaded, you need to return to the main screen of the Official TWRP App and press the 'Select a file to flash' button. Select the file downloaded in the previous step.
Click the 'FLASH TO RECOVERY' button and confirm your choice, click 'OK' in the question window.
When the message 'Flash Completed Succsessfuly!' appears. Click 'OK'. The TWRP installation procedure can be considered complete.
Copy the required files to the memory card. Using a PC or laptop card reader.
Insert a SD memory card into the phone.
To reboot in recovery, it is convenient to use a special item in the Official TWRP App menu, accessible by pressing the button with three stripes in the upper left corner of the main screen of the application. We open the menu, select the 'Reboot' item, and then tap on the 'REBOOT RECOVERY' button. The phone will reboot into the recovery environment automatically.
Firmware via TWRP
Before flashing, you need to delete all user data from the phone, this will avoid errors in the software, as well as other problems. Press 'WIPE' on the home screen.
Everything is ready to start flashing. Press the 'Install' button.
On the file selection screen, at the very top there is a 'Storage' button for selecting an SD card.
Select the storage to which the files were copied.
Select the firmware file and click on it. A screen opens with a warning about possible negative consequences, as well as the item 'Zip signature verification'. This item should be checked by placing a cross in the check-box, which will avoid using damaged files when writing to the phone's memory sections.
The procedure for flashing the phone will begin, this is accompanied by the appearance of inscriptions in the log field and the movement of the progress bar.
The completion of the installation procedure is indicated by the inscription 'Successful'.