[RECOVERY][lavender][UNOFFICIAL] TWRP touch recovery for Redmi Note 7

Search This thread

ddj123

Senior Member
Jun 13, 2019
98
5
Amsterdam
Hello, I want to root my Xiaomi redmi note 7. Just root, and keep miui10 leave as it is for the moment.

On many sites I see it is very easy with twrp or orange fox.
But I also read that if you put a recovery on it, (and flash magisk) you get a password error and have to format data.

Which is it? Can you easily root, or will you get password error?
Ps: what if you have to format data, what happens? Is everything gone incl miui?
Safe to root my device?
 

Tatoh

Senior Member
Jul 26, 2012
383
108
Chascomús
If i have to guess this port is abandoned, so I would recommend OrangeFox, that is actually based on TWRP and is currently maintained.
 

SebaS-DG

Senior Member
Aug 21, 2011
341
34
Why twrp is asking for a password?
I formated data, installed pixel e. 10, full bot, add account, reebot to twrp, and twrp is asking me for a password ???

Edit: again I formated data, now with wipes, almost all, installed Pixel Experiencie, add accounts, turn off, boot twrp and AGAIN:
"Mount"
"Decrypt Data"
"Enter Password"

I will format everything again, and look for that "no decrypt data" for redmi note 7...
 
Last edited:

Walden0

Retired Forum Moderator
Nov 24, 2018
2,032
1,187
Jabalpur
Redmi Note 11
Why twrp is asking for a password?
I formated data, installed pixel e. 10, full bot, add account, reebot to twrp, and twrp is asking me for a password ???

Edit: again I formated data, now with wipes, almost all, installed Pixel Experiencie, add accounts, turn off, boot twrp and AGAIN:
"Mount"
"Decrypt Data"
"Enter Password"

I will format everything again, and look for that "no decrypt data" for redmi note 7...
1. Flash orangefox recovery.
2. Do the whole procedure and let the data be encrypted.
3. When setting up a lockscreen, don't enable 'secured boot' and just skip to the lock screen preference. This should solve your issue.
 

saiojitsu

Senior Member
May 14, 2014
67
4
1. Flash orangefox recovery.
2. Do the whole procedure and let the data be encrypted.
3. When setting up a lockscreen, don't enable 'secured boot' and just skip to the lock screen preference. This should solve your issue.
i don't understand third point: what lockscreen? of orangefox? i don't see this preference.
 

redcquiem

Senior Member
May 9, 2018
150
35
Hi, I'm trying to boot this (Don't flash) with the command "fastboot boot recovery.img" and it doesn't work, it boot into system.
Any idea of what can be the problem?
 

polware

Senior Member
Jul 13, 2019
124
42
Huila
I want to install TWRP and Magisk keeping the stock ROM (MIUI 11), but I have doubts in the steps to follow, please can someone guide me on the proper procedure to flash everything?
 

Isnaiter

Member
Dec 7, 2012
29
2
How I do to boot into twrp just once?

Did this: "Run "fastboot flash recovery recovery.img" in command line"

Then tried reboot into recovery and normal and the phone asked password, I read about android pie bug, I use everything stock, I will need to wipe all my data to use twrp? I just want to flash a smali patch, don't want to keep twrp.

#EDIT
Well, I could boot into TWRP, is there a way to save my data by here?
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 92
    https%3A%2F%2Fimg.xda-cdn.com%2FpSvihPyfhapF9LoHqaNVoQ9y7kw%3D%2Fhttp%253A%252F%252Flh3.googleusercontent.com%252F2HtVAF5zfNMlmKhF0QYqCSr1rsstB1btNfdKl7WvGTcZkOSKCYNxdXwsSizx9VhiPg%253Dw300

    Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. It's a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

    Code:
    #include <std_disclaimer.h>
    
    /*
     * Your warranty is now void.
     *
     * We are not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this ROM
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point the finger at us for messing up your device, we will laugh at you.
     *
     */

    Features:
    • All function in a normal TWRP
    • Multi-language support
    • Supports MTP
    • Support decrypt /data!

    Install guide:
    1. Install fastboot tools from google's sdk on your PC
    2. Enter fastboot mode
    3. Unlock your bootloader
    4. Run "fastboot flash recovery recovery.img" in command line
    5. Reboot and enjoy it

    Download:
    https://drive.google.com/uc?id=1rp_cgVuk6fsRybN0wDoOTbt_Pc-vOiHx&export=download

    Source code:
    https://github.com/omnirom/android_bootable_recovery
    https://github.com/thelazyindian/android_device_xiaomi_lavender-twrp

    Note:
    • Due to a bug in android pie, the recovery may ask for pattern if you have set PIN/password for encryption (and vice-versa). Unfortunately, to fix this you need to format your data partition and ask the developer of ROM to include this commit.
    • When you flash twrp for the first time in MIUI you need to goto Wipe > Format Data otherwise you won't be able to boot to system as it will ask for password.
    • GAPPS FIX: In TWRP, goto Mount > system_root and try reflashing.

    FAQ:
    How is it different from other TWRPs available for lavender ?
    This build uses standalone decryption which is better than the recoveries using vold decrypt as vold decrypt will fail if system ROM is corrupt or wiped

    Credits:
    Huge thanks to @abhishek987 and @vasishath for helping
    @tufadorin @faraz shafi (For testing)
    9
    Changelog:

    Build 03/05/19:
    • Add offset for notch
    • Updated prebuilt kernel built from source
    • Option to mount system as system_root to fix GAPPS flash error
    • Enable /vendor wipe option

    Links updated in OP
    6
    If you flashed TWRP, but you can't get into the TWRP recovery screen, this is for you:
    I was having the same issue, but this phone is tricky.
    Just DON'T USE fastboot boot recovery.img

    1. Boot into Fastboot screen
    2. fastboot flash recovery recovery.img
    3. Check if flashed ok in the cmd prompt and remove the usb cable while the fastboot screen is on
    4. Keep pressed Volume UP + POWER until the phone reboots - after the first vibration, remove your finger from power button, but keep Volume UP.
    5. You should boot into TWRP screen.

    If you use "fastboot boot recovery.img" - the old recovery from gets back - DON'T USE IT

    Well, at least that's how it worked for me on two Redmi Note 7 lavender (64gb rom/4gb ram).
    4
    Can you install official miui ota zip after installing twrp and magisk?
    Would it brick the device?

    It won't brick the device, but no you can't install them.
    The update will just fail and reboot you back into MIUI. Everything working as usual.

    If you want TWRP/Magisk installed and get updates then you'll have to manually download the 'Recovery ROM' to the update you want to update to. Then flash it in TWRP like you would a custom ROM.
    You'll want to reinstall Magisk after you flash the Recovery ROM to get root back.

    TWRP remains intact