Mi 9 T Pro: Difference between revisions
(One intermediate revision by the same user not shown) | |||
Line 42: | Line 42: | ||
adb devices | adb devices | ||
== Install magisk app == | |||
And install the app | |||
== Download your ROM file == | |||
[https://c.mi.com/oc/miuidownload/detail?device=1700361] | |||
(note find the 9 T Pro ROM lower in the list) | |||
Extract boot.img from this and copy to file | |||
== Patch boot.img == | |||
copy the extracted boot.img (above) to the phone, run the magisk app and select the boot.img to patch under install Magisk in the app. Copy the patched .img file to the PC | |||
== Reboot to fastboot mode == | |||
adb reboot fastboot | |||
== Flash the new image and reboot == | |||
fastboot flash boot magisk_patched.img | |||
Sending 'boot' (131072 KB) OKAY [ 2.976s] | |||
Writing 'boot' OKAY [ 0.729s] | |||
Finished. Total time: 4.233s | |||
fastboot reboot | |||
Rebooting OKAY [ 0.001s] | |||
Finished. Total time: 0.003s | |||
Note: if you decide to flash via TWRP You don't need to clear cache dalvik data etc if you're just rooting! | |||
==verify== | |||
Use checkroot from the play store to verify root. Grant it permissions when asked. | |||
== Aftercare == | |||
See the [[Rooting]] guide to remove bloatware, add modules etc. | |||
= Depreciated = | |||
==Copy magisk zip== | ==Copy magisk zip== | ||
Copy it into the root directory | Copy it into the root directory |
Latest revision as of 08:29, 9 November 2021
Using MIUI 11 Global EU 11.0.3 / RAPHAEL
Unlock Bootloader - NB this can take weeks! at http://en.miui.com
Recovery / bootloader mode
Recovery Mode keypress: power + volume up. When you see Mi logo at bootup, release power
Bootloader Mode keypress: power + volume down. When you see Mi logo at bootup, release power
Useful links
XDA Developer Forum page for older rom
Complete Newbies Guide: Upgrading Mi Mix 2 From China Rom To Xiaomi.eu Rom
[Xiaomi Mi 9T Pro / Redmi K20 Pro Rooten & Custom roms]
Collection of Magisk Modules v2
Tools needed
Install Magisk app
ADB / Fastboot
depreciated
Magisk - I used 20.4 zip
TWRP unofficial by mauronofrio - I used 3.3.1-25. NOTE it can have a screen bug, when you have to fill in the pattern to decrypt. Turn off the display and turn it on again, or cancel the decryption and then mount /data later. You can then input the screen again
Method
Enable USB debugging
by going to settings -> about phone -> pressing on miui version lots of times. Then go to settings -> Additional settings -> developer options -> enable USB Debugging
You can check if everything works by plugging in the phone, opening a command prompt and typing
adb devices
Install magisk app
And install the app
Download your ROM file
(note find the 9 T Pro ROM lower in the list)
Extract boot.img from this and copy to file
Patch boot.img
copy the extracted boot.img (above) to the phone, run the magisk app and select the boot.img to patch under install Magisk in the app. Copy the patched .img file to the PC
Reboot to fastboot mode
adb reboot fastboot
Flash the new image and reboot
fastboot flash boot magisk_patched.img
Sending 'boot' (131072 KB) OKAY [ 2.976s] Writing 'boot' OKAY [ 0.729s] Finished. Total time: 4.233s
fastboot reboot
Rebooting OKAY [ 0.001s] Finished. Total time: 0.003s
Note: if you decide to flash via TWRP You don't need to clear cache dalvik data etc if you're just rooting!
verify
Use checkroot from the play store to verify root. Grant it permissions when asked.
Aftercare
See the Rooting guide to remove bloatware, add modules etc.
Depreciated
Copy magisk zip
Copy it into the root directory
Boot into TWRP
If so then reboot to fastboot mode
adb reboot fastboot
Once it's there then type
>fastboot flash recovery twrp-3.3.1-25-raphael-mauronofrio.img
Sending 'recovery' (65536 KB) OKAY [ 1.464s] Writing 'recovery' OKAY [ 0.324s] Finished. Total time: 1.817s
Reboot into recovery mode
fastboot reboot recovery
TWRP will start up. See above if you can't input your screen unlock pattern
In TWRP first backup your boot and data partition.
Now delete Dalvik, Cache and data YES THIS DELETES EVERYTHING ON YOUR PHONE! MAKE SURE YOU HAVE BACKED UP FIRST. After deleting DO NOT REBOOT but go back twice until you are back in the main menu.
Now select Install and then install the zip. If the console tells you that it could not mount /system then go back to the main, go to mount, unselect /system and re-install the zip. It should be happy.
Reboot the phone now and wait - it takes quite some time for it to setup
verify
Use checkroot from the play store to verify root. Grant it permissions when asked.
Aftercare
Install Magisk Manager apk
See the Rooting guide to remove bloatware, add modules etc
Trouble
Bootloop
If it keeps rebooting and ends up in fastboot, you can again reboot into TWRP
fastboot flash recovery twrp-3.3.1-25-raphael-mauronofrio.img fastboot reboot recovery
You should be able to copy the official MIUI ROM from http://en.miui.com/ onto your device. If not you can download official TWRP from https://twrp.me/xiaomi/xiaomimi9tpro.html and try using that. You can then install that as a zip.
Uninstaller
Magisk Module Uninstaller/Disabler]
Magisk Module Uninstaller – Uninstall Magisk Module Via TWRP