How To Guide [All-in-One] Poco F5 / Redmi Note 12 Turbo (marble): Unlock Bootloader, Root, Flash TWRP, Flash ROM

Search This thread

nelo360

Member
Aug 5, 2011
10
0
www.superteam.es
I installed via fastboot.

I use universal android debloater (https://github.com/0x192/universal-android-debloater) to debloat - all apps listed are uninstalled.

I use Opencalc from F-Droid to replace MIUI Calculator and Simple notes to replace MIUI Notes.

I would highly suggest you check what I have disabled since you may use some of the apps removed.

Make sure you are not logged into your Xiaomi account when you debloat, as I have uninstalled it and doing so while logged in will cause a bootloop.

Debloat list:

com.android.calendar
com.android.deskclock
com.android.email
com.android.fileexplorer
com.android.hotwordenrollment.okgoogle
com.android.hotwordenrollment.xgoogle
com.android.soundrecorder
com.android.traceur
com.android.updater
com.bsp.catchlog
com.google.android.feedback
com.google.android.gms.location.history
com.google.android.packageinstaller
com.mi.globalbrowser
com.mi.health
com.milink.service
com.miui.backup
com.miui.bugreport
com.miui.calculator
com.miui.cleaner
com.miui.cloudbackup
com.miui.cloudservice
com.miui.compass
com.miui.contentcatcher
com.miui.daemon
com.miui.huanji
com.miui.micloudsync
com.miui.mishare.connectivity
com.miui.newmidrive
com.miui.notes
com.miui.personalassistant
com.miui.phrase
com.miui.player
com.miui.qr
com.miui.screenrecorder
com.miui.touchassistant
com.miui.videoplayer
com.miui.vsimcore
com.miui.weather2
com.qualcomm.atfwd
com.qualcomm.qti.autoregistration
com.quicinc.voice.activation
com.tencent.soter.soterserver
com.wapi.wapicertmanage
com.xiaomi.account
com.xiaomi.joyose
com.xiaomi.macro
com.xiaomi.mi_connect_service
com.xiaomi.micloud.sdk
com.xiaomi.payment
com.xiaomi.scanner
com.xiaomi.simactivate.service
com.xiaomi.xmsf
com.xiaomi.xmsfkeeper
org.ifaa.aidl.manager
Thanks!! At the moment working nice after installed it via fastboot and format data, maybe the twrp have some bugs...
 

asylor

Member
May 27, 2023
6
2
UPDATED on 2023-08-16 add update flashing steps
TL;DR LineageOS GSI 20 Light (2023-06 version) works for most of the things except auto-rotate and (fixed default setting disable auto rotate at home screen lol) newer bluetooth connection (my 5.3 earbud failed, but the old bluetooth speaker works) lol default setting disabled the phone to scan newer bluetooth items...Now everything works


I know I should wait for xiaomi to release source code to have official custom roms, but I am impatient. I did something similar to the post https://forum.xda-developers.com/t/...experience-plus-gsi-for-your-poco-f5.4589783/ but with AndyYan's [GSI][13] LineageOS 20 TrebleDroid-based https://forum.xda-developers.com/t/gsi-13-lineageos-20-trebledroid-based.4517345/ i.e. fastboot flashing LineageOS20 GSI
The light version of LineageOS GSI 20 works for EVERYTHING out of the box https://forum.xda-developers.com/t/gsi-13-lineageos-20-light.4509315/ so this is now the recommended one.


The image I use is bvN of LineageOS 20 GSI TD version please use Light version as it works better. Personally I don't use GAPP and safety net so don't ask me about them.

Steps for flashing GSI rom with fastboot:

Already done section B (Unlock bootloader/wait for 1 week)
1) Download GSI image you need (vN of LineageOS 20 GSI Light for my case) and extract it (xz -d XXX.xz)
2) Turn off the phone, then press volume down and power button to boot into fastboot mode (or any other method to boot into fastboot like with adb command)
3) Disable verification with a vbmeta.img file, or flash an empty one with "fastboot flash vbmeta vbmeta.img" will work also,
fastboot --disable-verification flash vbmeta vbmeta.img
4) reboot to fastboot again
fastboot reboot fastboot
5) Flash the rom with
fastboot flash system [image name of your choice]
I didn't need to delete anything to get more space for the rom, guess it is related to rom size. It auto resized the existing partitions. If you fail to flash directly you may consider delete something first with command like "fastboot delete-logical-partition [something]"
P.S. I did not have enough spaces after multiple flashing, so yes you may delete something like "fastboot delete-logical-partition product_a"

