Xiaomi Redmi 8, released 2019 It is still a popular device among Android enthusiasts, its low price, balanced specs (Snapdragon). 439, 4/64 GB, battery 5000 mAh) and custom firmware support make it the perfect platform for experimentation. But how do you turn a regular smartphone into a developer tool? This article will help you understand the nuances of unlocking the bootloader, installing the device. TWRP, rooting and setting up environments to create your own applications or modify the system.
It is important to understand: the transition to developer mode on Redmi 8 β It's not just about turning on a hidden menu in your settings, it's about a set of measures that includes unlocking the bootloader, working with fastboot, and ADB, And we'll go through each step in detail so that even a beginner can safely complete all the steps, and for experienced users, we'll provide relevant links to tools and firmware for Redmi. 8 (olive/olivelite) on 2026 year.
1.Preparation of the device: what to do before unlocking
Before you start to manipulate the system, make sure your Redmi 8 is ready for the procedures.
- π± Check the device model: go to Settings β The phone. β Model. Redmi 8 is very coded. M1908C3IG (global version and M1908C3IC (China depends on the choice of firmware.
- π Battery charge: at least 70%. Unlocking process can take up to 30 minutes, and a sudden shutdown will cause a failure.
- π Backup: Use Mi Cloud or third-party utilities (such as Swift Backup) to save contacts, messages, and files!
- π» Computer with Windows/Linux: You will need to work with Mi Unlock Tool and fastboot.
Critical detail: Xiaomi has tightened its bootloader unlock policy since 2023, requiring new Mi accounts to be linked to a phone number and wait 168 hours (7 days) after the device is linked to an account. If you bought a used smartphone, make sure the previous owner untied it from your account in Settings. β Xiaomi account β Delete the account.
Also prepare:
- π Cable USB: Original or certified (cheap cables may not transmit data to fastboot).
- βοΈ Drivers: Download Mi for Windows USB Driver from the official Xiaomi website.
- π Tool Archive: Platform Tools (includes adb and fastboot), Mi Unlock Tool latest version.
β οΈ Note: If your Redmi 8 was purchased in China M1908C3IC), You might need a Chinese phone number to unlock it, so it's easier to find global firmware and flash it through fastboot without unlocking it.
2. Enabling the developer mode and debugging by USB
The first step is to activate the hidden Android features. On Redmi 8, this is done as standard:
- Go to Settings. β The phone.
- Find the MIUI version and tap it 7 times in a row, and the notification will appear "You became a developer!".
- Return to the main settings menu and open a new Developer section (usually at the end of the list).
In the developer menu, activate:
- π Debugging by USB (necessarily!).
- π Unlocking OEM (It may be hidden - see spoiler below).
- π± Factory Unblocking (if any).
What to do if the item "Unblocking" OEM" no?
Once activated, connect Redmi 8 to your computer. In the window on your phone that appears, select "Allow debugging by USB" and check the box "Always allow from this computer".
Check the connection by running in the command line (on the computer):
adb devicesIf the device appears in the list, everything is set up correctly.
π‘
If the adb device command doesnβt work, try reinstalling drivers manually through Windows Device Manager (Portable Devices section" β "Android").
3 Unlock the bootloader through the Mi Unlock Tool
This is the most important step. Unlocking the bootloader erases all data on the device and allows you to install informal firmware.
Step 1: Linking your Mi Account
1. Sign in to your Xiaomi account (or create a new one) on your phone.
2. Go to Settings β Xiaomi account β Mi Cloud and enable synchronization.
3.In the Developer Menu, find the item "Mi Unlock Status" and link the device to your account. Wait 168 hours (7 days) is a mandatory requirement of Xiaomi from 2023.
Step 2: Installation of Mi Unlock Tool
1. Download the latest version of the Mi Unlock Tool from the official website (Windows only!).
2. Install the program and run it on behalf of the administrator.
3. Sign in to the same Xiaomi account as on your phone.
Step 3: Unlocking
1. Turn off Redmi 8.
2.Put the Volume down. + Power to enter fastboot mode (screen with a hare in a hat-eared hat).
3. Connect the phone to the computer.
4. In Mi Unlock Tool, click Unlock and wait until the process is complete (usually.) 10-15 minute).
If it went well, you'll see the message "Unlocked successfully." Now the bootloader is unlocked.
β οΈ Note: If the Mi Unlock Tool gives you a "Couldn't unlock" or "Device not supported" error, check: - The tool version (should be the last). - Account binding to the device (sometimes you need to repeat the binding). - Internet connection (the program checks the status of the account online). If nothing helps, try using fastboot oem unlock-go manually (see next section).
Linking your Mi Account to your device|Wait 168 hours (if you have a new account)|Download the Mi Unlock Tool for the latest version|Install fastboot drivers|Charge your phone at least 70 times%-->
Installation TWRP and obtaining root rights
After unlocking the loader, you can install a custom Recovery TWRP (Team Win Recovery Project, which will allow you to create backups, sew modified images and get root access.
Step 1: Download TWRP for Redmi 8
Official version TWRP for Redmi 8 (Olive can be found on twrp.me. Download a file with the.img extension (e.g, twrp-3.7.0_9-0-olive.img).
Step 2: Installation via fastboot
1. Transfer the phone to fastboot mode (Loudness down) + Nutrition).
2. Connect to the computer and execute the command:
fastboot flash recovery twrp-3.7.0_9-0-olive.img3. After successful firmware, perform:
fastboot boot twrp-3.7.0_9-0-olive.imgThis team will temporarily load TWRP, So you can backup before further manipulation.
Step 3: Getting root rights
Download the latest version of Magisk (for example, Magisk-v26.4.zip) GitHub.
1. V TWRP Select Install and specify the path to the file. Magisk.zip.
2. Swipe for confirmation.
3. After installation, restart to the system.
Check for root by installing the Magisk Manager app or by running in the terminal:
suIf a request for rights appears, the root is installed successfully.
| TWRP version | Compatibility | Features |
|---|---|---|
| 3.7.0_9-0 | MIUI 12-14, Android 10-12 | Encryption support, touch interface |
| 3.6.2_11-0 | MIUI 11-12, Android 9-10 | Stable, but without support for new versions MIUI |
| 3.5.2_9-0 | Android 9 | Outdated, possible bugs with new firmware |
π‘
Installation TWRP Magisk is a mandatory stage for developers, as it allows you to modify system files, test custom cores and create full system backups.
5. Firmware custom software: from MIUI up to LineageOS
With the unlocked loader and TWRP You can experiment with alternative firmware. Let's look at the popular Redmi 8 options:
Official MIUI firmware
If you need stable work without custom modifications, you can flash the global version. MIUI fastboot:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash dtbo dtbo.img
fastboot rebootYou can download official images on the Xiaomi website (choose the version for olive).
Custom firmware
For developers, the following are of interest:
- π± LineageOS: "clean" Android without unnecessary applications Xiaomi. 8 Android-based 11-12.
- π§ Pixel Experience: firmware with the interface and features of Google Pixel.
- β‘ Havoc-OS: customizable firmware with many settings.
- π‘οΈ DivestOS: Focused on privacy and security.
Example of LineageOS installation:
- Download the firmware (lineage-20.0-20260310-olive.zip) and GApps (e.g, OpenGApps-arm64-11.0-nano).
- Reboot to TWRP.
- Run Wipe β Advanced Wipe and mark Dalvik, Cache, System, Data.
- Install firmware, then GApps.
- Reboot to the system.
β οΈ Note: Castom firmware may not support all of Redmi 8's features. For example, LineageOS sometimes doesn't run VoLTE or dual camera. 4PDA or XDA.
π‘
Before you install the full backup in the TWRP (Backup, including Boot, System, and Data, will allow you to return the original state if something goes wrong.
6. Set up the Android development environment (ADB, Android Studio)
Now that your Redmi 8 is ready to experiment, it's time to set up the development tools.
Installation of Android Studio
1. Download Android Studio from the official website.
During installation, tick the following boxes:
- π¦ Android SDK
- π₯οΈ Android Virtual Device
- π§ Performance (Intel HAXM) (emulator)
3. Open after installation SDK Manager and download:
- π± Android 10.0 (Q) and Android 11.0 (R) (for Redmi 8).
- π§ Android SDK Platform-Tools (includes adb and fastboot).
Connecting Redmi 8 to Android Studio
1. Enable Debugging by USB (see section 2).
2 Connect the phone to the computer.
3. In Android Studio, open Device Manager β your device should appear in the list.
4. For verification, perform at the terminal:
adb shell getprop ro.product.modelThe answer has to come back: Redmi 8.
Application assembly and debugging
Now you can:
- π² Testing applications directly on the device.
- π Debugging code through Logcat.
- π Profiling Performance with Android Profiler.
Example of installation command APK:
adb install path/to/your/app.apkπ‘
Using a physical device (rather than an emulator) allows applications to be tested in real-world environments, including camera, sensors, and mobile networking.
7. Useful tools and tricks for developers
Development on Redmi 8 is even more efficient with these tools:
ADB Fastboot: Extended Teams
A few useful commands to work with the device:
- π± Reboot to Recovery:
- π Reboot to fastboot:
- π Viewing logisticians:
- π Copying files:
Modification of system files
With root access, you can edit system files, for example, to turn off ads in the system. MIUI:
- Install Root Explorer or Mixplorer.
- Go to /system/etc/hosts.
- Add lines to block advertising domains:
Creation of custom kernels
For experienced developers, you can compile your kernel for Redmi 8. The kernel source is available on Xiaomi's GitHub.
- π§ Ubuntu 20.04+ or WSL2 Windows.
- π§ Compiler aarch64-linux-android-4.9.
- π Configuration file olive_defconfig.
Example of a command to assemble:
make -j4 ARCH=arm64 olive_defconfig
make -j4 ARCH=arm64β οΈ Warning: An improperly assembled kernel can lead to a bootloop.Always test new builds on a backup device or in an emulator QEMU.
8. Solving common problems
Even with strict adherence to instructions, errors can occur. Consider typical cases and their solutions:
| Problem. | Possible cause | Decision |
|---|---|---|
| Mi Unlock Tool gives you a 50% or 99% error | It has not been 168 hours since the account was linked. | Wait 7 days or use workarounds (see spoiler) |
| After the firmware TWRP phone doesn't load | Incompatible version TWRP or a damaged backup | Sweep through the official firmware through fastboot or restore the backup from TWRP |
| Adb devices cannot see the device | There are no drivers or USB debugging is not enabled | Reinstall drivers, check the developer settings |
| After the rut stopped working banking applications | SafetyNet is not being checked | Install MagiskHide Props Config and set up root cover |
How to get around 168 hours in Mi Unlock Tool
If the custom software has disappeared after the firmware IMEI If the mobile network is not working, restore the original modem and EFS backup TWRP Or run them through fastboot:
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbnFiles. NON-HLOS.bin and fsg.mbn can be extracted from the official firmware for your model.