My device is due soon and been going through the forum preparing myself. I am a bit confused though and would appreciate some help.
1- TWRP
From my other devices N5, 5T etc flash TWRP and you're on your way.
With this device it's Fastboot boot into regular TWRP wipe, then into deadman's TWRP to install ROM. Other instructions mention going into partition A then to B. Is permanent TWRP install not suitable for this device?
2-Root & Magsik
It seems that everything on this device is dependent on using Magsik for one thing or the other. I prefer to use SU as it always works with my setup. I'm not interested in safetynet. Do i really need to use Magsik?
After ROM install I use Xposed, SU, Xprivacy Lua, Titanium pro, Tasker.
Thanks.
bluegrass55 said:
My device is due soon and been going through the forum preparing myself. I am a bit confused though and would appreciate some help.
1- TWRP
From my other devices N5, 5T etc flash TWRP and you're on your way.
With this device it's Fastboot boot into regular TWRP wipe, then into deadman's TWRP to install ROM. Other instructions mention going into partition A then to B. Is permanent TWRP install not suitable for this device?
2-Root & Magsik
It seems that everything on this device is dependent on using Magsik for one thing or the other. I prefer to use SU as it always works with my setup. I'm not interested in safetynet. Do i really need to use Magsik?
After ROM install I use Xposed, SU, Xprivacy Lua, Titanium pro, Tasker.
Thanks.
Click to expand...
Click to collapse
As much as I'd like to help you, I don't get what you mean. Care you elaborate?
Sent from my Mi A1
I want to flash a permanent TWRP & flash ROMs etc like on a regular device.
Can this be done on this device?
Of course
Mod edit by @gregbradley Rule 2
Casual racism was deleted
I found this for you, hope it provides some info, also try forcing Google to give you results with kws like "SuperSU" and "su" by placing them inside quotes "" and by adding a + in front of a keyword.
https://forum.xda-developers.com/mi-a1/how-to/cf-auto-root-september-update-t3681024
1. You can Install TWRP permanently
As there is no separate recovery partition
fastboot flash recovery recoveryname.img command will fail
So you need to temporarily boot your phone to TWRP first n then make it permanent (Optional)
2. You can use SuperSu, technically there shouldn't be any problem as bothe Magisk and SuperSu patches Boot Image (haven't tested though)
Thank you for your replies.
Managed to install TWRP and decided to stick with stock for now, but install of Xposed fails. Now looking to solve that.
Bought this device because it was cheap. If Xposed install fails will return it.
I have made a guide to simplify the installation procedure: https://forum.xda-developers.com/mi-a1/how-to/lineageos-gapps-magisk-twrp-dolbyatmos-t3762939/
If you want to stay on stock, you can skip the LineageOS related stuff.
Thread cleaned
Lets be honest, this is a development site, lets keep the racism out of here.
Greg
bluegrass55 said:
Thank you for your replies.
Managed to install TWRP and decided to stick with stock for now, but install of Xposed fails. Now looking to solve that.
Bought this device because it was cheap. If Xposed install fails will return it.
Click to expand...
Click to collapse
I know you don't want to install Magisk, but you can install Xposed with Magisk without any issues
Hello Guys. I read many thread for root to mi A1 but have different ways. Normal root dont work ?. So Flash Twrp and Flash Magisk ? I read bootlooder unlocking to cause wiping data. Anyone help me ?
There are 2 ways how to proceed (patched boot.img or temporarily booting twrp) - as you read about both of them, you can choose whichever one you like more (follow particular guide accordingly). This is "normal rooting", not sure what is "normal" for you
Hi people!
I tried to unlock bootloader of my p9 lite
VNS-L31, android 7.0, stock emui 5.0.x
Got the code, unlocked, installed many twrps
to see wich was the best one to flash magisk 19.
All good, but everytime i did a magisk flash,
the phone didnt reboot properly.
(Got bootloop, sometimes got the reset phone screen entering a password {??} along with red errors in all twrps) im sure i did all correctly, this isnt the first time
I do a root on a smartphone... the point is:
I think that magisk is what causes these errors and
Forces me to hard reset the device to use it again (dload or huawey extractor)
i need magisk 19+ first because i need a systemless root, then i need many magisk modules
On my phone. Also tryed with custom rom based on
Emui 5.0.x through meticulus twrp 5.2, elite 3.1.1 twrp.
No way to install magisk without getting errors.
--- 》So if you guys could give me some tips to fix this issues, i would appreciate it so much. It could be my bad or maybe i need to do something else in order to get magisk working. 2 days trying, need help of the best modders here. Thanks in advance to all, and best regards from italy! :good:
Hi everybody
I have trouble rooting my mi9t under miui 11.0.3 global eaa.
I tried several tutorials but nothing reliable root is unstable.
I tried with magisk while patching the boot file but it's really unstable.
I managed to install the recovery custom twrp to be able to flash super su to root the mi9t but nothing to do that puts me like it was abandoned and red up in the recovery I scored that before the flash of the supersu :
unable to decrypt fbe device
unhandled flag: 'wrappedkey'
Can it come from what?
I start to regret my huawei P10.
Thank you for your answer
jerome8 said:
Hi everybody
I have trouble rooting my mi9t under miui 11.0.3 global eaa.
I tried several tutorials but nothing reliable root is unstable.
I tried with magisk while patching the boot file but it's really unstable.
I managed to install the recovery custom twrp to be able to flash super su to root the mi9t but nothing to do that puts me like it was abandoned and red up in the recovery I scored that before the flash of the supersu :
unable to decrypt fbe device
unhandled flag: 'wrappedkey'
Can it come from what?
I start to regret my huawei P10.
Thank you for your answer
Click to expand...
Click to collapse
Don't give up!
If you are able to get TWRP installed it is easy to flash Magisk directly from it.
Get magisk zip and install it.
I want to root my phone due to its huge benefits but also at the same time I want to keep my OTAs
Is it possible even if I will install them manually (but the data remains with no wipe) ?
And if so, how can I do this and whats the best way?
Thanks in advance and sorry if the language was bad <3
Tsunaimy said:
I want to root my phone due to its huge benefits but also at the same time I want to keep my OTAs
Is it possible even if I will install them manually (but the data remains with no wipe) ?
And if so, how can I do this and whats the best way?
Thanks in advance and sorry if the language was bad <3
Click to expand...
Click to collapse
Yes it's possible with a little workaround, to temporarily switch to stock Recovery (from TWRP, if you had it installed) and to stock Boot (from the one patched by Magisk) during the OTA upgrade - OTA will fail if it finds not the stock images of Recovery and Boot
After the upgrade you just flash the new Boot patched by Magisk (and flash TWRP if you will)
Or you flash TWRP and flash Magisk from TWRP
Below is a post how I recently upgraded from QFJEUXM 12.0.2 to 12.0.3. Btw, I downloaded zip and initiated OTA manually because I didn't want to wait more days to be pushed for OTA, but that's just a small detail not important for the way how to do it:
https://forum.xda-developers.com/showpost.php?p=83791185&postcount=93
Ofc, all my data, apps, settings, and Magisk modules were preserved
Generally, in the Redmi K20/Mi 9T Guides section on XDA you can find (at least two) threads about how-to root, i.e. install Magisk
Those threads describe the way to install Magisk by installing Magisk Manager, patching the Boot image, then flashing it from Fastboot (I prefer that way).
In that case TWRP is not needed (but it can be also installled)
Threads and guides are maybe old (since MIUI 11) but it doesn't matter, it's always the same method (essentially the same as in my post I gave you the link above, its part about returning back to Magisk after the OTA upgrade)
If you follow those guides you must pay attention that you patch the boot.img for exactly that (new) stock MIUI you do have and that you now use new Magisk (not some old versions as in the guides)
Alternatively, you flash TWRP by Fastboot, then flash Magisk zip from TWRP and then you install Magisk Manager
All those methods are described in other threads and posts.
Anyway, you must first unlock the Bootloader, again there is thread with a guide, or just google for how to unlock Bootloader on Xiaomi
Btw, some custom TWRP versions and Orange Fox do have Advanced options for upgrading MIUI and to keep Magisk, but when I did it that way for upgrading from QFJEUXM 11.0.5 to 12.0.2, it made me Factory reset and I lost all my files on Internal memory (it was generally an issue for the others who upgraded from MIUI 11 to MIUI 12 by flashing OTA through custom recovery)
Hence now for upgrading to 12.0.3 I didn't want to risk and did it as above
zgfg said:
Yes it's possible with a little workaround, to temporarily switch to stock Recovery (from TWRP, if you had it installed) and to stock Boot (from the one patched by Magisk) during the OTA upgrade - OTA will fail if it finds not the stock images of Recovery and Boot
After the upgrade you just flash the new Boot patched by Magisk (and flash TWRP if you will)
Or you flash TWRP and flash Magisk from TWRP
Below is a post how I recently upgraded from QFJEUXM 12.0.2 to 12.0.3. Btw, I downloaded zip and initiated OTA manually because I didn't want to wait more days to be pushed for OTA, but that's just a small detail not important for the way how to do it:
https://forum.xda-developers.com/showpost.php?p=83791185&postcount=93
Ofc, all my data, apps, settings, and Magisk modules were preserved
Generally, in the Redmi K20/Mi 9T Guides section on XDA you can find (at least two) threads about how-to root, i.e. install Magisk
Those threads describe the way to install Magisk by installing Magisk Manager, patching the Boot image, then flashing it from Fastboot (I prefer that way).
In that case TWRP is not needed (but it can be also installled)
Threads and guides are maybe old (since MIUI 11) but it doesn't matter, it's always the same method (essentially the same as in my post I gave you the link above, its part about returning back to Magisk after the OTA upgrade)
If you follow those guides you must pay attention that you patch the boot.img for exactly that (new) stock MIUI you do have and that you now use new Magisk (not some old versions as in the guides)
Alternatively, you flash TWRP by Fastboot, then flash Magisk zip from TWRP and then you install Magisk Manager
All those methods are described in other threads and posts.
Anyway, you must first unlock the Bootloader, again there is thread with a guide, or just google for how to unlock Bootloader on Xiaomi
Btw, some custom TWRP versions and Orange Fox do have Advanced options for upgrading MIUI and to keep Magisk, but when I did it that way for upgrading from QFJEUXM 11.0.5 to 12.0.2, it made me Factory reset and I lost all my files on Internal memory (it was generally an issue for the others who upgraded from MIUI 11 to MIUI 12 by flashing OTA through custom recovery)
Hence now for upgrading to 12.0.3 I didn't want to risk and did it as above
Click to expand...
Click to collapse
I really appreciate your reply but I kinda don't know much info to understand most of what u said
My last time with root was about 3 years ago with king root on Mi A1 and I didn't care about updates then
so it's my very first time with magisk and TWRP and that stuff
Could u tell me what is the best method of u mentioned to keep my files and everything with no delete and also makes me able to upgrade Official ROM with no deletes
After this i'll start digging to learn but I want to know what should I dig for
Thanks bro
Tsunaimy said:
I really appreciate your reply but I kinda don't know much info to understand most of what u said
My last time with root was about 3 years ago with king root on Mi A1 and I didn't care about updates then
so it's my very first time with magisk and TWRP and that stuff
Could u tell me what is the best method of u mentioned to keep my files and everything with no delete and also makes me able to upgrade Official ROM with no deletes
After this i'll start digging to learn but I want to know what should I dig for
Thanks bro
Click to expand...
Click to collapse
Unlocking Bootloader usually takes to wait 7 days=168 hours, hence you have enough time to read?
Unlocking Bootloader:
https://c.mi.com/thread-1857937-1-1.html
Unlocking Bootloader: and Installing TWRP, OP post #1:
https://forum.xda-developers.com/mi-9t/how-to/guide-unlock-bootloader-flash-xiaomi-eu-t3952443
- for step 6, installing TWRP, use TWRP I'm giving you below
- instead of 7, execute this command:
>> fastboot oem reboot-recovery
- step 7, don't Format Data (unless you really go to install custom ROM, otherwise you don't need to)
- stop here for installing TWRP
Suggesting you to use this TWRP, 3.4.0.2 from OP post #1:
https://forum.xda-developers.com/mi-9t/how-to/recovery-unofficial-twrp-3-4-0-1-t4135159
- every time you boot to TWRP, you must type in your Android screen unlock pin, TWRP needs to be able to read/write to Data and Internal memory
Learn about using ADB and Fastboot:
https://www.makeuseof.com/tag/use-adb-fastboot-android/
- you can't do things with ADB that require root, but you can read
- similarly, fastboot commands mostly require unlocked Bootloader, but you can read
- google yourself
About installing Magisk, read in these threads:
https://forum.xda-developers.com/mi-9t/how-to/guide-easiest-to-root-twrp-t4000209
https://forum.xda-developers.com/mi-9t/how-to/root-k20-indian-rom-v10-3-6-0-twrp-t3958566
- if you have time, go through the whole threads, you will see variations
- don't worry if talking about MIUI 11, same applies for MIUI 12, you will just need to download your MIUI 12 recovery/zip firmware, will give you link below
- I'll give you below the link for the latest Magisk
MIUI firmwares, download, etc:
https://androidfilebox.com/tips/how-to-install-miui-recovery-rom/
https://androidfilebox.com/tips/how-to-install-miui-fastboot-rom/
https://xiaomiflashtool.com/tutorial/use-xiaomi-flash-tool
https://xiaomifirmwareupdater.com/miui/davinci/
https://codeexercise.com/xiaomi-all-android-mobile-secret-code-list/amp/
Various methods to extract stock Recovery, Boot, Persist and Persistbak partitions:
https://forum.xda-developers.com/mi-9t/how-to/root-k20-indian-rom-v10-3-6-0-twrp-t3958566
Magisk documentation and download:
https://github.com/topjohnwu/Magisk/blob/master/README.MD
- read the docs
- I would suggest you to use Canary (don't worry, Stable is far behind), hence you will only need to download Magisk Manager Canary (then follow XDA guides I gave you above)
zgfg said:
Unlocking Bootloader usually takes to wait 7 days=168 hours, hence you have enough time to read
Unlocking Bootloader:
https://c.mi.com/thread-1857937-1-1.html
Unlocking Bootloader: and Installing TWRP, OP post #1:
https://forum.xda-developers.com/mi-9t/how-to/guide-unlock-bootloader-flash-xiaomi-eu-t3952443
- for step 6, installing TWRP, use TWRP I'm giving you below
- instead of 7, execute this command:
>> fastboot oem reboot-recovery
- step 7, don't Format Data (unless you really go to install custom ROM, otherwise you don't need to)
- stop here for installing TWRP
Suggesting you to use this TWRP, 3.4.0.2 from OP post #1:
https://forum.xda-developers.com/mi-9t/how-to/recovery-unofficial-twrp-3-4-0-1-t4135159
- every time you boot to TWRP, you must type in your Android screen unlock pin, TWRP needs to be able to read/write to Data and Internal memory
Learn about using ADB and Fastboot:
https://www.makeuseof.com/tag/use-adb-fastboot-android/
- you can't do things with ADB that require root, but you can read
- similarly, fastboot commands mostly require unlocked Bootloader, but you can read
- google yourself
About installing Magisk, read in these threads:
https://forum.xda-developers.com/mi-9t/how-to/guide-easiest-to-root-twrp-t4000209
https://forum.xda-developers.com/mi-9t/how-to/root-k20-indian-rom-v10-3-6-0-twrp-t3958566
- if you have time, go through the whole threads, you will see variations
- don't worry if talking about MIUI 11, same applies for MIUI 12, you will just need to download your MIUI 12 recovery/zip firmware, will give you link below
- I'll give you below the link for the latest Magisk
MIUI firmwares, download, etc:
https://androidfilebox.com/tips/how-to-install-miui-recovery-rom/
https://androidfilebox.com/tips/how-to-install-miui-fastboot-rom/
https://xiaomiflashtool.com/tutorial/use-xiaomi-flash-tool
https://xiaomifirmwareupdater.com/miui/davinci/
https://codeexercise.com/xiaomi-all-android-mobile-secret-code-list/amp/
Various methods to extract stock Recovery, Boot, Persist and Persistbak partitions:
https://forum.xda-developers.com/mi-9t/how-to/root-k20-indian-rom-v10-3-6-0-twrp-t3958566
Magisk documentation and download:
https://github.com/topjohnwu/Magisk/blob/master/README.MD
- read the docs
- I would suggest you to use Canary (don't worry, Stable is far behind), hence you will only need to download Magisk Manager Canary (then follow XDA guides I gave you above)
Click to expand...
Click to collapse
bro I can`t really thank u enough for the effort
as I got it:
1- Unlock bootloader
2- Install TWRP (the version u provided)
3- Install Magisk (last link u provided) right?
Is there any step of those that is risky or unsafe that may brick the phone ?
PS: On mi unlock application it says all phone data will be erased !
what should I do ?
By unlocking Xiaomi phone you won't lose anything but previous user data stored in phone, unlike ASUS phone losts OTA permanentry.
So make a backup, also I recommend you first picking your secondaly phone, not your daily using one.
Tsunaimy said:
bro I can`t really thank u enough for the effort
as I got it:
1- Unlock bootloader
2- Install TWRP (the version u provided)
3- Install Magisk (last link u provided) right?
Is there any step of those that is risky or unsafe that may brick the phone ?
PS: On mi unlock application it says all phone data will be erased !
what should I do ?
Click to expand...
Click to collapse
As described, TWRP is optional, not needed for Magisk/root but it would be useful to have, so yes, install TWRP
Instructions for unlocking Bootloader say to do Backup. Copy photos and files from Internal memory to PC.
Export contacts to CVS file and also copy to PC.
Backup to Google your Google accounts, contacts, WhatsApp, etc.
Use Settings, Additional settings, Backup, and cooy to PC.
You can also use Settings, MIUI account to backup things
Installations of Magisk and TWRP will not erase data. Generally, they are not risky unless you make really stupid mistake like flashing TWRP img file to System partition instead of to Recovery partition and so - that's why you have instructions how to use Fastboot command to flash TWRP
It's more risky if you go to use e.g. MiFlash (you don't need for TWRP and Magisk), then people can screw up things and need authorized EDL support