Mi Mix 4: Difference between revisions
Line 43: | Line 43: | ||
in order to install Fullscreen Immersive Gestures 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 | ||
you need something like T Swipe Pro Gestures to perform the actual gestures though | I put spacing under the keyboard to around 1000. | ||
you need something like T Swipe Pro Gestures to perform the actual gestures though, because Xiaomi | |||
== Option 2 == | == Option 2 == |
Revision as of 15:47, 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
Install FoxMagiskModuleManager https://github.com/Fox2Code/FoxMagiskModuleManager
in order to install Fullscreen Immersive Gestures HideNavBar https://github.com/Magisk-Modules-Alt-Repo/HideNavBar
I put spacing under the keyboard to around 1000.
you need something like T Swipe Pro Gestures to perform the actual gestures though, because Xiaomi
Option 2
Install G-VisualMod https://github.com/Magisk-Modules-Repo/G-VisualMod#g-visual-mod
which allows loads of control over the visuals
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)
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/