How To Guide [MIUI12~13 A11~12.0/12.1][UNLOCK][ROOT] Picture guide unlock bootloader, flash custom ROMs & root Xiaomi Poco X3 Pro

Search This thread

pl1992aw

Senior Member
Apr 5, 2019
1,232
923
my custom recovery was gone, so I had to reflash it... (not sure why, I did restarted to recovery after first boot, several times! now also)

If your OS is Official MIUI, the custom recovery will be replaced with official MIUI recovery on every boot.

Someone mentioned OrangeFox recovery had an option to let the custom recovery not replaced by official recovery. I did not test it though.
 
  • Like
Reactions: sandi052

iTryH

Senior Member
Nov 15, 2020
70
4
With OnePlus you can unlock and relock the bootloader without any sign that it was unlocked before. Can this POCO do the same and also does the unlock icon at the top on bootup disappear if you relock?.

Many thank's friends and Happy New Year!.
 

pl1992aw

Senior Member
Apr 5, 2019
1,232
923
With OnePlus you can unlock and relock the bootloader without any sign that it was unlocked before. Can this POCO do the same and also does the unlock icon at the top on bootup disappear if you relock?.

Many thank's friends and Happy New Year!.

Relock with non-correct region MIUI official ROMs will very likely brick your phone.

You cannot relock with custom ROMs, it will very likely brick your phone.

Only relock with original matching region MIUI official ROMs to be safe.

If you want to switch to other region, you can search in XDA forum about switching region without unlocking bootloader.

The unlock icon at the top on boot up will disappear after relock.
 
  • Like
Reactions: kd276

seitentaisei

Senior Member
Jun 12, 2012
50
3
Teresa, Rizal
Good day! I hope someone helps me out. I have a Poco X3 Pro (Vayu) and I just unlocked the bootloader today. I'm trying to install a TWRP recovery and a custom ROM and I decided to use Xiaomi EU since I already have it in my Poco F2. I am reading the instructions when I came across ARB Index and got totally confused. I can't seem to find the ARB index of the ROM I'm trying to install and if TWRP also has an ARB Index. I am going to use the Custom ROM found here and TWRP from here. My phone has Antiversion: 2. Thank you in advance.

Edit: My phone's version is MIUI Global 12.5.7 Stable
 
Last edited:

pl1992aw

Senior Member
Apr 5, 2019
1,232
923
Good day! I hope someone helps me out. I have a Poco X3 Pro (Vayu) and I just unlocked the bootloader today. I'm trying to install a TWRP recovery and a custom ROM and I decided to use Xiaomi EU since I already have it in my Poco F2. I am reading the instructions when I came across ARB Index and got totally confused. I can't seem to find the ARB index of the ROM I'm trying to install and if TWRP also has an ARB Index. I am going to use the Custom ROM found here and TWRP from here. My phone has Antiversion: 2. Thank you in advance.

Edit: My phone's version is MIUI Global 12.5.7 Stable

There is not ARB index in custom ROMs and custom recoveries.

1645400213119.png


1645400255986.png
 
  • Like
Reactions: kd276

rafaelgirotti

Member
Mar 31, 2016
15
1
Unfortunately the bootloader unlock is not working for me. I get error 1004.
1004:Unknown error. Try again later
VNvfwqw.png

1653650770501.png


Then I tried using the XiaomiTool2 and I get this error:

1653650977209.png


And then on terminal:

1653651155041.png

1653651292567.png
 

pl1992aw

Senior Member
Apr 5, 2019
1,232
923
Unfortunately the bootloader unlock is not working for me. I get error 1004.
1004:Unknown error. Try again later
VNvfwqw.png

View attachment 5624037

Then I tried using the XiaomiTool2 and I get this error:

View attachment 5624043

And then on terminal:

View attachment 5624045
View attachment 5624059

Try install drivers, reboot PC, change USB port, disable PC VPN, reboot internet router, try unlock during midnight, change SIM card into slot 1, use the SIM card you requested unlock bootloader in the phone, reboot your phone.

Try another version as well Direct download link (English Version 5.5.224.55)

Sometimes Xiaomi server has problems. Recently there's problem in unlock bootloader in Europe.
 

rafaelgirotti

Member
Mar 31, 2016
15
1
Looks like it's working now, it showed me the message that I have to wait a few days. Thank you for the help!

