[All-in-One] Redmi Note 7 (lavender): Unlock Bootloader, Flash TWRP, Root, Flash ROM

Search This thread

sasikanth8

Member
Feb 1, 2013
19
0
Can any one point me out to the twrp recovery that is working. My phone is booting to miui recovery after flashing twrp
 

kalevi88

New member
Mar 2, 2021
1
0
1614696963017.png


Hello, I am a beginner so don't come at me too hard. I can't flash twrp into my note 7. It's gives me the error above.

1614697061408.png

These are the files I downloaded from the official twrp link this guide has. The installer is the same version as the disk image. What do I do now?
(I am trying to flash a new ROM even though that folder is named root so ignore that)
 

ahhl

Senior Member
Jul 23, 2007
1,074
114
i am on android 10 miui global 12.
i have successfully install and boot into twrp recovery twrp-3.5.1_9-0-lavendar.
but in twrp, my storage internal was reported as 0kb.
cant mount, cant install anything.

and which magisk i can install? i have install magiskv22.apk but i need stock recovery to patch.....how?
 

Aoi v1

Senior Member
Aug 9, 2012
82
2
The only two causes I can think of are ryzen cpu or usb 3.0 in both cases seems that using an usb 2.0 hub to connect the device can help. Check this answer:

https://forum.xda-developers.com/showpost.php?p=80192763&postcount=426

And these threads:

https://forum.xda-developers.com/poco-f1/help/fastboot-problem-usb-3-0-ports-t3859995

https://forum.xda-developers.com/mi-8/how-to/amd-ryzen-info-platform-t4006377

Will definitely try a second, older computer because my laptop only has 3.0 USB ports. Will report in a couple days, because I can't think of anything else as well. (Not Ryzen CPU)
 

ritooraj

New member
Jun 12, 2021
1
0
Dear Redmi Note 7 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. Disable driver signature enforcement in Windows

If your computer doesn’t recognize Xiaomi drivers then please disable driver signature enforcement. How to do this please read here: http://en.miui.com/thread-237673-1-1.html

2. Install ADB and Fastboot tools with drivers on Windows

How to do this please read here: https://forum.xda-developers.com/showthread.php?t=2588979

Restart your computer.

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

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

4. Check if your bootloader is locked

a. After successful installation of "ADB and Fastboot" 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).
b. 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"
c. 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 this happens please reinstall your drivers from Point A. 2. or try these drivers here:

http://xiaomiadvices.com/download-xiaomi-usb-drivers/

d. If you see your device then enter the terminal command in command line: >>fastboot oem device-info<<

If your bootloader is locked, you'll get the following status (or something similar):

…………………………………………………………………….
(bootloader) Device tampered: false
(bootloader) Device unlocked: false
(bootloader) Device critical unlocked: false
(bootloader) Charger screen enabled: false
(bootloader) Display panel:
OKAY [ 0.058s]
finished. total time: 0.063s
………………………………………………………………………

If your bootloader is unlocked, you'll get following status (or something similar):

…………………………………………………………………….
(bootloader) Device tampered: false
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: true
(bootloader) Charger screen enabled: false
(bootloader) Display panel:
OKAY [ 0.053s]
finished. total time: 0.055s
………………………………………………………………………

5. Request Permission from Xiaomi to Unlock the Bootloader

a. Create a Mi Account: https://global.account.xiaomi.com/pass/register
b. Sign to Xiaomi and apply for unlocking https://en.miui.com/unlock/

6. 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. 3.
2. You must connect your Mi Account with your device as per point A. 6.
3. Download Mi Unlock Tool here: https://en.miui.com/unlock/
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
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

If you get the message, that the unlocking can be done after 72h or 360h or 720h etc., then you have to wait for that time to pass.

C: Install the TWRP Recovery


