• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[GUIDE] [WIKI] [Realme XT] Unlocking, Unbricking, Custom recovery, GSI guide and more

Search This thread

pjgowtham

Senior Member
Apr 25, 2011
845
177
Realme XT Wiki
For convenience : https://www.androidfilehost.com/?w=files&flid=304989
First things first.

DISCLAIMER : Use this guide at your own risk. I won't be responsible for you bricking your device due to following this guide. It's also necessary to back up your data before you attempt anything.

Realme XT is not really a developer friendly device as they claim to be for the following reasons.

- Bootloader restricts flashing critical partitions and certain fastboot options are disabled like
Code:
fastboot boot recovery.img
- The flash tool is only available to service centres.
- Kernel sources are not actively updated by realme.
- Nil response to developer's queries.

Code:
[B][U]Table of contents :[/U][/B]

- Unlocking the bootloader
- Unbrick guide
- TWRP guide
- Upgrade guide
- Downgrade guide
- Project Treble for Realme XT
- Links
For unlocking the bootloader, follow the official instrutions from here :

https://c.realme.com/in/post-details/1184740422732218368

As of 28/03/20, you can unlock the bootloader in Realme UI. The official guide for XT is still not updated by realme, but the bootloader unlock app tool that was released for realme3pro works for XT.

UNBRICK GUIDE FOR REALME XT : (FASTBOOT)

Most bricks that happen with devices are softbricks. This means you can boot into stock recovery using key combination or you can access fastboot.
Hardbricks are where your device basically does nothing no matter what you do.


If you are on Color OS 6 or realme UI on locked bootloader :

- Switch off your device
- Press volume up + power button hold it until it finishes starting up.
- You will see the recovery menu now
- Press online update and connect it to wifi and follow instructions


If you are on color os 6 on unlocked bootloader :

Prerequisite:

1. You need to have unlocked bootloader

2. Platform tools setup and added to system environmental variables under windows
OR
Just install this : https://forum.xda-developers.com/showthread.php?t=2317790

Since custom ROMS don't deal with critical partitions, there is very less chance that the critical partitions are messed up. Majority of the times you would be fine with just flashing the boot image, system image, vendor image, vbmeta.

Instructions for color os 6 (Android pie firmware) :

Download the stock pie A16 fastboot image from the links section and extract it :


Just flash by executing the following commands :-
Code:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash vbmeta vbmeta.img
fastboot flash dtbo dtbo.img
fastboot flash oppo_sec oppo_sec.img
fastboot flash modem modem.img
fastboot flash splash splash.img
fastboot flash DRIVER DRIVER.img
fastboot reboot


If you are on Realme UI on unlocked bootloader :

Prerequisite :

Download the stock Realme UI fastboot image from the links section and extract it :

Note : The zip file has other partitions too. Hopefully, you shouldn't need them.

Just flash the boot,system,vendor and vbmeta by executing the following commands

Code:
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash vendor vendor.img
fastboot flash vbmeta vbmeta.img
fastboot flash dtbo dtbo.img
fastboot flash oppo_sec oppo_sec.img
fastboot flash modem modem.img
fastboot flash splash splash.img
fastboot flash DRIVER DRIVER.img
fastboot reboot

Guide to Custom Recovery:

Prerequisite:

1. You need to have unlocked bootloader

2. Platform tools setup and added to system environmental variables under windows
OR
Just install this : https://forum.xda-developers.com/showthread.php?t=2317790

TWRP Recovery

Orangefox Recovery


Instructions to install TWRP recovery:



Run this command
Code:
fastboot flash recovery TWRP.img

You can install orangefox recovery by flashing it via TWRP recovery or by extracting the recovery.img from orangefox recovery.zip file.
Upgrade guide :

You can always find the latest update from here : https://www.realme.com/in/support/software-update

Upgrading from android pie to android 10 carries the risk of bricking your device. Be it locked or unlocked. Thus proceed with caution and ONLY use stock recovery to update from android pie to android 10.

If you are on locked bootloader,
Step 1 :Simply download the update of your choice from the Links section and try to open it in stock file manager.
Note : If it doesn't show the update option in stock file manager, just rename the file from *.zip to *.ozip and try again
Step 2 : Press reboot immediately after the flashing is done
Step 3 (Very important) : Pray that everything works. Bricks can happen to anyone.

If you are on unlocked bootloader,
Step 1:In case you already have TWRP working on pie, simply flash the official stock android pie A16 through twrp and let it boot.
Step 2:Now, let it fully boot into the system
Step 3: Go to stock file manager and follow similar instructions as is for locked bootloader that's written above.