[OPTIONAL] In theory if you need GAPP / microG and your rom does not include them, you should flash them now

P.S. Tested it worked to use the wipe in recovery directly as using command may prompt error, at the end you will still need to use the one in recovery

6) Reboot to recovery fastboot reboot recovery
7) Select wipe data here
8) Select reboot to system in recovery tools and you will boot into the rom you flashed


If you need to update the rom to a newer version manually you skip the data wiping part, that is :
1) Download GSI image you need (vN of LineageOS 20 GSI Light for my case) and extract it (xz -d XXX.xz)
2) Turn off the phone, then press volume down and power button to boot into fastboot mode (wordings looks orange)
3) reboot to fastboot again (wordings will turn blue)
fastboot reboot fastboot
4) Flash the rom with
fastboot flash system [image name of your choice]
5) fastboot reboot

For LineageOS 20 GSI Light version WIFI, Phone calls (including microphone) SMS and mobile data works out of the box, however bluetooth cannot find my Redmi Buds 4 Pro so but my old bluetooth speaker works (earbud is with with newer version of bluetooth 5.3 LE) need to change bluetooth scanning setting to use.

For LineageOS 20 GSI TD version (2023-05 version) on POCO F5 WIFI, SIM mobile data and receiving SMS work out of the box (of course some LineageOS "features" are still there, like SIM card with mobile data should always be in slot one, if you have no mobile data after inserting the card restart the phone and it will work). Nearly forgot to mention the screen sizing of both LineageOS 20 GSI TD and Light works out of the box unlike Pixel Experience plus GSI mentioned in https://forum.xda-developers.com/t/...experience-plus-gsi-for-your-poco-f5.4589783/ Perhaps we may create a list of GSI on POCO F5 to know what features are working.

LineageOS 20 GSI TD version (2023-05 version):
WIFI: working
Mobile data: working
Speaker: working
Microphone: not working (the permission controller shows the apps have accessed to it but no sound)
Phone calls: no sound
SMS: can send and received SMS
Bluetooth: tested with earbud (bluetooth 5.3) can paired but no sound
Auto-rotate: Works

