Skip to content

Instantly share code, notes, and snippets.

@danpawlik
Last active May 8, 2024 11:59
Show Gist options
  • Save danpawlik/acb2f59d370fce55bfe0a3b92eee78b8 to your computer and use it in GitHub Desktop.
Save danpawlik/acb2f59d370fce55bfe0a3b92eee78b8 to your computer and use it in GitHub Desktop.
Flashing GSI on Xiaomi Mi 11T Pro (vili) treble phhusson

Installation

Steps:

With computer

  1. Unlock bootloader
  2. sudo fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img (stock or google)
  3. sudo fastboot erase system
  4. sudo fastboot flash system Gsi.img
  5. If you have an error in step 5 "not enough space to resize partition": sudo fastboot delete-logical-partition product_b (if fastboot getvar all "current-slot" is a, run: sudo fastboot delete-logical-partition product_a - https://www.droidwin.com/fix-failed-remote-not-enough-space-to-resize-partition/)

via TWRP

  1. Unlock bootloader
  2. reboot into fastboot (vol- + power)
  3. sudo fastboot boot twrp-3.7.0_12-v7.2_A12-vili-skkk.img ( https://sourceforge.net/projects/recovery-for-xiaomi-devices/files/vili/ )
  4. advanced -> flash TWRP
  5. format all data and partitions + factory reset
  6. sudo adb push <img> /sdcard/
  7. (alt) if you have error "No space left on device" try: sudo adb push <img> /data/media/0 # if once again error, reboot into recovery once again
  8. flash system_a
  9. reboot into system_a

After setup, recommended changes:

  • enable "user alternate audio policy" and "disable soundvolume effect" in Qualcomm featues in Phhu settings # fix sound
  • set "force fps" to 1080x2400@120.00001 in "Misc features" in Phhu settings # enable 120hz
  • set "Force alternative backlight scale" in "Misc features" in Phhu settings # fix brightness
  • set "Force enable Camera2API HAL3" "Misc features" in Phhu settings # fix issues with some gcam app
  • Install IMS APK for Qualcomm pre-vendor and enable "request IMS network" in IMS features in Phhu settings NOTE: If you have an issue that the "Phone" is not working correctly, make sure that "force the presence of 4g calling" is not enabled in Phhu settings in IMS features!
  • enable 5G network by typing: *#*#4636#*#* in the "phone" application, then in "about phone" set the prefered network type: "NR/LTE/GSM/WCDMA"

Update

Procedure is similar as in installation:

with computer

0.sudo adb reboot fastboot (optional)

  1. sudo fastboot erase system
  2. sudo fastboot flash system Gsi.img
  3. sudo fastboot reboot

with TWRP

  1. sudo adb push /sdcard/ # alternative sudo adb push /data/media/0/
  2. flash system_a
  3. reboot into system_a

Flashing TWRP

Steps:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment