- Unlock bootloader
sudo fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
(stock or google)sudo fastboot erase system
sudo fastboot flash system Gsi.img
- 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/)
- Unlock bootloader
- reboot into fastboot (vol- + power)
sudo fastboot boot twrp-3.7.0_12-v7.2_A12-vili-skkk.img
( https://sourceforge.net/projects/recovery-for-xiaomi-devices/files/vili/ )- advanced -> flash TWRP
- format all data and partitions + factory reset
sudo adb push <img> /sdcard/
- (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 - flash system_a
- reboot into system_a
- enable "user alternate audio policy" and "disable soundvolume effect" in Qualcomm featues in Phhu settings # fix sound
- set "force fps" to [email protected] 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"
Procedure is similar as in installation:
0.sudo adb reboot fastboot
(optional)
sudo fastboot erase system
sudo fastboot flash system Gsi.img
sudo fastboot reboot
- sudo adb push
/sdcard/ # alternative sudo adb push
/data/media/0/
- flash system_a
- reboot into system_a
Steps:
- download latest TWRP https://sourceforge.net/projects/recovery-for-xiaomi-devices/files/vili/
- boot via fastboot the twrp:
sudo fastboot boot twrp-3.7.0_12-v7.9_A13-vili-skkk.img
- go to: Advanced > Flash Current TWRP