a. Your bootloader must be unlocked
b. The official twrp can be downloaded here: https://twrp.me/xiaomi/xiaomiredminote7.html. However the official twrp for Redmi Note 7 is not yet available. For the time being please download the latest unofficial "twrp-x.x.x.img" from here https://forum.xda-developers.com/re...overy-unofficial-twrp-touch-recovery-t3921637 and put it into a dedicated folder in your computer and rename it to "twrp".
c. Go to the folder where you have put the twrp-file. Now 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"
d. Enter fastboot mode by holding together "Volume Down + Power" and connect your device to your computer
e. Enter the terminal command in command line: >>fastboot flash recovery twrp.img<<. Attention: Do not restart your device otherwise Xiaomi's original recovery might overwrite the custom recovery twrp!
f. Boot your device into recovery (3 possible methods)
+ by entering terminal command in command line: >>fastboot boot twrp.img<<, or
+ by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
+ by holding together "Volume Up + Volume Down + Power" until you see recovery

If you only want to root your smartphone, then please continue to point D
If you want to install a custom rom, then please continue to point E

D. Root Your Smartphone

a. Download latest Magisk from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 and put it into internal memory of your smartphone or into the micro sd-card or into on-the-go memory stick
b. In the main twrp screen please click "Install", search for the Magisk-*zip*-file and flash it
c. Restart your smartphone

E. Install A Custom Rom

1. Download the desired rom and put it into device's internal memory or into the micro sd-card or into on-the-go memory stick:

a. Lineage

The official Lineage for Redmi Note 7 is not yet available, but when it becomes available you can download it from here:

https://download.lineageos.org/lavender

Lineage roms don't have Google Apps integrated in them.

b. Resurrection Remix

Please download the official Resurrection Remix for Redmi Note 7 (lavender) from here:

https://get.resurrectionremix.com/?dir=lavender

Resurrection Remix roms don't have Google Apps integrated in them.

c. ATOM

Please download the official ATOM for Redmi Note 7 (lavender) from here:

https://sourceforge.net/projects/atom-os-project/files/Ten/lavender/

ATOM roms usually don't have Google Apps integrated in them but the developer of AOSP Extended for lavender is offering both versions, with and without Google Apps.

d. Xiaomi.EU

Download the latest rom (weekly or stable) from here: https://xiaomi.eu/community/

Global Xiaomi.EU roms already have Google Apps integrated in them.

