Xiaomi Redmi 7
MIUI
Custom firmware
LineageOS
Pixel Experience
Havoc-OS
Android
In this guide, we will take a look at the entire process, from unlocking the bootloader to the final setup, which tools you will need, how to avoid common errors, and what to do if something goes wrong. Importantly, Redmi 7 (codenamed onc) only fits firmware built for this model, and trying to install software from Redmi Note 7 or other devices will cause modules (camera, sensors, mobile communications) to fail.
Before you start, evaluate your strength: the procedure requires basic knowledge of working with the ADB, Fastboot and custom Recovery. If you've never encountered these tools, practice on a less important device or learn our basics guides.
1.Preparation: What to do before installation
Custom firmware installation is not just a software replacement, it's a deep interference, and without proper preparation, you risk losing data or damaging your phone. Start with backup:
πΉ Save important data: contacts, photos, messages. Use Google Account for sync or programs like Titanium Backup (requires root!
πΉ Check the phone model: go to Settings β The phone. β Make sure you have Xiaomi Redmi 7 (onc code). 7A (Pine or other models will not work.
πΉ Charge the battery: the charge level should be at least 70%, interruption of the process due to discharge can lead to serious failures.
β οΈ Warning: If your Redmi 7 is bought in China, check if it supports global firmware.Some Chinese versions have restrictions on unlocking the bootloader.
Also prepare the computer:
- π₯οΈ Operating system: Windows 10/11 (64-bit) It's not like Linux. MacOS can have driver problems.
- π Cable USB: Original or high-quality (cheap cables often donβt transmit data in Fastboot mode).
- π οΈ Tools: Download Platform Tools (ADB Fastboot, Xiaomi drivers, and Mi Unlock Tool.
If you are using Windows, disable the driver digital signature check (otherwise, the Mi Unlock Tool may not recognize the phone). + R, type msconfig, go to the Download tab and select Safe Mode β Network).
2 Unlocking the bootloader: a step without which you can not do
The bootloader on Xiaomi devices is locked by default, a security measure that prevents custom software installation. Unlocking in the official way requires an account to be tied to Mi and waiting (usually 72-168 hours).
π Step-by-step instruction:
- Turn on Developer Mode: Go to Settings β About Phone and click on MIUI Version 7 times.
- Back to Settings β Additionally. β For developers and activate: π Unlocking OEM (It may not be available on some versions. MIUI). π Debugging by USB.
Connect the phone to the PC, confirm the debugging permission.
Mi Unlock Tool
Mi
If you receive a message about the need to wait, wait until the timer ends (usually 3-7 days).
β οΈ Note: If you previously unlocked the bootloader on this device, re-unlocking may go away without waiting. However, resetting the phone to factory settings will reset the unlock status!
Once successfully unlocked, the phone will restart and all data will be erased. That's fine -- that's how Xiaomi's protection works. Now you can move on to customized recavers.
π‘ Alternative method (for power users): some firmware (for example, Fastboot versions) can be installed without unlocking via the EDL-However, it requires special equipment (Qualcomm) HS-USB QDLoader 9008 and Risky for Newcomers.
π‘
If the Mi Unlock Tool is running a "Couldn't unlock" error, try using a different version of the program (e.g. 3.5.512.24) or run it on behalf of the administrator.
3. TWRP installation: custom recavers for firmware
TWRP (Team Win Recovery Project is an alternative recovery that allows custom firmware, backups and system repair. Two versions are available for Redmi 7:
- π± Official (from the team) TWRP) β Stable, but may not support the latest Android versions.
- π οΈ Unofficial (from the community) β updated frequently but may contain bugs.
π§ How to install TWRP:
- Download the current version TWRP to Redmi 7 (onc) from the official twrp.me website or trusted forum (e.g, XDA Developers).
- Rename the file to twrp.img and place it in the folder with the platform-tools.
- Turn off your phone and press Power + Volume Down to log into Fastboot.
- Connect your phone to your PC and type in the command: fastboot flash recovery twrp.img
- After successful installation, restart to Recavator: fastboot boot twrp.img
If TWRP It doesn't start or it loads into a standard recavery, so it's overwritten, so to avoid that, right after you log in. TWRP Go to Wipe. β Format Data, type yes and confirm. This will disable automatic recovery of standard Recovery.
β οΈ Critical error: If after installation TWRP The phone doesn't turn on (black screen or logo hanging), so you didn't download the firmware for your model, and then you can only flash it through Fastboot or EDL.
Download the correct version TWRP For Redmi 7 (onc)|
Check file integrity (MD5-hash)|
Disable driver check on Windows|
Charge your phone to at least 70%|
Make a backup of data (they will be erased)-->
4. Selection and downloading of custom firmware
The firmware choice is the key to the stability of the phone, and the following popular options are available for the Redmi 7:
| Firmware | Android version | Features | Reference |
|---|---|---|---|
| LineageOS | 10β13 | Clean Android, stable operation, regular updates | Official website |
| Pixel Experience | 11β13 | Google Pixel interface, optimized performance | Download |
| Havoc-OS | 10β12 | Maximum customization, support for themes and gestures | Official website |
| ArrowOS | 11β13 | Lightweight, close to stock Android | Download |
π How to choose:
- π± If you want a stable and fast Android, choose LineageOS or ArrowOS.
- π¨ If you want maximum customization β Havoc-OS or CrDroid.
- π± If you like the Google Pixel interface, Pixel Experience.
Before downloading, check:
- Compatible with the model (onc for Redmi 7).
- Assembly date (up-to-date versions are updated every 1-2 months).
- Reviews in forums (e.g, 4PDA or XDA).
β οΈ Warning: Some firmware (especially unofficial) may not support:
- π· Camera (not working) HDR, night-time).
- π‘ Mobile communication (problems with VoLTE or 4G).
- π Charging (slow or unstable).
If you are critically important to these features, look for firmware marked Official or read reviews about a particular build.
What are GApps and do they need them?
5. Install firmware through TWRP
Now that you have unlocked the bootloader, installed TWRP You can start the final stage, and follow the instructions carefully, because an error in this step can lead to a bootloop).
π Step-by-step process:
- Copy firmware and GApps files (if needed) to internal memory or SD-map.
- Turn off your phone and press Power + Volume Up to log in to TWRP.
- Make a full backup of your current system (optional, but recommended): Go to Backup. Select Boot, System, Data. Swipe for confirmation.
full-dump
Wipe β Advanced Wipe β Tag Dalvik, Cache, System, Data β Swipe to WipeInstall β Select the firmware file β Swipe to Confirm Flashstraight-up
Reboot β System
β³ The first run can take 5-15 minutes - don't interrupt the process! If the screen is long on the logo, wait another 10 minutes. If after this time nothing has changed, then there has been an error (see the section "Problem SolvingΒ»).
β οΈ Note: If you install firmware based on Android 12+, Make sure the version TWRP Supports the new vendor partition format, otherwise the firmware won't stand up and the phone won't boot.
π‘ Useful advice: After successful installation, return to the TWRP And backup the new system, and it'll help you recover quickly if something goes wrong after upgrades or experiments.
π‘
Always install GApps right after you have firmware, without restarting your phone. If you do this later, you may experience problems with Google services.
6. System setup and solution of common problems
Once you have successfully installed custom firmware, you have to set up the system and check that all the features are working.
π§ Initial setup:
- πΆ Mobile Network: Go to Settings β SIM-maps and mobile networks and set up APN your operator (options can be found on the providerβs website).
- π Battery: The first 2-3 charge/discharge cycles may show unstable running times β this is normal (the system calibrates the battery).
- π· Camera: If the standard app doesn't work, install Google Camera (GCam) with Redmi 7 support.
π Typical problems and their solutions:
| Problem. | Possible cause | Decision |
|---|---|---|
| Phone not turned on (black screen) | Incorrect firmware or interrupted installation | Fastboot or EDL to Fastboot |
| No mobile phone (no network access) | There is no modem module or incorrect settings APN | Install firmware with support RIL or manually add APN |
| Fast battery discharge | Background processes or non-optimized firmware | Disable unnecessary services, install the kernel with optimizations |
| The camera's not working. | There are no drivers or libraries | Install GCam or flash firmware with support Camera2API |
π How to return a standard firmware:
If the custom firmware is not satisfied, you can go back to MIUI. For that:
- Download Fastboot firmware for Redmi 7 from Xiaomi website.
- Unpack the archive and launch the script flash_all.bat (Windows) or use Fastboot commands manually.
- Wait until the process is complete (the phone will reboot automatically).
β οΈ Important: After returning to MIUI the bootloader will be blocked again, and to install custom software you will have to repeat unlocking.
7. Optimization and fine-tuning of custom firmware
Custom firmware gives you access to a lot of hidden Android features. Here are some tips on how to make the most of your Redmi 7:
β‘ Acceleration of work:
- π§ Turn off animations: go to Settings β System system β Developer settings and set: Windows animation scale β Off. Transition animation scale. β The animator duration scale β Off.
- ποΈ Clean the cache regularly: use the app SD Maid or built-in function in TWRP (Wipe β Cache).
- π Optimize the background processes: in Settings β Disable Auto-Run Unnecessary Programs.
π¨ Customization of the interface:
- π± Install a launcher (like Nova Launcher or Lawnchair) for flexible desktop settings.
- π¨ Use Substratum or Andromeda for themes (root rights required).
- π Set up gestures: In firmware like Havoc-OS, you can assign swipes for quick access to functions.
π Extending battery life:
- π Install a kernel with optimizations (e.g. FrancoKernel or ElementalX).
- βοΈ Use Greenify to βfreezeβ background apps.
- π Activate a dark theme and reduce the brightness of the screen (AMOLED-There are no displays on the Redmi 7, but it still saves power).
π‘οΈ Security:
- π Install Magisk to manage root rights and hide them from applications (e.g. banking).
- π‘οΈ Use AFWall.+ for controlling network access of applications.
- π Regularly update the firmware (via OTA manually).
π‘ Useful tip: If you like experimentation, try the kernel performance profiles. For example, in FrancoKernel you can choose Battery mode (saving) or Performance mode (maximum power).