Mi Mix 4: Difference between revisions

From Edgar BV Wiki
Jump to navigation Jump to search
Created page with "Get twrp image from https://xiaomi.eu/community/threads/howto-install-recovery-image.66211/ (skkk) - you will need to change the language afterwards from Chinese :) Do NOT g..."
 
No edit summary
Line 1: Line 1:
= TWRP + Recovery ROM =
You need to know a few things:
- it's a recovery image (not a fastboot image - fastboot images need to be flashed using the fastboot command on a PC every time there's an update, recovery images can be flashed using TWRP)
- It has an encrypted A/B partition scheme. Not all versions of TWRP can decrypt and mount these partitions
- you need drivers and the sdk installed and the bootloader unlocked.
Instructions to install everything are https://xiaomi.eu/community/threads/howto-install-recovery-image.66211/
Get twrp image from https://xiaomi.eu/community/threads/howto-install-recovery-image.66211/ (skkk) - you will need to change the language afterwards from Chinese :)
Get twrp image from https://xiaomi.eu/community/threads/howto-install-recovery-image.66211/ (skkk) - you will need to change the language afterwards from Chinese :)


Do NOT get it from https://twrp.me/xiaomi/xiaomimimix4.html as it can't decrypt the data directory or connect the USB.
Do NOT get it from https://twrp.me/xiaomi/xiaomimimix4.html as it can't decrypt the data directory or connect the USB.


rename it (after unzipping) to twrp.img
rename it (after unzipping) to twrp.img


In a command prompt cd wherever the image is on the pc and reboot the phone in fastboot mode (power off, then power on + volume down button - should be an orange fastboot text)
In a command prompt cd wherever the image is on the pc and reboot the phone in fastboot mode (power off, then power on + volume down button - should be an orange fastboot text)
Line 12: Line 20:


   fastboot boot twrp.img
   fastboot boot twrp.img


now you can copy the eu rom and twrp.img. Then flash the image and afterwards use the advanced tab to Install Recovery Ramdisk with twrp.img. After this you need to wipe -> format data or you get stuck in a bootloop.
now you can copy the eu rom and twrp.img. Then flash the image and afterwards use the advanced tab to Install Recovery Ramdisk with twrp.img. After this you need to wipe -> format data or you get stuck in a bootloop.
Line 18: Line 25:
DONT FLASH THE TWRP! - it's an A/B device, so you have to use the "install recovery ramdisk" option
DONT FLASH THE TWRP! - it's an A/B device, so you have to use the "install recovery ramdisk" option


 
= Root =
If all goes wrong, download stock from https://flashxiaomi.com/download-install-miui-rom-for-xiaomi-mix-4-all-miui-firmwares/
If all goes wrong, download stock from https://flashxiaomi.com/download-install-miui-rom-for-xiaomi-mix-4-all-miui-firmwares/


Get magisk from https://github.com/topjohnwu/Magisk  
Get magisk from https://github.com/topjohnwu/Magisk  
Line 28: Line 34:


Open the magisk app and go to settings (top right). Enable zygisk and enforce denylist. Under configure denylist you can put things like banking apps that don't like rooted phones.
Open the magisk app and go to settings (top right). Enable zygisk and enforce denylist. Under configure denylist you can put things like banking apps that don't like rooted phones.
= Gesture navigation =
To get rid of navbar + include gestures
ensure usb debugging is on for adb
adb shell settings put global force_fsg_nav_bar 1 - there's still a small bar at the bottom of the screen
adb shell cmd overlay enable com.android.internal.systemui.navbar.gestural - just puts a black block over the buttons
T Swipe Pro Gestures
Terminal shortcut allows you to run the command after reboot (was not necessary for me)
= Good links =
https://www.getdroidtips.com/twrp-recovery-xiaomi-mi-mix-4-root/

Revision as of 15:15, 13 October 2022

TWRP + Recovery ROM

You need to know a few things:

- it's a recovery image (not a fastboot image - fastboot images need to be flashed using the fastboot command on a PC every time there's an update, recovery images can be flashed using TWRP)

- It has an encrypted A/B partition scheme. Not all versions of TWRP can decrypt and mount these partitions

- you need drivers and the sdk installed and the bootloader unlocked.

Instructions to install everything are https://xiaomi.eu/community/threads/howto-install-recovery-image.66211/

Get twrp image from https://xiaomi.eu/community/threads/howto-install-recovery-image.66211/ (skkk) - you will need to change the language afterwards from Chinese :)

Do NOT get it from https://twrp.me/xiaomi/xiaomimimix4.html as it can't decrypt the data directory or connect the USB.

rename it (after unzipping) to twrp.img

In a command prompt cd wherever the image is on the pc and reboot the phone in fastboot mode (power off, then power on + volume down button - should be an orange fastboot text) then type:

  fastboot boot twrp.img

now you can copy the eu rom and twrp.img. Then flash the image and afterwards use the advanced tab to Install Recovery Ramdisk with twrp.img. After this you need to wipe -> format data or you get stuck in a bootloop.

DONT FLASH THE TWRP! - it's an A/B device, so you have to use the "install recovery ramdisk" option

Root

If all goes wrong, download stock from https://flashxiaomi.com/download-install-miui-rom-for-xiaomi-mix-4-all-miui-firmwares/

Get magisk from https://github.com/topjohnwu/Magisk


Rename the .apk to .zip and copy this to the phone storage, then install with TWRP using the Install button. Reboot and use rootchecker to see if you are rooted.

Open the magisk app and go to settings (top right). Enable zygisk and enforce denylist. Under configure denylist you can put things like banking apps that don't like rooted phones.

Gesture navigation

To get rid of navbar + include gestures ensure usb debugging is on for adb adb shell settings put global force_fsg_nav_bar 1 - there's still a small bar at the bottom of the screen adb shell cmd overlay enable com.android.internal.systemui.navbar.gestural - just puts a black block over the buttons T Swipe Pro Gestures Terminal shortcut allows you to run the command after reboot (was not necessary for me)

Good links

https://www.getdroidtips.com/twrp-recovery-xiaomi-mi-mix-4-root/