2. (in case you want to have root on your device) Download "addonsu-arm64-signed.zip" (for Lineage: https://download.lineageos.org/extras) or (for other Roms) the latest Magisk (from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445) and put it into device's internal memory or into the micro sd-card or into on-the-go memory stick.
3. If the rom doesn’t contain Google Apps then download Google Apps ARM64, Mini, Pico, Nano etc. from here www.opengapps.org and put them into device's internal memory or computer or on-the-go memory stick or micro sd-card.
4. Enter recovery mode:
+ by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
+ by holding together "Volume Up + Volume Down + Power" until you see recovery
5. Wipe: Dalvik / Art Cache; System; Data; Cache; (be careful, don't wipe internal storage!)
6. Go back to main twrp screen and install the Rom, install Google Apps (if the Rom doesn’t contain them), install "addonsu-arm64-signed.zip" (in case of Lineage) or the latest Magisk (in case of other Roms).
7. Reboot. That's it, you are done.

F. Returning To The Original Xiaomi Rom, MIUI

for those users who would like to return to original Xiaomi rom MIUI, below the flashing instructions and download links for the Fastboot and Recovery roms:

1. Fastboot:

a. Download latest fastboot rom (*.tgz*-file) from here: https://c.mi.com/oc/miuidownload/detail?guide=2
b. Flash the rom as per instructions explained in the a.m. link.

2. Recovery:

a. Download latest recovery rom (*.zip*-file) from here: http://c.mi.com/oc/miuidownload/detail?device=1700360 and put it into device's internal memory or into the micro sd-card or into on-the-go memory stick
b. Enter recovery mode:
+ by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
+ by holding together "Volume Up + Volume Down + Power" until you see recovery
c. Wipe: Dalvik / Art Cache; System; Data; Cache; (be careful, don't wipe internal storage!)
d. Go back to main twrp screen and install the rom
e. Reboot. That's it, you are done.

If my guide helped you please click "thanks" and enjoy your phone.
Hello,
I am trying to unlock Redmi note 4 pro on my window 10 laptop but the unlock tool from mi does not detect the phone when I put it in fastboot mode and connect it via a usb cable. I have been trying online guides for a week now. Any suggestions?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 148
    Dear Redmi Note 7 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. Disable driver signature enforcement in Windows

    If your computer doesn’t recognize Xiaomi drivers then please disable driver signature enforcement. How to do this please read here: http://en.miui.com/thread-237673-1-1.html

    2. Install ADB and Fastboot tools with drivers on Windows

    How to do this please read here: https://forum.xda-developers.com/showthread.php?t=2588979

    Restart your computer.

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

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

    4. Check if your bootloader is locked

    a. After successful installation of "ADB and Fastboot" 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).
    b. 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"
    c. 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 this happens please reinstall your drivers from Point A. 2. or try these drivers here:

    http://xiaomiadvices.com/download-xiaomi-usb-drivers/

    d. If you see your device then enter the terminal command in command line: >>fastboot oem device-info<<

    If your bootloader is locked, you'll get the following status (or something similar):

    …………………………………………………………………….
    (bootloader) Device tampered: false
    (bootloader) Device unlocked: false
    (bootloader) Device critical unlocked: false
    (bootloader) Charger screen enabled: false
    (bootloader) Display panel:
    OKAY [ 0.058s]
    finished. total time: 0.063s
    ………………………………………………………………………

    If your bootloader is unlocked, you'll get following status (or something similar):

    …………………………………………………………………….
    (bootloader) Device tampered: false
    (bootloader) Device unlocked: true
    (bootloader) Device critical unlocked: true
    (bootloader) Charger screen enabled: false
    (bootloader) Display panel:
    OKAY [ 0.053s]
    finished. total time: 0.055s
    ………………………………………………………………………

    5. Request Permission from Xiaomi to Unlock the Bootloader

    a. Create a Mi Account: https://global.account.xiaomi.com/pass/register
    b. Sign to Xiaomi and apply for unlocking https://en.miui.com/unlock/

    6. 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. 3.
    2. You must connect your Mi Account with your device as per point A. 6.
    3. Download Mi Unlock Tool here: https://en.miui.com/unlock/
    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
    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

    If you get the message, that the unlocking can be done after 72h or 360h or 720h etc., then you have to wait for that time to pass.

    C: Install the TWRP Recovery

    a. Your bootloader must be unlocked
    b. The official twrp can be downloaded here: https://twrp.me/xiaomi/xiaomiredminote7.html. However the official twrp for Redmi Note 7 is not yet available. For the time being please download the latest unofficial "twrp-x.x.x.img" from here https://forum.xda-developers.com/re...overy-unofficial-twrp-touch-recovery-t3921637 and put it into a dedicated folder in your computer and rename it to "twrp".
    c. Go to the folder where you have put the twrp-file. Now 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"
    d. Enter fastboot mode by holding together "Volume Down + Power" and connect your device to your computer
    e. Enter the terminal command in command line: >>fastboot flash recovery twrp.img<<. Attention: Do not restart your device otherwise Xiaomi's original recovery might overwrite the custom recovery twrp!
    f. Boot your device into recovery (3 possible methods)
    + by entering terminal command in command line: >>fastboot boot twrp.img<<, or
    + by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
    + by holding together "Volume Up + Volume Down + Power" until you see recovery

    If you only want to root your smartphone, then please continue to point D
    If you want to install a custom rom, then please continue to point E

    D. Root Your Smartphone

    a. Download latest Magisk from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 and put it into internal memory of your smartphone or into the micro sd-card or into on-the-go memory stick
    b. In the main twrp screen please click "Install", search for the Magisk-*zip*-file and flash it
    c. Restart your smartphone

    E. Install A Custom Rom

    1. Download the desired rom and put it into device's internal memory or into the micro sd-card or into on-the-go memory stick:

    a. Lineage

    The official Lineage for Redmi Note 7 is not yet available, but when it becomes available you can download it from here:

    https://download.lineageos.org/lavender

    Lineage roms don't have Google Apps integrated in them.

    b. Resurrection Remix

    Please download the official Resurrection Remix for Redmi Note 7 (lavender) from here:

    https://get.resurrectionremix.com/?dir=lavender

    Resurrection Remix roms don't have Google Apps integrated in them.

    c. ATOM

    Please download the official ATOM for Redmi Note 7 (lavender) from here:

    https://sourceforge.net/projects/atom-os-project/files/Ten/lavender/

    ATOM roms usually don't have Google Apps integrated in them but the developer of AOSP Extended for lavender is offering both versions, with and without Google Apps.

    d. Xiaomi.EU

    Download the latest rom (weekly or stable) from here: https://xiaomi.eu/community/

    Global Xiaomi.EU roms already have Google Apps integrated in them.

    2. (in case you want to have root on your device) Download "addonsu-arm64-signed.zip" (for Lineage: https://download.lineageos.org/extras) or (for other Roms) the latest Magisk (from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445) and put it into device's internal memory or into the micro sd-card or into on-the-go memory stick.
    3. If the rom doesn’t contain Google Apps then download Google Apps ARM64, Mini, Pico, Nano etc. from here www.opengapps.org and put them into device's internal memory or computer or on-the-go memory stick or micro sd-card.
    4. Enter recovery mode:
    + by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
    + by holding together "Volume Up + Volume Down + Power" until you see recovery
    5. Wipe: Dalvik / Art Cache; System; Data; Cache; (be careful, don't wipe internal storage!)
    6. Go back to main twrp screen and install the Rom, install Google Apps (if the Rom doesn’t contain them), install "addonsu-arm64-signed.zip" (in case of Lineage) or the latest Magisk (in case of other Roms).
    7. Reboot. That's it, you are done.

    F. Returning To The Original Xiaomi Rom, MIUI

    for those users who would like to return to original Xiaomi rom MIUI, below the flashing instructions and download links for the Fastboot and Recovery roms:

    1. Fastboot:

    a. Download latest fastboot rom (*.tgz*-file) from here: https://c.mi.com/oc/miuidownload/detail?guide=2
    b. Flash the rom as per instructions explained in the a.m. link.

    2. Recovery:

    a. Download latest recovery rom (*.zip*-file) from here: http://c.mi.com/oc/miuidownload/detail?device=1700360 and put it into device's internal memory or into the micro sd-card or into on-the-go memory stick
    b. Enter recovery mode:
    + by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
    + by holding together "Volume Up + Volume Down + Power" until you see recovery
    c. Wipe: Dalvik / Art Cache; System; Data; Cache; (be careful, don't wipe internal storage!)
    d. Go back to main twrp screen and install the rom
    e. Reboot. That's it, you are done.

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

    Question:

    My computer doesn't recognize my device. What can be the problem?

    Answer:

    1. Check your cable if it is the original one, and if not then use the original one.
    2. Check you drivers if they are installed properly and if not, then re-install them.
    3. If the problem is not with point 1 and 2 then please try another computer.

    Question:

    Can I bypass the waiting time to unlock the bootloader?

    Answer:

    No you can't. You have to wait for that time to pass.
    5
    I found 2000 euros in the street
    I found my wife in the strip club....30 yrs going strong
    5
    thank you, some more details about which miflash button/options i have to click/check (im afraid of getting bootloader relocked), which fastboot/adb command i have to enter, would be nice too :p
    just some words are enough, no need pictures xD

    1. Your bootloader must be unlocked
    2. Download the latest "twrp-3.2.3-0331.img" from previous post and put it into a dedicated folder in your computer and rename it to "twrp".
    3. Download latest Magisk from here: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 and put it into internal memory of your smartphone or into the micro sd-card or into on-the-go memory stick
    4. Go to the folder where you have put the twrp-file. Now 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"
    5. Enter fastboot mode by holding together "Volume Down + Power" and connect your device to your computer
    6. Enter the terminal command in command line: >>fastboot flash recovery twrp.img<<. Attention: Do not restart your device otherwise Xiaomi's original recovery might overwrite the custom recovery twrp!
    7. Boot your device into recovery (3 possible methods)
    + by entering terminal command in command line: >>fastboot boot twrp.img<<, or
    + by holding together "Volume Up + Power" until you see the MI logo, release "Power" button but keep pressing "Volume Up" until you see the recovery, or
    + by holding together "Volume Up + Volume Down + Power" until you see recovery
    8. In the main twrp screen please click "Install", search for the Magisk-*zip*-file and flash it
    9. Restart your smartphone :fingers-crossed: