Xiaomi Redmi Note 7 - TrebleDroid/treble_experimentations GitHub Wiki
Redmi Note 7 (lavender)
The device works with TrebleDroid perfectly, except the brightness flickering on Android 13+.
Steps to Install
Step 1: Unlocking the Bootloader
- Unlock the bootloader using Xiaomi's own Mi Unlock, which is only on Windows.
- Once the bootloader is unlocked, you will see a unlock symbol, on the top of your boot screen.
Step 2: Enable Debugging Permissions
- Enable USB debugging on your device and make sure ADB is authorized and the reboot to fastboot mode and validate that fastboot can access your device by executing:
$ adb devices
$ adb reboot bootloader # Alternative: hold the power and vol-down button
$ fastboot devices
Step 3: Factory Reset
- Run the following command on fastboot to factory reset your device
$ fastboot -w
Step 4: Flash TWRP or OrangeFox.
- Download the latest version of the official TWRP or OrangeFox
- Flash TWRP with fastboot
$ fastboot flash recovery recovery.img
Step 5: Install Phh-Treble / TrebleDroid AOSP 10 or newer.
- Download the latest version of Phh AOSP 10-12L from here or TD AOSP 13+ from here
- If you'll install Android 14 or newer, it's recommended to use the vendor and boot of a 4.19 kernel ROM.
- If you'll use TD AOSP 16, either flash an Android 11+ custom ROM as a preflash, or if you'll use the stock MIUI vendor, use the '-old' variant.
- Extract the *.xz file to retrieve your system.img (naming scheme will be different)
- If you're flashing with fastboot, run the following command:
# Replace the system-*.img with whatever image you have downloaded
$ fastboot flash system system-*.img
- If you're flashing with TWRP, load the system-*.img to your internal storage using ADB push or similar
$ adb push system-*.img /sdcard/TWRP/system-*.img
- Perform a factory reset and then perform the following sequence of steps: Install > Install Image > Navigate to TWRP > Select "system-*.img"
Step 6A: Install Magisk
- Download Magisk from topjohnwu's GitHub page (v27 or v29 recommended)
- Load the Magisk-*.zip to your internal storage using ADB push or similar:
$ adb push Magisk-*.zip /sdcard/TWRP/Magisk-*.zip
- Install Magisk-*.zip using TWRP by following the sequence of steps: Install > Navigate to TWRP > Select Magisk zip
Step 6B: Install KernelSU (if you're on 4.19 kernel)
- Download KSU manager from weishu's GitHub page (v0.9.5 recommended)
- Download a KSU-patched custom kernel.
- Load the kernel zip to your internal storage using ADB push or similar:
$ adb push *.zip /sdcard/TWRP/
- Install kernel zip using TWRP by following the sequence of steps: Install > Navigate to TWRP > Select kernel zip
- After step 8, install the KernelSU manager and voila!
Step 7: Install GAPPS
- Install GAPPS in the same way as Step 6, if you haven't selected the gapps package
Step 8: Reboot to System
- Wait for the device encryption to complete on the first boot. If you don't want to enable force encryption, you can disable it before this first boot by flashing a zip in TWRP (you should find it on Google)
- The device will reboot and initate the first-boot process. Let it complete and you should be entering the Setup Wizard (if you've installed gapps)
Step 9: Additional Fixes
- To get Play Integrity to pass on this you will need to do a standard Play Integrity fixing Magisk/KSU setup.
Hardware support
Component | Comment |
---|---|
Camera | Status: Working |
Speaker / Mic | Status: Working |
Bluetooth | Status: Working |
WiFi | Status: Working |
SIM / Mobile Data / Voice | Status: Working |
VoLTE | Status: Untested |
Fingerprint | Status: Working |
Offline Charging | Status: Working |
Adaptive Brightness | Status: Working |
Please add other features, if I have missed anything.
Tested By:
-
Username: @satadi
- Model: Redmi Note 7 (lavender)
- Region: India
- MIUI Vendor: MIUI India Stable 10.2.11
-
Username: darkestDark
- Model: Redmi Note 7 (lavender)
- Region: EU
- MIUI Vendor: MIUI Stable 10.2.7.0
Modernized to TrebleDroid by:
- Username: mrdoge0
- Model: Redmi Note 7 (lavender)
- Region: Global
- Custom Vendor: pix106's LineageOS 22.x builds for lavender
Template created by @zguithues and @hackintosh5