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

[GUIDE] All about unlocking bootloader, TWRP and rooting Redmi Note 8/8T

Search This thread

wagnerax

New member
Dec 16, 2010
3
0
Hello !

I have a bit of a problem flashing a custom recovery on my redmi note 8.

Did the bootloader unlock, it worked (litlle unlock icon on boot).
Did the fastboot recovery flash (no error code), but when I try to reboot to recovery, I boot xiaomi 3.0 recovery instead.

I tried orangefox, twrp and lineageos recovery with no success.

The phone is running MIUI Global 12.0.6.0 stable.
Should I downgrade do an earlier version of the official rom before flashing the recovery ?
 

wagnerax

New member
Dec 16, 2010
3
0
Do it again but this time, after flashing your custom recovery, REBOOT YOUR DEVICE TO RECOVERY FIRST, NOT IN ANDROID!!! Only after this you should reboot normally.
This is the secret
After I flashed the recovery I tried the command 'fastboot boot recovery.img' but it didn't work. Should I use 'fastboot reboot' while holding volume up to reboot in recovery? I'll try again tonight.
 

satria150

Member
May 5, 2016
27
0
hi guys,

I have redmi note 8 ginko. I want to downgrade to miui 11. the battery drain in miui 12.0.2.0 is unberarable.

Tools i download :
miflash_unlock-en-5.5.224.24
minimal_adb_fastboot_v1.4.3_setup

Steps i do :
- Go to Settings > Additional Settings > Developer Options.
done

- Enable OEM Unlocking, USB Debugging and USB Debugging (Security Settings) .
done

- Also add account in Mi Unlock Status (Can be found in Developer Options).
done by turn on mobile data

- Install the required ADB and Fastboot drivers in your PC from here.
done

- Download Mi Unlock to PC from here, and sign in with your Mi Account.
I extract miflash_unlock-en-5.5.224.24.
Then I run "batch_unlock", is this correct or not ?
I sign in using my miui account

- Shut down your phone manually, and hold volume down key and power button to enter Fastboot mode.
Done. in FAST boot mode the robot.

- Connect your phone to PC using USB cable and click "Unlock" in Mi Unlock Tool.
I connect using original xiaomi cable. nothing happened in miflash unlock.
It did not detect my redmi note 8.

Did i miss something here ?

Please me guys.

Waiting for reply with best regards

update status:

I install latest version of miflash_unlock-en-5.5.224.55

This miflash is working properly.

But I have to wait for 168 hours later to unlock again, so i am in the right track.

Thanks
 
Last edited:

satria150

Member
May 5, 2016
27
0
Hi Guy, finally i can unlock my phone using miunlock.

I installed twrp.
and
Magisk-v21.4

but failed to install this :
no-verity-opt-encrypt-6.1

Fo custom rom, i am planning to install this. below custom rom.
RROS-Q-8.7.3-20210923-ginkgo-Milestone

Is there any specific steps i need to do ?

I just want to running away from miui 12 that drained my battery like crazy.
 

IHyyperioni

New member
Oct 16, 2021
1
0
Although I have root access and can grant SU privileges ramdisk and a/b both says no, sar is yes and safetyNet fails.

Using magisk 23.0

Anyone found a fix
 

Uluru25

Senior Member
Nov 27, 2016
180
68
Samsung Galaxy S7
Samsung Galaxy A6
Hi Guy, finally i can unlock my phone using miunlock.

I installed twrp.
and
Magisk-v21.4

but failed to install this :
no-verity-opt-encrypt-6.1

Fo custom rom, i am planning to install this. below custom rom.
RROS-Q-8.7.3-20210923-ginkgo-Milestone

Is there any specific steps i need to do ?

I just want to running away from miui 12 that drained my battery like crazy.
What do you mean with "failed to install"? You know you just have to flash the zip from the recovery as the last step before rebooting into the rom? What message did you receive when it failed? Maybe try to download a different 'version' of this dfe-file it it was corrupted during download.
 
  • Like
Reactions: MadK9
Although I have root access and can grant SU privileges ramdisk and a/b both says no, sar is yes and safetyNet fails.

Using magisk 23.0

