Mi Mix 4: Difference between revisions
Line 56: | Line 56: | ||
Install FoxMagiskModuleManager https://github.com/Fox2Code/FoxMagiskModuleManager | Install FoxMagiskModuleManager https://github.com/Fox2Code/FoxMagiskModuleManager | ||
in order to install HideNavBar https://github.com/Magisk-Modules-Alt-Repo/HideNavBar | in order to install Fullscreen Immersive Gestures HideNavBar https://github.com/Magisk-Modules-Alt-Repo/HideNavBar | ||
= Option 3 = | = Option 3 = |
Revision as of 15:28, 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.
To get rid of navbar + include gestures
adb
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)
Option 2
Install FoxMagiskModuleManager https://github.com/Fox2Code/FoxMagiskModuleManager
in order to install Fullscreen Immersive Gestures HideNavBar https://github.com/Magisk-Modules-Alt-Repo/HideNavBar
Option 3
Install G-VisualMod https://github.com/Magisk-Modules-Repo/G-VisualMod#g-visual-mod
which allows loads of control over the visuals
Good links
https://www.getdroidtips.com/twrp-recovery-xiaomi-mi-mix-4-root/