Downgrade guide :

Prerequisite:

In case you are in realme UI (Android 10) and want to roll back to android pie for any reason, you need to backup your data and flash stock pie A16 via TWRP

Step 0 : Back up your data and download stock A16 firmware from the links section below
Step 1 : Go to TWRP and flash stock pie
Step 2 : Flash stock pie again
Step 3 : Format data and reboot


Project Treble for Realme XT :-

You could refer here for what works and what doesn't
https://github.com/phhusson/treble_experimentations/wiki/realme-XT

Prerequisite :

1. You need to have unlocked bootloader

2. Platform tools setup and added to system environmental variables under windows
OR
Just install this : https://forum.xda-developers.com/showthread.php?t=2317790

3. You need to be on realme UI (Android 10)

Typically, you could install GSI without even using TWRP.

Step 1: Download any A/B arm64 GSI of your choice
Step 2: Erase userdata using the command
Code:
fastboot -w
Step 3: Flash system.img using fastboot command
Code:
fastboot erase system && flash system system.img
Step 4: Flash RUI vbmeta with flags
Code:
fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img
Optional : Flashing TWRP helps with installing magisk and device specific treble fixes and is highly recommended.

USEFUL LINKS :

Recovery (Both stock and TWRP), Fastboot images and Official Updates

https://www.androidfilehost.com/?w=files&flid=304989

Realme XT Android 10 C01 (Realme UI)

https://download.c.realme.com/osupdate/RMX1921EX_11_OTA_1010_all_yuEH87qmmZhw.ozip

Realme XT Android pie A16

https://download.c.realme.com/osupdate/RMX1921EX_11_OTA_0160_all_CcmkxwAnmByA.ozip

Realme XT stock vbmeta Android 10 C01 (Realme UI)
 

Attachments

  • vbmeta.img
    4 KB · Views: 361
Last edited:

mehtakush007

Senior Member
Jun 18, 2017
51
1
Help!!

I am on coloros 6 (a16) and i have unlocked bootloader (twrp not installed) so how can i update it to rui. Via stock file manager method or just install twrp in a16 and flash rui(c_02) ozip in twrp. So, Which will be a better and safe way to update and avoid bricking the phone according to you.
 

pjgowtham

Senior Member
Apr 25, 2011
845
177
I am on coloros 6 (a16) and i have unlocked bootloader (twrp not installed) so how can i update it to rui. Via stock file manager method or just install twrp in a16 and flash rui(c_02) ozip in twrp. So, Which will be a better and safe way to update and avoid bricking the phone according to you.

Use the stock recovery for update and wait for official OTA.
 
  • Like
Reactions: mehtakush007

Leamusex

New member
Mar 31, 2020
1
0
Reset Device

My device is locked and now i forgot my password and when i am trying to wipe data from realme ui recovery its asking for password again is there anyway to bypass that security and reset my device please help i cant go to sevice centers right now due to lockdown in my country.
 

krizhiel

Member
Jun 1, 2016
22
0
My device is locked and now i forgot my password and when i am trying to wipe data from realme ui recovery its asking for password again is there anyway to bypass that security and reset my device please help i cant go to sevice centers right now due to lockdown in my country.


So u must wait for that. . Me waiting for tutorial to downgrade realme ui to a16 or. How to unlock bootloader with realmeui firmware.
 

pjgowtham

Senior Member
Apr 25, 2011
845
177
My device is locked and now i forgot my password and when i am trying to wipe data from realme ui recovery its asking for password again is there anyway to bypass that security and reset my device please help i cant go to sevice centers right now due to lockdown in my country.

Unfortunately no. you must input password or your data is a lost cause.
 

lolopoldebg

New member
Apr 3, 2020
1
0
PS C:\adb> fastboot flash recovery C:\adb\TWRP_RMX1921_pjgowtham_290320.img
sending 'recovery' (65536 KB)...

it did not flash it just stayed there forever
 

dmmas21

New member
Apr 4, 2020
1
0
I have bricked my device. I have a bootloop. Combinations of keys don't work, recovery doesn't show up. Bootloader is locked. Can anyone help?
 

Shubham9876

Senior Member
Mar 1, 2019
69
3
I bought a realme xt and upgraded it to realme ui version c04 but I get some random crash reports I don't know what is it they just randomly pop up 1-2 times per day along with a screenshot I am uploading those please can someone check.
 

Attachments

  • IMG-20200611-WA0007.jpg
    IMG-20200611-WA0007.jpg
    6 KB · Views: 135
  • bugreport-RMX1921-QKQ1.190918.001-2020-06-10-23-31-05.zip
    4.6 MB · Views: 11

Alipk52

Senior Member
May 14, 2011
729
131
35
Karachi
Anyone who is now used to with this device and have done all these steps from Unlocking bootloader to flashing recoveries to installing custom & Stock Roms, can you please tell me what are the senarios in which this device can brick and only restored by Realme service center? I mean what possible error we can make that gives error of boot/recovery destroyed and only needs to visit realme service center?

I am very new to realme, before getting started with unlocking bootloader, i want to be sure about my steps, actually all i need is to use titanium backup for old data transfer of apps, my phone records etc, and most importantly using viper4android. This is all i am going to do after unlocking bootloader.
 
Last edited:

devcoderpuru

New member
Jun 23, 2020
1
0
Fastboot commands not working

Hey there.
I am using realme xt with realme UI and i tried to unlock the bootloader. The bootloader is unlocked successfully but the fastboot commands arent working now on the device. This is whats happened while relocking the bootloader and same error for flashing recovery.

D:\Root\platform-tools>adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
f40db298 device


D:\Root\platform-tools>adb reboot bootloader

D:\Root\platform-tools>fastboot devices
f40db298 fastboot

D:\Root\platform-tools>fastboot flashing lock
FAILED (Write to device failed (Unknown error))
fastboot: error: Command failed

D:\Root\platform-tools>fastboot flashing lock
< waiting for any device >
^C
D:\Root\platform-tools>fastboot devices

D:\Root\platform-tools>

this also happened while flashing recovery also. And I am kind of stuck i cant relock the bootloader and cant install custom recovery to root the device.
Kindly, guide me to solve this problem. Thanks in Advance.
 

Adriancris7