LineageOS 20 GSI Light version (2023-08-14 version):
WIFI: working
Mobile data: working (2023-08-14 versoin I have no 5G plan so I don't know about 5G, but it seems that currently I can only use 3G even my data plan is 4G ?LTE setting is not working correctly, might be ISP related instead of ROM issue Solved, can be fixed with "Reset Wi-Fi, mobile & Bluetooth" option in settings, some sort of bug I guess)
Speaker: working
Microphone: working
Phone calls: working
SMS: can send and received SMS
Bluetooth: works (for new bluetooth items need to enable bluetooth scanning setting, if not then only older bluetooth items can be scanned)
Auto-rotate: failed(default disabled at home screen)Works(need to enable in setting to make rotation works in home screen)
Split-screen: works
Camera: working (need to enable in setting)


Guess I still need to wait for official custom rom for all functions.
Guess I will use LineageOS 20 GSI Light version now


Hope it helps.
 
Last edited:
  • Like
Reactions: xmsjshou

Diivinez

New member
May 28, 2023
3
1
Hey just wondering, 5 days ago i started the bootloader unlocking process (168h wait), today my phone auto updated MIUI, is it possible that that reset the 168h wait timer? im scared to check and someone reset the timer
 

Cni

Senior Member
Oct 26, 2012
72
9
Just installed XiaomiEU Stable and then rooted following your guide, very easy and well explained, thank you.
 

bizdatech

Member
Oct 20, 2009
9
0
Hi guys,

actually i had using the EU rom, but facing difficulty with the banking apps, cuz it said rooted. so i have no choice and don't want to be fussy and go back to china rom, til then suddenly i needed the google maps history location, and found out need to rooted to use magisk to make it happen again.

so i came to find a solution again, seems like no choices still need to root and go for god sake of china rom and rules by the country.

so may i know again.

poco f5 global rom can use on red mi 12 turbo ?? if root to go global rom (meaning i cant lock bootloot on poco rom right?) and my banking apps still going to be problem again?

kinda old for this root-root thing.

never did far research when i buy the phone, poison by the cheap and good for your bang , brought the phone and next week poco f5 release.. and realise i got a china rom due to this spec are not yet global release. :(
 

deepx94

Member
Feb 5, 2018
12
3
I know I should wait for xiaomi to release source code to have official custom roms, but I am impatient. I did something similar to the post https://forum.xda-developers.com/t/...experience-plus-gsi-for-your-poco-f5.4589783/ but with AndyYan's [GSI][13] LineageOS 20 TrebleDroid-based https://forum.xda-developers.com/t/gsi-13-lineageos-20-trebledroid-based.4517345/ i.e. fastboot flashing LineageOS20 GSI

The image I use is bvN of LineageOS 20 GSI TD version (haven't tried Light version). Personally I don't use GAPP and safety net so don't ask me about them.

Steps for flashing GSI rom with fastboot:

Already done section B (Unlock bootloader/wait for 1 week)
1) Download GSI image you need (bvN of LineageOS 20 GSI TD for my case) and extract it
2) Turn off the phone, then press volume down and power button to boot into fastboot mode (or any other method to boot into fastboot like with adb command)
3) Disable verification with a vbmeta.img file
fastboot --disable-verification flash vbmeta vbmeta.img
4) reboot to fastboot again
fastboot reboot fastboot
5) Flash the rom with
fastboot flash system [image name of your choice]
I didn't need to delete anything to get more space for the rom, guess it is related to rom size. It auto resized the existing partitions. If you fail to flash directly you may consider delete something first with command like "fastboot delete-logical-partition [something]"
In theory if you need GAPP / microG and your rom does not include them, you should flash them now
6) Try to wipe existing user data with fastboot command and it will prompt fail to creating new user folder after deleting data (don't worry, MI recovery tool will take care of it)
fastboot -w
7) Reboot again fastboot reboot
8) When it fails to detect user folder it will reboot into MI recovery tools, select wipe data again and it will create new user folder (perhaps step 6 can be skipped and only use this but I am not sure?)
9) Select reboot to system in recovery tools and you will boot into the rom you flashed

For LineageOS 20 GSI TD version on POCO F5 WIFI, SIM mobile data and receiving SMS work out of the box (of course some LineageOS "features" are still there, like SIM card with mobile data should always be in slot one, if you have no mobile data after inserting the card restart the phone and it will work). Nearly forgot to mention the screen sizing of LineageOS 20 GSI TD works out of the box unlike Pixel Experience plus GSI mentioned in https://forum.xda-developers.com/t/...experience-plus-gsi-for-your-poco-f5.4589783/ Perhaps we may create a list of GSI on POCO F5 to know what features are working.

Updated: it seems that microphone is not working, same as bluetooth earbud which can pair and connect but no sound. Speaker itself works but cannot hear in phone calls. Guess they are related to the rom not including the driver or something?

So LineageOS 20 GSI TD version:
WIFI: working
Mobile data: working
Speaker: working
Microphone: not working (the permission controller shows the apps have accessed to it but no sound)
Phone calls: no sound
SMS: can send and received SMS
Bluetooth: tested with earbud can paired but no sound

Guess I still need to wait for official custom rom for all functions.

Hope it helps.
source code released!
 

kondisiema

Member
Sep 6, 2017
16
3
Hi, i have problem, mi flash dont see phone in fastboot mode, i have usb drivers and adb, any advice how to make miflsh see phone?
 

senerex

Senior Member
Apr 15, 2018
146
530
Prishtina, Kosova
Hi, i have problem, mi flash dont see phone in fastboot mode, i have usb drivers and adb, any advice how to make miflsh see phone?
I’ll assume that in your device you have checked "OEM unlocking" and "USB debugging" as per point A.4. in post #1 of this AiO. If yes, then check if your computer recognises your device at all. How to do this? Go to the folder where you have put the "ADB and Fastboot" and open a command window inside that folder. To do that hold together "Shift + Right Click" on any empty white space inside the folder and then select "Open PowerShell Window Here" or "Open Command Window Here". Now connect your device (in fastboot mode) to your computer and please try to use the original cable if possible (it helps). Enter the terminal command in command line: >>fastboot devices<<. If you don't see your device it means that the drivers weren't installed properly or the device wasn't connected properly. If you see your device, then you can clean install directly (no mi flash tool needed) the new fastboot rom as per point H. in post #1 of this of this AiO.
 
Last edited:

kondisiema

Member
Sep 6, 2017
16
3
I’ll assume that in your device you have checked "OEM unlocking" and "USB debugging" as per point A.4. in post #1 of this AiO. If yes, then check if your computer recognises your device at all. How to do this? Go to the folder where you have put the "ADB and Fastboot" and open a command window inside that folder. To do that hold together "Shift + Right Click" on any empty white space inside the folder and then select "Open PowerShell Window Here" or "Open Command Window Here". Now connect your device (in fastboot mode) to your computer and please try to use the original cable if possible (it helps). Enter the terminal command in command line: >>fastboot devices<<. If you don't see your device it means that the drivers weren't installed properly or the device wasn't connected properly. If you see your device, then you can clean install directly (no mi flash tool needed) the new fastboot rom as per point F. in post #1 of this of this AiO.
Thanks for response, i have checked oem unlocking and usb debugging. So the problem is in drivers
 

nuke.pt

Member
Nov 16, 2014
37
5
Sesimbra
Redmi Note 8
followed the guide, installed xiaomi.eu all good, but last step to root xiaomi.eu i dont the option on magisk as direct install, any ideias?

nvm saw my error was downloading the original one isntead of the patched one to the computer
 
Last edited:

t1nengos

Member
Jun 17, 2023
6
0
I flashed my note 12 turbo with global rom and I have problem with my network , it is not stable it says no network available when I call. How do I solve this issue?
 

senerex

Senior Member
Apr 15, 2018
146
530
Prishtina, Kosova
I flashed my note 12 turbo with global rom and I have problem with my network , it is not stable it says no network available when I call. How do I solve this issue?
Some limited number of Note 12 Turbo users (depending on the country/carrier) are facing the same problems with network signal when flashing "miui global" or "xiaomi.eu" roms. This problem seems to be caused by the modem. I hope Xiaomi will soon remove this problem in one of the future updates of Note 12 Turbo.
 
Last edited:
  • Like
Reactions: t1nengos

t1nengos

Member
Jun 17, 2023
6
0
I now want to go back to chinese rom (original rom) how do I go back? Do I download chinese firmware and flash it? and do I have to lock the bootloader or what. I really do not know the process of going back to the original ROM. anyone can help please
 

snaffer2

Member
Oct 2, 2011
11
0
After an update (Xiaomi.eu ROM), do I have to do point C (Root Your MIUI ROM without TWRP) again every time?
 

snaffer2

Member
Oct 2, 2011
11
0
I installed via fastboot.

