Xiaomi Redmi Note 9 - phhusson/treble_experimentations GitHub Wiki

Tested on:

Hardware support

Component Status
Wi-Fi (2.4 and 5 GHz) Working
RIL Working
Bluetooth Working
USB tethering Working
Wi-Fi 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

  1. Download GSI and unpack it (you should have .img file at the end)
  2. Reboot to fastboot (Power + Vol-)
  3. Reboot to fastbootd: fastboot reboot fastboot
  4. Disable vbmeta: fastboot flash --disable-verification --disable-verity vbmeta (path to stock vbmeta.img)
  5. Flash GSI: fastboot flash system (path to your GSI .img file)
  6. Wipe userdata: fastboot format:ext4 userdata
  7. Reboot

Installing with Magisk

You should have platform-tools and ADB/Fastboot driver installed

  1. Download GSI and unpack it (you should have .img file at the end)
  2. 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)
  3. Reboot to fastboot (Power + Vol-)
  4. Disable vbmeta: fastboot flash --disable-verification --disable-verity vbmeta (path to stock vbmeta.img)
  5. Flash recovery: fastboot flash recovery (path to your recovery .img file)
  6. Reboot to fastbootd: fastboot reboot fastboot
  7. Flash GSI: fastboot flash system (path to your GSI .img file)
  8. Reboot to recovery: fastboot reboot recovery
  9. Wipe->Format Data
  10. Install Magisk
  11. Reboot

Fixing bugs

Currently Phh Treble settings can't 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

Can't 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 the UI is still a bit laggy.