Redmi Note 9 - bluehomewu/treble_experimentations GitHub Wiki
Tested on:
- LineageOS 18.1 20210808 from Andy Yan (with modified rw-system.sh), MIUI 12.5.1.0 vendor
Hardware support
Component | Status |
---|---|
WiFi (2.4 and 5 GHz) | Working |
RIL | Working |
Bluetooth | Working |
USB tethering | Working |
WiFi hotspot (2.4 and 5 GHz) | Working |
Fingerprint | Working |
Encryption | Working |
Speaker / Microphone | Working |
USB MTP/PTP/MIDI | Working |
Camera | Working, auxiliary modules are not tested |
NFC | Working |
VoLTE | Not tested |
IR blaster | Not tested |
Offline charging | Broken, stays at OEM logo |
Installing
You should have platform-tools and ADB/Fastboot driver installed
- Download GSI and unpack it (you should have .img file at the end)
- Reboot to fastboot (Power + Vol-)
- Reboot to fastbootd:
fastboot reboot fastboot
- Disable vbmeta:
fastboot flash --disable-verification --disable-verity vbmeta (path to stock vbmeta.img)
- Flash GSI:
fastboot flash system (path to your GSI .img file)
- Wipe userdata:
fastboot format:ext4 userdata
- Reboot
Installing with Magisk
You should have platform-tools and ADB/Fastboot driver installed
- Download GSI and unpack it (you should have .img file at the end)
- Download one of these recoveries: OrangeFox R11.1, SHRP, TWRP 3.5.2_10.0 (be aware that these links might be outdated, to get latest recoveries go to @HelioG85_Updates)
- Reboot to fastboot (Power + Vol-)
- Disable vbmeta:
fastboot flash --disable-verification --disable-verity vbmeta (path to stock vbmeta.img)
- Flash recovery:
fastboot flash recovery (path to your recovery .img file)
- Reboot to fastbootd:
fastboot reboot fastboot
- Flash GSI:
fastboot flash system (path to your GSI .img file)
- Reboot to recovery:
fastboot reboot recovery
- Wipe->Format Data
- Install Magisk
- Reboot
Fixing bugs
Currently Phh Treble settings cant apply presets for some reason, so you have to enable these options:
Misc features->Use alternative way to detect headsets (fixes headphone jack)
Misc features->Force alternative backlight scale (fixes backlight)
Misc features->Force-disable A2DP offload (fixes Bluetooth audio)
Bugs and glitches
Cant remount system as RW
For some reason blockdev errors out:
merlinnfc:/ # mount -o rw,remount /
'/dev/block/dm-0' is read-only
merlinnfc:/ # blockdev --setrw /dev/block/dm-0
blockdev: ioctl 125d: Permission denied
1|merlinnfc:/ #
UI lagging
This problem was fixed by this commit, however UI is still a bit laggy.