I use universal android debloater (https://github.com/0x192/universal-android-debloater) to debloat - all apps listed are uninstalled.

I use Opencalc from F-Droid to replace MIUI Calculator and Simple notes to replace MIUI Notes.

I would highly suggest you check what I have disabled since you may use some of the apps removed.

Make sure you are not logged into your Xiaomi account when you debloat, as I have uninstalled it and doing so while logged in will cause a bootloop.

Debloat list:

com.android.calendar
com.android.deskclock
com.android.email
com.android.fileexplorer
com.android.hotwordenrollment.okgoogle
com.android.hotwordenrollment.xgoogle
com.android.soundrecorder
com.android.traceur
com.android.updater
com.bsp.catchlog
com.google.android.feedback
com.google.android.gms.location.history
com.google.android.packageinstaller
com.mi.globalbrowser
com.mi.health
com.milink.service
com.miui.backup
com.miui.bugreport
com.miui.calculator
com.miui.cleaner
com.miui.cloudbackup
com.miui.cloudservice
com.miui.compass
com.miui.contentcatcher
com.miui.daemon
com.miui.huanji
com.miui.micloudsync
com.miui.mishare.connectivity
com.miui.newmidrive
com.miui.notes
com.miui.personalassistant
com.miui.phrase
com.miui.player
com.miui.qr
com.miui.screenrecorder
com.miui.touchassistant
com.miui.videoplayer
com.miui.vsimcore
com.miui.weather2
com.qualcomm.atfwd
com.qualcomm.qti.autoregistration
com.quicinc.voice.activation
com.tencent.soter.soterserver
com.wapi.wapicertmanage
com.xiaomi.account
com.xiaomi.joyose
com.xiaomi.macro
com.xiaomi.mi_connect_service
com.xiaomi.micloud.sdk
com.xiaomi.payment
com.xiaomi.scanner
com.xiaomi.simactivate.service
com.xiaomi.xmsf
com.xiaomi.xmsfkeeper
org.ifaa.aidl.manager

Does it need to be carried out after every ROM update?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    This waiting time sux... i have unlocked many XI devices, but here i have the longest waiting time... i am in the club 168 HOURS. Meh...
    1
    1) Will I still receive official MIUI updates with an unlocked and rooted device?
    2) If the answer to question 1 is yes, will I loose root when the OTA update installs? Or does it "survive" incremental updates?
    1. Yes, but the update on a rooted MIUI will not flash just like that. When I want to update a rooted (MIUI or Xiaomi.EU) rom I usually download the latest/updated full rom (recovery version) from here MIUI (https://xiaomifirmwareupdater.com/miui/marble/) or here for Xiaomi.EU (https://sourceforge.net/projects/xi...files/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv14/), I transfer the downloaded rom to the device, go to settings/my device/miui version/3 dots on top right/choose update package and then install the recovery rom.
    2. Pls check post #2 (FAQ) of this thread, question 4.

    Hi, i have a question, currently my poco f5 have installed miui 14.0.7 global version (TMRMIXM) but there is no a fastboot rom for that version, just "recovery and ota" versions, the last fastboot rom version for my poco is the 14.0.6, ¿can i use it safety?
    Usually a downgrade is not advisable.

    ...after the Update my phone stuck on the bootloop. I havent set up the Mi account in my device after I opened from the box I update the phone right away so I dont have the Mi account on the device. .Question: Do i still have a chance? :( How to fix this issue ? it keeps restarting and stuck on the logo after the update. I tried to wipe all the data by pressing Volume Up and Power button but no luck :( please help I bought this phone overseas. I tried to flash but it failed " Flashing is not allowed in Lock state" how do i unlock the phone? since my phone is stuck on the bootloop...
    A normal update of original MIUI ending in bootloop is highly unusual. I guess you know which MIUI rom was originally in your device. If you can enter fastboot mode then great, in this case pls download the MIUI original rom (the fastboot version) from here (https://xiaomifirmwareupdater.com/miui/marble/), enter fastboot mode in your device by holding together "Volume Down + Power" and connect your device to your computer, and flash as per instructions in point H post #1 of this thread (even in case your bootloader is locked and you didn't connect your Xiaomi Account to your device - of course this is valid only for MIUI which you originally had in your device).

    Thanks to everybody here for sharing their knowledge.
    I have already flashed a custom ROM. Before that, I had rooted my Poco F5 the way @senerex described in OP (C: Root Your MIUI ROM without TWRP).
    After I flashed the custom ROM the device is no longer rooted. I checked it through Root Checker. Maybe this is normal. My question is should I repeat this process (C:Root Your MIUI ROM without TWRP) or do something else because I don't have MIUI ROM anymore?

    Thanks in advance.
    Pls check post #2 (FAQ) of this thread, question 4 valid for MIUI and Xiaomi.EU. For flashing and rooting MIUI and Xiaomi.EU you don't need a twrp. If you have different custom rom then you need twrp, hence please ask the developer of that rom how to root it. Usually for custom roms you download the latest Magisk app in ZIP format and flash it via twrp over the custom rom, but please in any case ask the developer of that rom how to root it.
  • 36
    [All-in-One] Poco F5 / Redmi Note 12 Turbo (marble): Unlock Bootloader, Root, Flash TWRP, Flash ROM


    Dear Poco F5 / Redmi Note 12 Turbo user,

    I'm not responsible if anything happens to your device. If you execute these AiO procedures properly then you shouldn't face any problems. Before you proceed please back up all your important data and make sure that your phone battery is charged >80%!


    A. Prerequisites:

    1. Install ADB and Fastboot tools with drivers on Windows

    How to do this please read here: https://forum.xda-developers.com/t/...vers-15-seconds-adb-installer-v1-4-3.2588979/

    Restart your computer.

    2. Enable "OEM unlocking" and "USB debugging" in your device

    a. Enable Developer Options in: Settings/About Phone/MIUI version. Click on MIUI version 7 or 8 times
    b. Now go to: Settings/Additional Settings/Developer Options and check "OEM unlocking" and "USB debugging"

    3. Create a Mi Account

    If you don’t have a Mi Account, then create one here: https://account.xiaomi.com

    4. Connect your Mi Account to your device

    Go to: Settings/Additional Settings/Developer Options/Mi Unlock status and check "Add account and device"


    B: Unlock the Bootloader

    Unlocking the bootloader will erase all your data! So please back up your data before you unlock the bootloader!

    1. You must enable "OEM unlocking" and "USB debugging" as per point A.2.
    2. You must connect your Mi Account with your device as per point A.4.
    3. Download Mi Unlock Tool here: https://en.miui.com/unlock/index.html
    4. Enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer via USB cable (best would be the original cable)
    5. Start the Mi Unlock Tool
    6. Enter your eMail and your password of your Mi Account (the same account which you added to your device - Point A.4.)
    7. Connect you device to your computer and start the unlock procedure
    8. Follow the unlock tool instructions until the unlock procedure is finished
    9. Reboot your device


    C: Root Your MIUI ROM without TWRP

    1. Your Bootloader must be unlocked (see Point B)
    2. You must enable "OEM unlocking" and "USB debugging" as per point A.2.
    3. Download the fastboot ROM (the same ROM currently installed in your device) from here: https://xiaomifirmwareupdater.com/miui/marble/ and unzip it.
    4. Open the file and extract the “boot.img” on to your computer.
    5. Transfer the “boot.img” from your computer on to your device
    6. Download the latest Magisk manager App from here: https://github.com/topjohnwu/Magisk and install it on to your device.
    7. Open Magisk App and click install, and then "select and patch a file" (of course you select “boot.img”)
    8. Transfer the patched boot.img file from your device’s download folder on to the “ADB and Fastboot” folder in your computer. In the computer rename the patched file into: “patched_boot.img”
    9. Switch off your device. Now enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer
    10. Go to “ADB and Fastboot” folder in your computer and open a command window inside that folder.

    Enter the terminal command in command line: >>fastboot boot patched_boot.img<< and hit enter. Now the device will restart.

    Attention your device is now only temporary rooted, so don’t restart your device just yet. Find Magisk app in your device, open it, click “install” and then check “direct install”, then press “let’s go”. Magisk will now install and make the root permanent. Now click “reboot” and the device will restart.


    D: Install A Xiaomi.eu ROM

    1. Your Bootloader must be unlocked (see Point B)
    2. You must enable "OEM unlocking" and "USB debugging" as per point A.2.
    3. Download and put onto your computer the Xiaomi.eu ROM (please select marble) from here: https://sourceforge.net/projects/xi...files/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv14/ and unzip it.
    4. Switch off your device. Now enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer.
    5. In your computer (in the Xiaomi.eu ROM folder) please click the file: “windows_fastboot_first_install_with_data_firmat.bat" (if you’re using windows, or press the proper file if you’re using mac or linux) and computer will do the rest. The device will restart.


    E: Root Your Xiaomi.eu ROM without TWRP

    1. Your Bootloader must be unlocked (see Point B)
    2. You must enable "OEM unlocking" and "USB debugging" as per point A.2.
    3. Pls find in your computer the downloaded and unzipped hybrid Xiaomi.eu ROM from Point D.2.
    4. Find the file “boot.img” and transfer it on to your device
    5. Download the latest Magisk manager App from here: https://github.com/topjohnwu/Magisk and install it on to your device.
    6. Open Magisk App and click install, and then "select and patch a file" (of course you select “boot.img”)
    7. Transfer the patched “boot.img” file from your device’s download folder on to the “ADB and Fastboot” folder in your computer. In the computer rename the patched file into: “patched_boot.img”
    8. Switch off your device. Now enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer
    9. Go to “ADB and Fastboot” folder in your computer and open a command window inside that folder.

    Enter the terminal command in command line: >>fastboot boot patched_boot.img<< and hit enter. Now the device will restart.

    Attention your device is now only temporary rooted, so don’t restart your device just yet. Find Magisk app in your device, open it, click “install” and then check “direct install”, then click “let’s go”. Magisk will now install and make the root permanent. Now click “reboot” and the device will restart.


    F: Install TWRP

    To be updated once the official TWRP for this device is available.


    G: Install A Custom ROM

    To be updated once official custom ROMs (Lineage etc.) for this device are available.


    H: Return To MIUI

    1. I'm assuming your bootloader is unlocked
    2. You must enable "OEM unlocking" and "USB debugging" as per point A.2.
    3. Download and put onto your computer the latest fastboot ROM from here: https://xiaomifirmwareupdater.com/miui/marble/ and unzip it.
    4. Switch off your device. Now enter the fastboot mode by holding together "Volume Down + Power" and connect your device to your computer.
    5. In your computer (in the folder where you have put your ROM) please click the file:

    a. “flash_all.bat" (if you want to make a clean install but keep the bootloader unlocked).
    b. “flash_all_except_storage" (if you want to make a clean install but keep your data and maintain the bootloader unlocked).
    c. “flash_all_lock" (if you want to make a clean install and lock the bootloader).

    In all three cases (a., b., c.) when flashing is finished, restart your device.


    If my guide helped you, please click "thanks" and enjoy your phone.
    4
    Frequently Asked Questions (FAQ):

    1. Waiting time to unlock the bootloader

    Q. If I receive the message: "unlocking can be done after 72h or 168h or 360h etc.". Is there a way to skip this waiting time?
    A: Unfortunately you have to wait for that time to pass. There’s no way around it (that I know of). It seems like new and never used (to unlock bootloader) accounts receive a shorter waiting time.

    2. Unlock procedure stops at 99%

    Q: If my unlock procedure stops at 99%, what could be the problem?
    A: Most problay you're using two different Xiaomi accounts. You have to use the same account that you have added into the device also in the unlock tool otherwise it will not work.

    3. Recommended ad-blocker (for rooted devices)

    Q: I want to block the advertisement in all apps, what app can you recommend?
    A: If you decide to root your device, then you can install AdAway from here: https://adaway.org/. In order for AdAway to work properly please add in the Magisk App the Systemless Hosts (Magisk/Settings/Systemless Hosts).

    4. Retaining the root after ROM update

    Q: If I root my device as per point C or E of the AiO and I install a system update in my device, is the root still available?
    A: Unfortunately root will be removed after the system update. So you have to repeat the procedure in point C or E (depending on what rom you have in your device).
    1
    i have two questions base on poco F5

    1- what differents between miui rom and xiaomi.eu rom ?

    2- basically poco F5 based on miui rom right ?so if wanna root withou twrp recovery as point C above, need to unlocked bootloader first ?cause on the point C , is not mention to unlocked bootloader
    0. Please don't quote the entire Post no 1 because this thread becomes too long.

    1. I'd recommend to go to Xiaomi.eu, first page, they explained very well the differences between MIUI and Xiaomi.eu.

    2. Without unlocked bootloader you can't make any system modifications. That's why i started the thread with "unlock the bootloader" (Point B). Ok, i updated Point C.
    1
    Hello, I have a bit of a problem. I did as here View attachment 5912923




    View attachment 5912919
    And I can't move on. Please help :)
    I installed the drivers. I enabled fastboot on my phone and I can't click this UNLOCK button

    Answer to your update:

    You have to use the same account that you have added into the device also in the unlock tool otherwise it will not work.
    1
    Thank you for your reply.

    Yes, I am using the same account in both, the unlock tool and the phone. Actually, the process begins normally and reaches 99%, but then does not work. I am using Windows 11.
    u can try factory resetting the phone and trying again.

    NOTE :- You need to turn off wifi and have a sim with data enabled. (I will suggest you create a new account and use your moblie number as login NOT email). If it still doesn't work maybe contact Xiaomi .