Skip to main content

Redmi Note 8

Codename: gingko

To find product name : fastboot getvar product 

Telegram groups:

t.me/rn8discussions
t.me/RedmiNote8Official

Forum XDA

https://forum.xda-developers.com/redmi-note-8

TWRP

https://forum.xda-developers.com/redmi-note-8/how-to/guide-unlocking-bootloader-twrp-rooting-t4031831

Unlocking phone

https://forum.xda-developers.com/t/guide-all-about-unlocking-bootloader-twrp-and-rooting-redmi-note-8-8t.4031831/

USB Debugging (with security)

This requires root, shell access with su, and a way to edit text files as root. I used Termux and and android root file manager that can edit text files.

First, run the following command (su first, to switch to root):

setprop persist.security.adbinstall 1

If you also want to enable "USB debugging (Security settings)", for granting permissions, simulating UI input, etc. via ADB, run the following command too:

setprop persist.security.adbinput 1

Next, we need to edit the edit the file

/data/data/com.miui.securitycenter/shared_prefs/remote_provider_preferences.xml

so that MIUI actually lets us do these things:

Add the following line to the XML file (with all the other ones, before the closing tag):

<boolean name="security_adb_install_enable" value="true" />

TWRP

Was in TWRP 3.3.1-9 To install the correct TWRP version, check the "base" of the TWRP indicated after the version number. E.G. : twrp-3.6.2_9-0-ginkgo.img is a base Android 9-0 twrp-3.5.2_10-2-ginkgo.img is a base Adndroid 10-2 twrp-3.7.0_12-1-ginkgo.img is a base Adndroid 12-1

Some Android versions cannot decrypt your data folder because of incompatibility issues. Simply downgrade to a lower Android base TWRP.

  • Enter Fastboot to install latest TWRP
# To check current recovery tool (with phone powered up)
adb reboot recovery

# Boot to recovery
adb reboot bootloader
# Confirm correctly in fastboot
fastboot devices
# Install latest TWRP
cd "/home/wes/Documents/Cellulaires-ROMs/Redmi Note 8"
fastboot flash recovery twrp-3.7.0_12-1-ginkgo.img
# shutdown phone then "Volume Up + Power" to enter recovery

ArrowOS

  • Boot in recovery

  • Wipe data, cache, dalvik cache

  • Flash latest android-11 firmware (Ginkgo | Willow)

  • Flash ROM zip

  • Format data (if encrypted)

  • Reboot

  • Install Magisk for root

https://www.xda-developers.com/how-to-install-magisk/
Since Redmi Note 8 has no ramdisk, a special guide is required.

  • Install the Magisk app from the official git repo.

  • Push installed recovery locally : adb push twrp-3.7.0_12-1-ginkgo.img /sdcard/Documents/

  • Execute Magisk app

  • Press the Install button on the Magisk card.

  • Enable "Recovery Mode" under Options

  • Choose "Select and Patch a File" under Method, and select the local recovery image.

  • Retrieve the patched image locally : adb pull /sdcard/Download/magisk_patched_[random_strings].img

  • Reboot in fastboot and flash recovery : fastboot flash recovery /path/to/magisk_patched.img

  • Configure Magisk

    • Settings/Systemless hosts
    • Settings/Zygisk
  • Install Magisk Modules
    microG installer : https://github.com/nift4/microg_installer_revived
    safetynet fix : https://github.com/kdrag0n/safetynet-fix

    # microG
    adb push microG_Installer_Revived.zip /sdcard/Documents/
    # Google safetynet fix
    adb push safetynet-fix-v2.4.0.zip /sdcard/Documents/
    
  • Install EasySSHFS
    https://github.com/bobrofon/easysshfs/releases
    adb push easysshfs-0.5.10-release-signed.apk /sdcard/Documents/

  • Install neo-backup
    https://github.com/NeoApplications/Neo-Backup/releases adb push Neo_Backup_release_832.apk /sdcard/Documents/

Reconfigure some apps

Some apps require to re-login after restoration :

  • Banks (Wise ; Desjardins)
  • eMails (Proton ; Tutanota ; etc)
  • Social apps (Instagram ; Viber ; Signal ; Telegram ; etc)
  • Music (Deezer)
  • xMatters

Some interesting modules

https://github.com/Magisk-Modules-Repo/ssh

Lineage OS

https://wiki.lineageos.org/devices/ginkgo/variant1/

Boot to Fastboot/bootloader

adb reboot bootloader 

Flash vbmeta file (to disable boot security feature)

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img 

Flash and boot to recovery TWRP

fastboot flash recovery twrp-3.3.1-9-ginkgo-mauronofrio.img 
fastboot boot twrp-3.3.1-9-ginkgo-mauronofrio.img 

Format Data

TWRP > Wipe > Format Data (not in advanced mode) - No reboot to system 

Reboot in recovery

TWRP > Reboot > Recovery 

Wipe again

TWRP > Wipe > Advanced > Cache, data, dalvik, system 

Flash Disable_DM-Verity_ForceEncrypt

https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389/ 

Flash ROM

Flash Magisk

Reboot to ROM

Reboot to recovery

Generate and Install Smali Patcher module in Magisk

Flash nanodroid setup (to configure nanodroid) - doesn't works.

Flash nanodroid

Source:
https://forum.xda-developers.com/showpost.php?p=81403899&postcount=37

Install smali patcher for signature spoofing

https://forum.xda-developers.com/apps/magisk/module-smali-patcher-0-7-t3680053

Baseband

Version

Firmware Baseband (BAR_GEN_PACK)
V11.0.8.0.PCOMIXM 1.252721.1.260983.1
V11.0.7.0.PCOMIXM 1.246073.2.252721.1
20.1.16 (China) 1.241207.1.242935.1
V11.0.6.0.PCOMIXM 1.239860.1.241207.1
V11.0.3.0.PCOMIXM 1.223797.1.225109.3