-
Notifications
You must be signed in to change notification settings - Fork 663
Xiaomi Redmi 9
wildbeetle edited this page Jun 15, 2024
·
11 revisions
- PC with
ADB
andfastboot
drivers installed. - Unlock bootloader with Mi Unlock or using MTK Client.
- Flash the latest MIUI firmware: mirror 1, mirror 2, mirror 3, mirror 4, mirror 5.
-
vbmeta.img
, can be obtained from the extracted MIUI firmware, it can be found in the images folder.
- Download from Generic System Image (GSI) list .
- Extract
.xz
to.img
- Boot into fastboot mode.
adb reboot bootloader
Or via key combination: hold
Volume Down
+Power
while the device is turned off.
- Disable verified boot.
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
- Moving fastboot from bootloader to userspace (fastbootd)
fastboot reboot fastboot
- Flash the GSI.
fastboot flash system system.img
Note: system.img is the extracted GSI e.g system-td-arm64-ab-vanilla.img.
- Wipe data from MIUI recovery.
fastboot reboot recovery
Choose
Wipe Data
→Wipe All Data
→Confirm
- Reboot.
Return to the main menu Recovery →
Reboot
→Reboot to System
- Enter fastboot in userspace (fastbootd).
adb reboot fastboot
- Flash the GSI.
fastboot flash system system.img
Note: system.img is the extracted GSI e.g system-td-arm64-ab-vanilla.img.
- Reboot
fastboot reboot
Note: No need to wipe data as long as the image is the same e.g
AOSP to AOSP
orLineageOS TD-based to LineageOS TD-based
NOTAOSP to LineageOS TD-based
or vice versa.
Component | Comment |
---|---|
Audio | Working |
Display | Working |
Backlight | Working |
Camera | Working but auxiliary cameras doesn't work |
Bluetooth | Working |
Telephony | Working |
Fingerprint | Working |
VoLTE | Working → Enable IMS features |
- Install vanilla version, GApps version is a bit heavy.
- Disable auto brightness, set brightness manually because when the screen brightness is high the system becomes a bit heavy.
- TrebleDroid developer team for all their hard work.
- All contributors for their respective contributions.