EDIT: Using the new version worked!
 

vanjay21

Member
Nov 24, 2014
5
0
can i use this twrp to flash crdroid and pixel experience?

also this twrp is for android 11, is this ok to use even if im on miui 13.0.3.0(android 12)?
 

pl1992aw

Senior Member
Apr 5, 2019
1,232
923
  • Like
Reactions: vanjay21

vanjay21

Member
Nov 24, 2014
5
0
Yes



TWRP can still flash on Android 12 MIUI 13. It cannot see the internal storage however.

The flashing function is still intact.

You will need either microSD card, USB OTG or flash with adb sideload in TWRP and PC.
another one sir, do I need to flash other firmware? before flashing pixel experience 12L?
 

pl1992aw

Senior Member
Apr 5, 2019
1,232
923
another one sir, do I need to flash other firmware? before flashing pixel experience 12L?

You need to go to the ROM thread and find if there's update post by the developer.

There should be instruction whether flash firmware or not.

Or maybe it's written in official website.

I don't know each and every ROM.
 
  • Like
Reactions: vanjay21

rafaelgirotti

Member
Mar 31, 2016
15
1
Hey, I'm here again. My one week waiting has passed. And still, I got another error :(

EDIT: Okay, nevermind. I used the other version you recommended me again, and not it worked!

1654260386619.png
 

vanjay21