Senior Member
Aug 22, 2013
101
7
Hi, anybody can help me? I want to sell my phone so i wanted to flash stock rom and lock the bootloader. But i dont find any post or something like that to do so... Do you know how can i flash the stock rom and relock the bootloader like we can do with xiaomi phones?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Realme XT Wiki
    For convenience : https://www.androidfilehost.com/?w=files&flid=304989
    First things first.

    DISCLAIMER : Use this guide at your own risk. I won't be responsible for you bricking your device due to following this guide. It's also necessary to back up your data before you attempt anything.

    Realme XT is not really a developer friendly device as they claim to be for the following reasons.

    - Bootloader restricts flashing critical partitions and certain fastboot options are disabled like
    Code:
    fastboot boot recovery.img
    - The flash tool is only available to service centres.
    - Kernel sources are not actively updated by realme.
    - Nil response to developer's queries.

    Code:
    [B][U]Table of contents :[/U][/B]
    
    - Unlocking the bootloader
    - Unbrick guide
    - TWRP guide
    - Upgrade guide
    - Downgrade guide
    - Project Treble for Realme XT
    - Links
    For unlocking the bootloader, follow the official instrutions from here :

    https://c.realme.com/in/post-details/1184740422732218368

    As of 28/03/20, you can unlock the bootloader in Realme UI. The official guide for XT is still not updated by realme, but the bootloader unlock app tool that was released for realme3pro works for XT.

    UNBRICK GUIDE FOR REALME XT : (FASTBOOT)

    Most bricks that happen with devices are softbricks. This means you can boot into stock recovery using key combination or you can access fastboot.
    Hardbricks are where your device basically does nothing no matter what you do.


    If you are on Color OS 6 or realme UI on locked bootloader :

    - Switch off your device
    - Press volume up + power button hold it until it finishes starting up.
    - You will see the recovery menu now
    - Press online update and connect it to wifi and follow instructions


    If you are on color os 6 on unlocked bootloader :

    Prerequisite:

    1. You need to have unlocked bootloader

    2. Platform tools setup and added to system environmental variables under windows
    OR
    Just install this : https://forum.xda-developers.com/showthread.php?t=2317790

    Since custom ROMS don't deal with critical partitions, there is very less chance that the critical partitions are messed up. Majority of the times you would be fine with just flashing the boot image, system image, vendor image, vbmeta.

    Instructions for color os 6 (Android pie firmware) :

    Download the stock pie A16 fastboot image from the links section and extract it :


    Just flash by executing the following commands :-
    Code:
    fastboot flash boot boot.img
    fastboot flash system system.img
    fastboot flash vendor vendor.img
    fastboot flash vbmeta vbmeta.img
    fastboot flash dtbo dtbo.img
    fastboot flash oppo_sec oppo_sec.img
    fastboot flash modem modem.img
    fastboot flash splash splash.img
    fastboot flash DRIVER DRIVER.img
    fastboot reboot


    If you are on Realme UI on unlocked bootloader :

    Prerequisite :

    Download the stock Realme UI fastboot image from the links section and extract it :

    Note : The zip file has other partitions too. Hopefully, you shouldn't need them.

    Just flash the boot,system,vendor and vbmeta by executing the following commands

    Code:
    fastboot flash boot boot.img
    fastboot flash system system.img
    fastboot flash vendor vendor.img
    fastboot flash vbmeta vbmeta.img
    fastboot flash dtbo dtbo.img
    fastboot flash oppo_sec oppo_sec.img
    fastboot flash modem modem.img
    fastboot flash splash splash.img
    fastboot flash DRIVER DRIVER.img
    fastboot reboot

    Guide to Custom Recovery:

    Prerequisite:

    1. You need to have unlocked bootloader

    2. Platform tools setup and added to system environmental variables under windows
    OR
    Just install this : https://forum.xda-developers.com/showthread.php?t=2317790

    TWRP Recovery

    Orangefox Recovery


    Instructions to install TWRP recovery:



    Run this command
    Code:
    fastboot flash recovery TWRP.img

    You can install orangefox recovery by flashing it via TWRP recovery or by extracting the recovery.img from orangefox recovery.zip file.
    Upgrade guide :

    You can always find the latest update from here : https://www.realme.com/in/support/software-update

    Upgrading from android pie to android 10 carries the risk of bricking your device. Be it locked or unlocked. Thus proceed with caution and ONLY use stock recovery to update from android pie to android 10.

    If you are on locked bootloader,
    Step 1 :Simply download the update of your choice from the Links section and try to open it in stock file manager.
    Note : If it doesn't show the update option in stock file manager, just rename the file from *.zip to *.ozip and try again
    Step 2 : Press reboot immediately after the flashing is done
    Step 3 (Very important) : Pray that everything works. Bricks can happen to anyone.

    If you are on unlocked bootloader,
    Step 1:In case you already have TWRP working on pie, simply flash the official stock android pie A16 through twrp and let it boot.
    Step 2:Now, let it fully boot into the system
    Step 3: Go to stock file manager and follow similar instructions as is for locked bootloader that's written above.


    Downgrade guide :

    Prerequisite:

    In case you are in realme UI (Android 10) and want to roll back to android pie for any reason, you need to backup your data and flash stock pie A16 via TWRP

    Step 0 : Back up your data and download stock A16 firmware from the links section below
    Step 1 : Go to TWRP and flash stock pie
    Step 2 : Flash stock pie again
    Step 3 : Format data and reboot


    Project Treble for Realme XT :-

    You could refer here for what works and what doesn't
    https://github.com/phhusson/treble_experimentations/wiki/realme-XT

    Prerequisite :

    1. You need to have unlocked bootloader

    2. Platform tools setup and added to system environmental variables under windows
    OR
    Just install this : https://forum.xda-developers.com/showthread.php?t=2317790

    3. You need to be on realme UI (Android 10)

    Typically, you could install GSI without even using TWRP.

    Step 1: Download any A/B arm64 GSI of your choice
    Step 2: Erase userdata using the command
    Code:
    fastboot -w
    Step 3: Flash system.img using fastboot command
    Code:
    fastboot erase system && flash system system.img
    Step 4: Flash RUI vbmeta with flags
    Code:
    fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img
    Optional : Flashing TWRP helps with installing magisk and device specific treble fixes and is highly recommended.

    USEFUL LINKS :

    Recovery (Both stock and TWRP), Fastboot images and Official Updates

    https://www.androidfilehost.com/?w=files&flid=304989

    Realme XT Android 10 C01 (Realme UI)

    https://download.c.realme.com/osupdate/RMX1921EX_11_OTA_1010_all_yuEH87qmmZhw.ozip

    Realme XT Android pie A16

    https://download.c.realme.com/osupdate/RMX1921EX_11_OTA_0160_all_CcmkxwAnmByA.ozip

    Realme XT stock vbmeta Android 10 C01 (Realme UI)
    1
    I am on coloros 6 (a16) and i have unlocked bootloader (twrp not installed) so how can i update it to rui. Via stock file manager method or just install twrp in a16 and flash rui(c_02) ozip in twrp. So, Which will be a better and safe way to update and avoid bricking the phone according to you.

    Use the stock recovery for update and wait for official OTA.