Anyone found a fix
I have Note 8T EEA version. My fix was the magisk modules circled from the screenshot.
IMG_20211017_102418.jpg
Screenshot_2021-10-17-10-26-26-563_com.topjohnwu.magisk.jpg
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    what does this mean ? that I have to keep the phone connected to the USB for 168 hours ?
    No, not needed. You can unplug it from the PC, you can power-off the device, and you can remove the sim card to use it in your current phone (if you want).
  • 60
    Code:
    /*
     * Your warranty is now void.
     * I am 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.
     * YOU are choosing to make these modifications, and if
     * you point the finger at me for messing up your device, I will laugh at you.
     */

    A guide to unlock bootloader, flash a custom recovery and root your Redmi Note 8/8T device :


    1. UNLOCKING BOOTLOADER :

    Backup your data first. Unlocking will erase your data.

    - Enable Developer Options in your phone by tapping the "MIUI Version" 7 times in About Phone.
    - Go to Settings > Additional Settings > Developer Options.
    - Enable OEM Unlocking, USB Debugging and USB Debugging (Security Settings) .
    - Also add account in Mi Unlock Status (Can be found in Developer Options).
    - Install the required ADB and Fastboot drivers in your PC from here.
    - Download Mi Unlock to PC from here, and sign in with your Mi Account.
    - Shut down your phone manually, and hold volume down key and power button to enter Fastboot mode.
    - Connect your phone to PC using USB cable and click "Unlock" in Mi Unlock Tool.
    - You will be given a specific time (168 hours usually).
    - Wait for the given time. Make sure to use your phone and don't log out of your mi account from the phone or reset your device.
    - Once waiting time is over, redo Unlock process.
    - Your phone will be unlocked successfully. :)

    2. FLASHING TWRP :

    - Install the required ADB and Fastboot drivers in your PC if not already in step 1. from here.
    - Download TWRP from here.
    - Put that TWRP in the ADB and Fastboot installed folder (mostly C:\Program Files (x86)\Minimal ADB and Fastboot).
    - Rename that recovery(TWRP file) to "recovery" for convenience (optional).
    - Click on Start Menu, type cmd
    - Right click and select Run as administrator
    - Then type:

    Code:
    cd C:\Program Files (x86)\Minimal ADB and Fastboot

    - Now Connect your phone to PC With USB Debugging on (keep phone on).
    - Type:

    Code:
    adb devices

    and accept the pop up on phone's screen.
    - Now reboot your phone to Fastboot mode either manually by shutting down phone and then holding volume down key and power button or by:

    Code:
    adb reboot bootloader

    - Once in Fastboot mode type:

    Code:
    fastboot devices

    - Your device ID will be visible on Screen.
    - Then type(hit ENTER after each line):

    Code:
    fastboot flash recovery recovery.img
    fastboot boot recovery.img

    - Now your phone will boot into TWRP.
    OPTIONAL STEPS (Not Recommended): Encryption is always recommended for better security. However if you don't want encryption in your device, follow these steps. Again, not recommended.
    - In TWRP go to Wipe and select Format Data(don't go to advanced). Type yes and format data. [This process will format all your data so make sure your data is backed up]
    - Go back to TWRP home and Reboot > Recovery.(Don't reboot system or else you will have to repeat whole process again).
    - Done :)

    3. ROOTING :

    - Download Magisk zip to PC from here.
    - Download Universal DM-Verity and ForceEncrypt disabler from here. (Only required if you followed optional steps.)
    - When in TWRP transfer the file(s) to phone and go to Install.
    - Here select Magisk zip file and swipe to flash.
    - Then select Universal DM-Verity and ForceEncrypt disabler zip and swipe to flash(Make sure to flash this at last or else phone won't boot). (Only required if you followed optional steps.)
    - Reboot system.
    - Done. Debloat. Enjoy :)

    Links
    1. Minimal ADB and Fastboot
    2. MI Unlock Tool
    3. TWRP
    4. Magisk
    5. Universal DM-Verity and ForceEncrypt Disabler (OPTIONAL)


    If this helped you then hit the Thanks Button. Good Luck. :)
    4
    Thanks for guide. Anyway, latest versions of Windows 10 don't have "Open command prompt here" option. Instead, they have PowerShell. I don't know how PowerShell will react with ADB, so, for these Windows 10 is better to:

    1. Click on Start Menu, type cmd
    2. Right click with mouse and choose "Run as administrator"
    3. Type these commands (hit ENTER after each line):
    4. cd\
    5. cd "program files (x86)
    6. cd "minimal adb and fastboot"

    Now the user is on right folder.

    --------------------------------

    A question: I'm on stock ROM and have a Google Apps account on my phone, and I'm currently using stock Second Space feature to handle it. As encryption is mandatory to use a Google Apps account, I can't use "disable encryption". Or will Second Space be encrypted even if "main account" isn't? There are any problems to use Magisk with encrypted phone?
    3
    Dear OP, thanks again for your very helpful guide! Since meanwhile something changed with magisk installation procedure (as far as I understood no longer recommended or even working by flashing from the recovery) I would be very glad if you could update this section (especially for use of A11 custom ROMs). Thanks in advance if you will find the time for doing so.
    Hi, thanks for the information. I'll look into it and update as needed. :)

    i got these error messages.
    after reboot twrp is still there, it is not replaced by the original recovery
    magisk is installed and root is ok
    factory reset not working (from settings or from twrp)

    miui 12.0.3

    can you help me understand what's wrong?
    Try this once :
    Twrp > mount > unmount(untick) data
    now go to wipe > format data (don't go to advanced) > type yes > reboot

    make sure all your precious data is copied in sd card or pc as this process will format whole internal storage of your device.
    2
    Why do you say to back the phone up before starting the Unlock. How is one supposed to accomplish that without TWRP or why even? I guess I will go right into flashing a custom rom (which one would you suggest?) or stock (never!) after it's rooted, so I don't understand what I would be saving?
    I see that your question has been answered very accurately already and I don't think it needs any further explanation..about the backing up data part I meant to backup your internal storage. Since you have to wait for about a week to unlock so few users might start using it as a daily device for that time with all their photos,videos and apps and stuff, so basically just copy all your necessary stuff from internal to PC as unlocking will format your internal storage. About custom rom suggestions I'm myself using EU weekly lol..aosp based roms are starting to gain speed in development but I'm still waiting for a few more stable builds to be released :)

    Managed to work it out:

    1. Install TWRP via fastboot, don't bother with vbmeta.img.

    2. Wipe all except internal storage and then install PE zip.

    3. Format data then reboot to fresh pixel experience install.

    4. Set up and check encryption is enabled then reboot to TWRP.

    5. Install magisk 20.3 zip, check it says encryption and DM Verity is enabled in the log of that install (will be during the flash process)

    6. Boot to pixel experience and open the magisk manager APK, check safety net test and if failed then install safety net v3 patch from repositories and reboot.

    7. Enjoy and job done!

    Hope that can help somebody in future.

    Cheers!
    Glad you've figured it out. Format data=decryption. After flashing fastboot rom, boot till android setup and then in twrp wipe all and flash custom rom,magisk,gapps whatever you want and reboot..do not format data in any step. I also updated the post for users who want to stay encrypted. :)

    Is it possible to unlock the bootloader without mi account?
    I mean without letting mi know that u r unlocking "this" specific device...
    nope unfortunately to unlock your device you need to login to your mi account in your phone and then wait for the specified time..But you can lock it any time you want by flashing fastboot rom via mi flash and selecting "clean_all_and_lock" or just use
    Code:
    fastboot oem lock
    to lock the bootloader of your device :)
    2
    @the_weird_aquarian thanks for the tutorial mate, do i have to flash dm verity everytime i flash magisk????

    and also I found this tutorial and software for flashing twrp, is it ok to use this software too?
    https://github.com/XiaomiWiki/XiaomiWiki.github.io/blob/master/wiki/Flash_TWRP_and_custom_ROMs.md

    dm-verity is just required to stop the stock mi recovery from coming back. Hence it's just for MIUI based roms. However disable forceencrypt helps you get rid of force encryption of miui or other custom roms(so that you can access internal storage from recovery too if you are flashing something). The zip provided has both features in one file. Just rename the file to whatever you want to disable(see instructions here).

    Regarding that tool on github, I have never used it personally as I like doing each step myself so if something goes wrong I know the last working step and from there I can figure out what went wrong. Using the tool might or might not work for you. Use at your own risk.