Member
Nov 24, 2014
5
0
hello, my twrp recovery got replaced by pixel recovery.. what do i need to do to retain twrp?(make it permanent)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Okay, I did all that but got a different error message:

    View attachment 5625163

    Try the new 6.5 version again.

    Maybe Xiaomi changed something, so the 5.5 version does not work.
    1
    can i use this twrp to flash crdroid and pixel experience?

    Yes

    also this twrp is for android 11, is this ok to use even if im on miui 13.0.3.0(android 12)?

    TWRP can still flash on Android 12 MIUI 13. It cannot see the internal storage however.

    The flashing function is still intact.

    You will need either microSD card, USB OTG or flash with adb sideload in TWRP and PC.
    1
    another one sir, do I need to flash other firmware? before flashing pixel experience 12L?

    You need to go to the ROM thread and find if there's update post by the developer.

    There should be instruction whether flash firmware or not.

    Or maybe it's written in official website.

    I don't know each and every ROM.
    1
    Hi, is Arrow 12 recovery the same as TWRP? Which one is best for flashing Arrow OS 12?

    You can try.

    Start with Arrow recovery since you are flashing Arrow OS 12.

    Recoveries can change if you don't like it.
  • 43
    Thanks for @urbanman2004 guide for Poco X3 Pro. Some sentences still needed, so keeping it similar.

    This guide provides photos & screenshots.

    Simulate
    all process and reduce misunderstanding.

    * May loose warranty after unlock according to Xiaomi policy of the country you bought phone from. Check it yourself.
    * We are not responsible for anything that may happen to your phone by installing any custom ROMs and/or kernels.
    * You do it at your own risk and take the responsibility upon yourself and you are not to blame us or XDA and its respected users.

    Section 1: Unlock bootloader
    (Works for most Xiaomi/Redmi/Poco phones)

    • Keep phone with more than 60% battery.
    1. Register Xiaomi account on PC or Phone doesn't matter. (Use same account in all steps)

    Might ask SMS verification. Keep phone number for this Mi Account until all unlock done and successfully booted into MIUI after step 21.

    2. On phone, sign in your Mi Account from setting. (Use same account in all steps)
    hy4DkTF.jpg


    XZxCz5k.jpg

    3. Turn on Developer option:
    Settings –> About Phone (My Device) –> tap on MIUI version (For POCO) until it says Developer options enabled at the bottom.
    Gofn6XG.jpg


    CBgWSaD.jpg

    4. Turn ON "Find my device"
    nHTZ435.jpg

    XRqUPyb.jpg

    s2VCqJQ.jpg
    QndBFlT.jpg


    5. Back out to Settings, Additional Settings –> Developer options –> Mi Unlock status.
    iaolVCD.jpg


    UW3tU1B.jpg

    02wK1vG.jpg


    6.
    1i6frr5.jpg


    PNofSGL.jpg


    DON'T DO STEP 6 ANYMORE after done it ONCE. Will reset countdown timer if you do that.

    • SIM card inside phone with mobile data doesn't need to be the one linked to Mi-account. Can put a different SIM card as long as it can use mobile data.
    • Only during step 6 you turn off WIFI and turn on mobile data.
      Can do whatever you want to WIFI and mobile data anytime before and after step 6. There's no restriction other than step 6.
    • Can remove your SIM card once step 6 was done. But you still need the number linked to Mi-Account accessible to receive SMS if Mi-Account ask for verification.

    7. Wait for 7 days (Day 1). DO NOT LOG OUT your Mi-Account on your phone.
    • Try not to use phone too much as later will do factory reset and loose all data.
    • Or backup manually. Not gonna write how to backup.
      • No need to connect internet (mobile data and WIFI) all the time.
      • Can use your phone
      • Can even power off phone in the meantime. (Thanks for @kamild_ answer)
    8. Wait for 7 days (Day 2). DO NOT LOG OUT your Mi-Account on your phone.
    9. Wait for 7 days (Day 3). DO NOT LOG OUT your Mi-Account on your phone.
    10. Wait for 7 days (Day 4). DO NOT LOG OUT your Mi-Account on your phone.
    11. Wait for 7 days (Day 5). DO NOT LOG OUT your Mi-Account on your phone.
    12. Wait for 7 days (Day 6). DO NOT LOG OUT your Mi-Account on your phone.
    13. Wait for 7 days (Day 7). DO NOT LOG OUT your Mi-Account on your phone.

    14. Download Xiaomi Unlock tool for Windows PC.
    Direct download link (English Version 5.5.224.55)
    BkIy4OO.png

    NOrWLD6.png


    15. Extract all files into short-named folder. Go into folder and double click on miflash_unlock.exe
    5bJ8Fdv.png


    Different versions, double click on batch_unlock.exe
    rcJT9UI.png

    16. Sign in your Mi Account. (Use same account in all steps)
    EQawftl.png


    xL1xj9n.png

    17. Connect phone with official USB cable to PC. Check on PC if see device.
    S9taFjD.png


    • Turn OFF all locks (screen lock, face lock, fingerprint, pin, bluetooth lock.)
    • Turn ON "Find my device"
    • Logout Google

    If not detected, do as in spoiler:
    1. Double click on MiUsbDriver.exe
      1624109364083-png.5342061
    2. Should see your phone now.
    3. Reboot your PC.

    Backup your data from your phone now. You will loose ALL your data on your phone after step 20.

    18. Shut down/ Power off phone normally manually.

    When screen turn all black for about 30 seconds, hold Vol down + Power button together to enter Fastboot mode.
    yLfgdEo.png

    (Picture from GSMarena)

    Should see Fastboot on phone screen
    zlWsVJQ.png

    19. Connect your phone with official USB cable to PC. Should see on PC a device listed. (Locked)
    KM5WvMu.jpg

    If not detected, do as in spoiler:
    1. Double click on MiUsbDriver.exe
      1624109364083-png.5342061
    2. Connect phone to computer via official USB cable, and confirm your phone shows up recognized as "Android Bootloader Interface" (in Device Manager)
      1624108585394.png
    3. Reboot your PC.

    WARNING !!! From the step later, you will loose ALL your data on your phone. Backup your data from your phone.
    Take out microSD card from device in case something went wrong and destroy microSD card.

    20. Press Unlock, Unlock, Unlock anyway, Unlock anyway. (If you are worried of what it's warning you, don't unlock and don't think of custom Roms or root.)
    NoplT0J.jpg

    Dxtff64.png


    iJGGJXt.png


    BSBepWd.png

    CY0DiNG.png


    If see this or some hours left, wait for remaining countdown hours (count it yourself) and start from step 17 again.
    RpSJX8m.png

    kHzrUEg.png


    The countdown is done on Xiaomi server. Can close the unlock program during the meantime.

    Exit Fastboot mode:
    Unplug phone from PC and hold power button until screen turns black. Will boot into MIUI.

    21. Wait phone boot up, or press Reboot phone if it did not reboot itself.

    If you see this after boot up, use Wifi or insert SIM card with mobile data access and enter your Mi Account password.
    5FcpZ4J.jpg

    RD5Ulwg.jpg


    ##End of Unlock Bootloader process

    Donate: paypal.me/pl1992aw
    33
    Updated to work with MIUI 12~13 or Android 11~12.0/12.1 custom ROMs
    • Unlock bootloader to do the followings.
    • Keep phone with more than 60% battery.

    Section 2: Clean Flash custom ROMs
    (Official Recovery ROMs can be flashed with same method)
    Make it simple using program mentioned in INDEX thread.

    XiaomiADBFastbootTools (Java)
    https://github.com/Szaki/XiaomiADBFastbootTools

    If you don't trust the tools or link below,
    1. Download here:
    https://github.com/Szaki/XiaomiADBFastbootTools/releases
    iqkvbpF.png

    2. For this program to work, install Oracle Java or OpenJDK (Mentioned in Readme)
    Jd5uCwe.png

    Here use Windows to do demo.

    Oracle Java download here or here (Choose either one to install)
    LwXsj8W.png

    Double click and install that on your Windows.

    3. Keep PC connected to internet, find XiaomiADBFastbootTools.jar downloaded and double click on it.
    UeY3VjI.png

    4. Will automatically download SDK Platform Tools.
    5aUkO48.png


    5. Turn ON USB debugging in Developer options (access mentioned in Unlock bootloader step 5)
    L62Yk2A.jpg
    • Logout Mi Account, Google, all accounts.
    • Remove all fingerprint, PIN, password, picture password.
    • Turn OFF Find My Device function.
    • Backup your data from your phone.

    6. Connect phone to PC, swipe down notification on phone and tap MTP/ File transfers
    ttJuPmX.jpg


    5sfr8jb.png

    Or
    p4kdYyB.jpg

    If it's your first time doing this, should see this screen. Choose "Always allow from this computer" and press OK.
    i2VYYuq.jpg


    7. Confirm on PC to see information of your device.
    cvlakl1.png


    8. Find custom ROM and read all reply and original thread. Sometimes firmware requirement and updated info is in replies.
    (Step 8, 9 and 12 and links are POCO X3 pro specific)
    ArrowOS as example: Download on PC Official ArrowOS -vayu ROM for POCO X3 Pro [direct link here].

    Check the date and version as well.
    1623983625978.png
    1625875073908.png


    If phone is not on MIUI version for required firmware, do additional as spoiler:
    Download on PC official MIUI Recovery ROM or MIUI by Xiaomi.eu ROM ZIP (2~6 GB) of POCO x3 pro.

    • EEA is official ROM
    • Xiaomi.eu is custom ROM
    u8Ro01H.png


    9. Download recovery TWRP from here by Nebrassy for POCO x3 pro.
    Q6qKzh4.png


    10. On PC, press "Device" -> "Reboot to" -> "Fastboot"
    RyKJwK4.png


    Should see Fastboot on phone
    zlWsVJQ.png

    11. Program on PC should jump to Fastboot tab
    pqFHbhw.png


    If it did not jump to that tab,
    click on Fastboot tab and choose "Option" -> "Reload device"
    wkcpQW4.png

    Warning !!! Look at the Anti version:
    This is important for Xiaomi/Redmi/Poco phones.

    4sRmk1k.png

    • Only Official MIUI ROMs may have ARB index.
    • Customs ROMs should not have ARB index.

    If your device is Anti version: 2,

    1) you can flash Rom with Anti Roll Back (ARB) index: 3, 4, 5, 6... etc. and the Anti version will become 3, 4, 5, 6... etc.

    2) you can flash Rom with ARB index 2, and the Anti version will remain 2.

    3) you CANNOT flash Rom with ARB index 1. Don't use that ROM in anyway, flashing through custom recovery will likely brick your phone.

    4) If ARB index is 0, that means no ARB of that ROM. It will not check or change your device Anti version.

    Make sure look at ARB index of MIUI ROM and Anti version of your phone. I don't have your phone. You decide to flash.

    How to check ROM ARB index is written in the Source.

    Source:
    https://www.xda-developers.com/xiaomi-anti-rollback-protection-brick-phone/

    12. Assume confirm MIUI ROM safe from ARB, click
    X1UdfgK.png


    Choose
    Q6qKzh4.png
    for Poco X3 pro.

    Change next drop down menu to "recovery".
    • Do not choose wrong option, or may be in BIG trouble.
    vehUX5s.png


    Press Flash Image (Some device cannot do this step, check at your device XDA tutorial)
    Confirm at the Status " Writing 'recovery' Okay "
    1cIvhXE.png


    13. Boot to TWRP
    jABmbYR.png


    Phone should boot into TWRP.
    eCcSjvX.png

    14. Copy or Drag MIUI and custom Rom zip into phone Download folder for easy finding.
    Pc2xAPp.png

    qshpGr2.png


    If PC did not see any folders in your phone from "My Computer" or "This PC", use either options:
    Copy the ROM zip file and [put microSD into / connect USB to] your phone, then continue to step 15
    A)
    tLZPI5L.jpg

    B) Connect phone USB cable to PC.

    C) On PC, navigate to folder C:\user\your user name\XiaomiADBFastbootTools\platform-tools\

    D) Copy or drag the ROMs.zip files into the folder.

    E) Hold keyboard Shift and mouse Right Click in the folder blank space, left click Open command window here
    0MuvwNr.png

    F) In the Command enter the following code in the command window:
    adb sideload custom_ROM_name.zip

    G) After it's done (shown on phone screen), skip to step 16

    15. In TWRP on phone, tap Install
    aB0IU74.png

    If Firmware did not meet needs of custom ROM, do additional in spoiler
    Choose Download folder, or press Select Storage and choose microSD card or USB OTG where you put the ROM, then tap on MIUI ROM zip.
    XAy3ieb.png


    Swipe to confirm Flash
    RAKAUr6.png


    After it's done, press back.

    In Download folder, or press Select Storage and choose microSD card or USB OTG where you put the ROM, tap on custom ROM zip.
    60Dp38A.png


    Swipe to confirm Flash
    rg9sO9k.png

    Wait until it's done

    16. Press back, back, until you see Wipe, tap it and then tap Format Data.
    uQ0QCVS.jpg


    Type yes, press enter.
    mlssVLp.png


    17. Press Reboot System. Wait for like 10~15 minutes until initialization setup shows.
    u1oSf0O.png


    ## End of Clean Custom Rom flashing.

    Dirty Flash / ROM update
    Do this only when developer or users said it can.
    First disable all Magisk module and reboot to prevent issues.

    α) Do Section 2 step 15 with the update custom ROM zip file in your phone storage.

    If TWRP or OrangeFox cannot see any folders in your phone, use either options:
    Copy the ROM zip file and [put microSD into / connect USB to] your phone and do Section 2 step 15 with the update custom ROM zip file, then do step β
    A)
    tLZPI5L.jpg

    B) Connect phone USB cable to PC.

    C) On PC, navigate to folder C:\user\your user name\XiaomiADBFastbootTools\platform-tools\

    D) Copy or drag the ROMs.zip files into the folder.

    E) Hold keyboard Shift and mouse Right Click in the folder blank space, left click Open command window here
    0MuvwNr.png

    F) In the Command enter the following code in the command window:
    adb sideload custom_ROM_name.zip

    G) After it's done (shown on phone screen), do step β

    β) When done, do the following:
    vZUxquq.png


    γ) Then Reboot System.

    ## End of Dirty flashing.

    Donate: paypal.me/pl1992aw
    21
    • Unlock bootloader to do the followings.
    • Keep phone with more than 60% battery.

    Section 3: Install Magisk (Root)
    Install steps and methods were written by topjohnwu (Magisk author) here, but still putting picture guide for POCO X3 Pro.

    1. Download Magisk on you phone, click and install.
    G7CW0Fq.png


    NdDMz1w.png


    vhNT4N6.png


    GbMwdYG.png


    V83aknF.png

    Or find this and tap it once
    yYCd56B.png
    UuBmApN.png


    A) the Easy traditional custom recoveries way :
    (PC/Computer is not needed)
    2A. Rename the downloaded APK file extension to ZIP.
    Magisk-vXX.X.apk

    Magisk-vXX.X.zip

    3A. Reboot to custom recoveries (TWRP, OrangeFox, etc)
    3A-α) manually
    1. Power off your phone, wait until screen turns black,
    2. press and hold Vol+ and Power button Together (most Xiaomi/Redmi/Poco phones) until screen turns on.
      OsdOD9f.jpg

      (Picture from GSMarena)
    3. keep holding Vol+ button, release Power button until booted into recovery.

    3A-β) or with PC program/command
    gRW1smd.png

    4A. In custom recovery on phone, tap Install
    aB0IU74.png

    5A. In Download folder, tap on Magisk-vXX.X.zip.
    HiXe4q6.png


    Swipe to confirm Flash
    dj8TsTV.png

    Wait until it's done

    6A. Wipe cache/dalvik
    bGhcrmR.png


    Then Reboot System
    u1oSf0O.png

    B) the Pro Patch image way :
    (PC/Computer used)
    2B. Choose boot.img and extract from custom Rom/MIUI Rom on PC which match current phone OS.
    8A4l635.png


    Connect phone to PC and copy that boot.img into phone Download folder.
    qshpGr2.png


    3B. In Magisk app, click Install. Select and Patch a file.
    KtQvnqg.png


    fL6Rwpz.png


    gXYDNqI.png


    ubTrvW2.png


    5efZqa5.png

    4B. Copy the patched file to PC somewhere easy to find.
    czpwKgp.png


    5B. Open PC program XiaomiADBFastbootTools
    1) Select image magisk_patched-*****_*****.img
    2) confirm selecting the patched image file name
    3) choose boot partition in next drop down menu
    4) Flash Image into boot partition, Yes.
    RctQ9KS.png


    Wait for "Writing 'boot' OKAY"
    PRpEgVn.png


    6B. Reboot to system
    BoyuP1z.png

    7. Go into Magisk app and check if it's installed.
    GKlFRxt.png

    8. Voila... or can do something more (Didn't feel the difference, though it said Recommended)
    WGSE6il.png


    r1MfGuQ.png


    9. Reboot. Voila! Enjoy Magisk 😃

    ##End of Magisk (Root) installation.

    Section 3.5: Update Magisk
    For Poco X3 Pro, repeat Section 3.

    Donate: paypal.me/pl1992aw
    15
    Reserved... Maybe for troubleshoot

    Q. Why not use Mi-Flash?
    A. Because one may easily accidently Clean All and Lock with different region MIUI and brick the device.
    Go Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40 and see how many users brick their device using Mi-Flash.
    Be sure to check ARB index of MIUI.

    Q. Why flash MIUI with TWRP not Fastboot?
    A. To check you actually had unlocked bootloader. Without unlocked bootloader, you shouldn't be able to boot into TWRP.

    Q. Widevine issues?
    A. Read threads in spoiler:
    You can have Widevine L1 on custom Roms.
    https://forum.xda-developers.com/t/4267263/page-2#post-84919939

    You can lost Widevine L1 on official MIUI Roms even without unlocking or root.
    https://forum.xda-developers.com/t/4281695/
    Devices supporting Widevine L1 certificate renewal officially:

    POCO X3 Pro (vayu) [Stable V12.5.1.0.RJUMIXM+]

    * Cetain devices have been losing Widevine L1 certificate randomly. The reason is unknown to us.
    * Certificate renewal is done via Settings -> Passwords & security -> Fingerprint unlock -> Fingerprint payments -> Widevine (L1)
    https://xiaomi.eu/community/threads/info-widevine-l1-support.61064/

    If your device haven't officially receive MIUI update to 12.5.1.0, try Xiaomi.eu

    Read also:
    https://xiaomi.eu/community/threads/info-widevine-l1-support.61064/#post-606155
    2
    Did you lose anything by unlocking bootloader? Like Widevine or something. Also, any special partition or file one should backup before unlocking (Not counting user data)? In Sony phones user have to backup TA partition or they will lose some features.

    Thanks in advance

    Loss from Unlocking bootloader is written in above tutorial.

    Partition backup is generally not needed if you do things correctly. For now, even if you have full backup of qcn, maybe can't even restore.
    Read here: https://forum.xda-developers.com/t/4276823/post-85014473

    Widevine issue, Read both:

    You can have Widevine L1 on custom Roms.
    https://forum.xda-developers.com/t/4267263/page-2#post-84919939

    You can lost Widevine L1 on official MIUI Roms even without unlocking or root.
    https://forum.xda-developers.com/t/4281695/