[Q] Permanent TWRP + Root? - Xiaomi Mi A1 Questions & Answers

Since I asked in TWRP thread but no one gives an answer, I am going to ask again here. Does anyone tried to have permanent TWRP + Root together successfully? I tried the CF-Auto root method with SuperSU, if I install permanent TWRP I will keep rebooting into Recovery and can't enter OS.

Download lastest twrp.img and twrp.zip for tissot
Download latest magisk bundle with manager
Unlock bootloader
Reboot to bootloader
Boot into twrp.img(do not flash just boot)
Flash twrp
Set to b partition in twrp
Reboot to bootloader
Boot twrp.img
Flash twrp
Flash magisk
Reboot device
Profit
Dont flash supersu magisk has it own supersu

t0per666 said:
Download lastest twrp.img and twrp.zip for tissot
Download latest magisk bundle with manager
Unlock bootloader
Reboot to bootloader
Boot into twrp.img(do not flash just boot)
Flash twrp
Set to b partition in twrp
Reboot to bootloader
Boot twrp.img
Flash twrp
Flash magisk
Reboot device
Profit
Dont flash supersu magisk has it own supersu
Click to expand...
Click to collapse
Can you provide the link for the latest Magisk which is usable on our device. I tried magisk before but there's too many variant some doesn't work properly.

soralz said:
Can you provide the link for the latest Magisk which is usable on our device. I tried magisk before but there's too many variant some doesn't work properly.
Click to expand...
Click to collapse
https://forum.xda-developers.com/attachment.php?attachmentid=4340290&d=1511453617

Related

Is it possible to root OOS 10.0.1?

lately I did a clean install of OOS 10.0.1 on my International 6t. Installed OOS and magisk from TWRP.
After booting there was a Magisk Manager in applications claiming that Magisk itself was not installed. I tried to install Magisk from Manager, but failed. Then I reboot the phone into the recovery and TWRP was gone!! There was only a stock recovery. Well, I tried to run TWRP from computer with 'fastboot boot .\twrp-3.3.1-28-fajita-Q-mauronofrio.img'. Error - "remote: unknown command".
I searched forum and found a thread fastboot boot twrp.img FAILED (remote: unknown command). @dbarrett480 wrote: 'Twrp can't flash anything to system in A10 right now, so unless that is fixed there is no point at this moment anyway. A10 uses a virtualized system partition which doesn't allow R/W access to system....'. Does it mean that rooting is not possible with stock OOS and only possible solution is to use custom ROM?
It is. Look for the patched boot.img and flash that through fastboot. Make sure to install magisk manager first.
BesoC said:
Well, I tried to run TWRP from computer with 'fastboot boot .\twrp-3.3.1-28-fajita-Q-mauronofrio.img'. Error - "remote: unknown command".
I searched forum and found a thread fastboot boot twrp.img FAILED (remote: unknown command). @dbarrett480 wrote: 'Twrp can't flash anything to system in A10 right now, so unless that is fixed there is no point at this moment anyway. A10 uses a virtualized system partition which doesn't allow R/W access to system....'. Does it mean that rooting is not possible with stock OOS and only possible solution is to use custom ROM?
Click to expand...
Click to collapse
The information you found is outdated. I'm surprised you didn't properly read through the official TWRP thread here, more specifically this post clarifies the error in your use of fastboot (or better said: the use of fastboot according to the mistakes made by OnePlus). Which is also mentioned several times in the page you linked to.
As a senior member, please don't create new threads inquiring information you could easily find. Even though the methods to obtain it have been challenging for a short while, being able to achieve root has never been interrupted for this device. Even without being able to modify system files. Systemless rules!
Wrapped with delicious Fajita [emoji896]
bokkoman said:
It is. Look for the patched boot.img and flash that through fastboot. Make sure to install magisk manager first.
Click to expand...
Click to collapse
So, should do following:
Install Magisk Manager
Flash patched boot.img through fastboot
Install TWRP
Install Magisk
Is it correct?
The patched boot.img already contains magisk.
But you don't need twrp to be rooted, unless you really want to use it for something else... But i don't use it anymore. So I'm fully stock, except that I'm unlocked and rooted.
So it should be:
1. Install magisk manager.
2. Flash boot.img
3. Enjoy. But check magisk manager if it was successful.
bokkoman said:
The patched boot.img already contains magisk.
But you don't need twrp to be rooted, unless you really want to use it for something else... But i don't use it anymore. So I'm fully stock, except that I'm unlocked and rooted.
So it should be:
1. Install magisk manager.
2. Flash boot.img
3. Enjoy. But check magisk manager if it was successful.
Click to expand...
Click to collapse
Regarding all that was said here, is rooting possible by following these steps?
Reboot
Fastboot TWRP img
Use volume up to recovery and power button to boot to recovery
Flash 10.0.1 stock boot img from TWRP
Flash TWRP zip
Reboot to recovery
Flash Magisk 20.1
Flash kernel if want
Reboot system
Click to expand...
Click to collapse
BesoC said:
Regarding all that was said here, is rooting possible by following these steps?
Click to expand...
Click to collapse
Yes, this tutorial with the twrp should work ...
BesoC said:
Regarding all that was said here, is rooting possible by following these steps?
Click to expand...
Click to collapse
That's only if you need TWRP.
But for what I've been reading, you don't need TWRP and then i suggest to not install it.
Just flash everything stock and keep it that way. Only thing to flash is the patched boot.img with root in it.
You can always update Android from the settings and patch/install boot with magisk manager on inactive slot. This will keep your device rooted without the need of TWRP.
Here what I found:
https://forum.xda-developers.com/showpost.php?p=81111389&postcount=145
Today I installed the new update, 10.0.1 for OP 6T and then I discovered that there is no magisk patched boot.img yet. I extracted it with payload dumper, patched with the installed magisk and flashed successfully.
I uploaded it to my drive for others. https://drive.google.com/open?id=1kb...VgWNaWgLN6j17b
The commands for flashing are:
fastboot flash boot_a magisk_patched.img
fastboot flash boot_b magisk_patched.img
Maybe someone can add it to the first post.
original 10.0.1 boot.img https://drive.google.com/open?id=1HP...Du8zCOFMXInjXq
Click to expand...
Click to collapse
I used this method to root 10.0.01
https://forum.xda-developers.com/oneplus-6t/how-to/ultimateguide-t4004367
I went from rooted 9.0.17 to 10 to 10.0.01
Never had an issue and everything works fine for me.
Today I installed the new update, 10.0.1 for OP 6T and then I discovered that there is no magisk patched boot.img yet. I extracted it with payload dumper, patched with the installed magisk and flashed successfully.
I uploaded it to my drive for others. https://drive.google.com/open?id=1kb...VgWNaWgLN6j17b
The commands for flashing are:
fastboot flash boot_a magisk_patched.img
fastboot flash boot_b magisk_patched.img
Maybe someone can add it to the first post.
original 10.0.1 boot.img https://drive.google.com/open?id=1HP...Du8zCOFMXInjXq
Click to expand...
Click to collapse
My phone get stuck on the boot animation by following this guide. I have not factory reset my phone.
DrXperience said:
My phone get stuck on the boot animation by following this guide. I have not factory reset my phone.
Click to expand...
Click to collapse
I still don't get why people don't use the good old way:
fastboot flash boot twrp.img (latest version)
If you just need root use twrp to flash Magisk zip
If you need twrp flash twrp installer also
Reboot
All the mess before was because we didn't have a working TWRP! Now that we have it don't need to use patched boot img made by others.

[GUIDE] Official Stock Android 10 flashing , Rooting with magisk and TWRP

In this guide i will go over how to flash stock android 10 if you are unlocked after flashing installing magisk and disabling force encryption :-
THIS GUIDE HAS BEEN TWEAKED AND UPDATED FOR PIXEL EXPERIENCE TOO
HTML:
Your warranty is now void.
We are not responsible for bricked devices, bootloop... Please
do some research if you have any concerns about mods
included in these GUIDES before using them! YOU are choosing to
make these modifications.
THIS GUIDE IS ONLY FOR THOSE WHO HAVE UNLOCKED THEIR BOOTLOADER
Moving from Custom ROM to Stock 10 :- OR Flashing PE 10
First downlaod Stock 10 CLICK HERE OR Pe 10
Reboot to twrp
Wipe everything expect internal storage
Flash ROM Zip
>Now if You Want to be Encrypted you can skip to Formatting Data Step This is for whom you don't want to format and want to be decrypted
>Change Slot and Reboot To Bootloader
>Boot To Official TWRP Image
>Now Flash FBE Disabler (Normally Or Via ADB Sideload ) and Reboot
Now You have to Format Your Data (IMPORTANT IF YOU CHOOSE TO BEING ENCRYPTED)
Change Slot
Now Reboot
IMPORTANT DON'T TRY TO FLASH TWRP INSTALLER JUST AFTER FLAHING THE STOCK ROM OR ELSE YOU WILL NOT BE ABLE TO BOOT ROM IN PE YOU CAN FLASH TWRP INSTALLER BUT IT TWRP WON'T BOOT AS OUR TWRP ISN'T YET READY FOR FBE
IF YOU ARE ALREADY ON STOCK(ENCRYPTED) AND WANT TO INSTALL MAGISK OR WANT TO DECRYPT SO CAN USE TWRP AGAIN
Once you have installed Stock 10 via TWRP in a rush and later you find out nothing is working there no TWRP no magisk and thus you can't move to custom ROM now , well check this out now
STEPS TO ONLY INSTALL MAGISK WITHOUT ANY DECRYPTION
Downlaod pathced boot image from link CLICK HERE
Reboot to Fastboot
Now type this code
HTML:
fastboot flash boot magisk_patched.img
After Success message reboot normally
Now Install Magisk Manager (apk)
YOU ARE ROOTED !
STEPS TO INSTALL MAGISK REMOVE DECRYPTION AND USE TWRP (For Stock and Pixel Experience Both)
IN ORDER TO SWITCH TO OTHER CUSTOM ROMs WHICH AREN'T FORCE-ENCRYPTED YOU HAVE TO DECRYPT FIRST !
IF YOU ARE ALREADY MOVING TO A ENCRYPTED ROM THEN YOU DON'T HAVE TO DECRYPT .
Reboot to Fastboot
Now type this code
HTML:
fastboot -w
This will earse all your data and decrypt
Now wait don't reboot
Now downlaod TWRP image and place it in you platform folder
Now boot to TWRP using this code
HTML:
fastboot boot twrp.img
As soon as you are in twrp flash force encrypt disabler
After Flashing Disabler Flash Magisk and reboot
NOW YOU ARE ON STOCK WITH NO ENCRYPTION AND MAGISK INSTALLED!
IF JUST IN CASE YOU WANT TO MOVE TO CUSTOM ROMs JUST AFTER FORMAT DATA AND BOOTING TWRP STEP FLASH YOUR DESIRED ROM
RECOMMENDED TWRP :- XDA HERE
THANKS Zacktg5 for Zip
HIT THANKS:cyclops:
I followed "STEPS TO ONLY INSTALL MAGISK WITHOUT ANY DECRYPTION" and got a bootloop
Thank you man!
Coming from a custom ROM (PE 10), is it possible to flash the stock 10 using fastboot, or this will cause issues?
can't install miui_JASMINEGlobal_V11.0.4.0.QDIMIXM_545aa0d958_10.0.zip
Step 1/2
Error applying update: 7 (ErrorCode :: kInstallDeviceOpenError)
Updater process ended with ERROR: 1
Error installing zip file /sdcard/miui_JASMINEGlobal_V11.0.4.0.QDIMIXM_545aa0d958_10.0.zip
---------- Post added at 03:19 PM ---------- Previous post was at 03:18 PM ----------
Zedsdeadbaby said:
I followed "STEPS TO ONLY INSTALL MAGISK WITHOUT ANY DECRYPTION" and got a bootloop
Click to expand...
Click to collapse
you can install miui_JASMINEGlobal_V11.0.4.0.QDIMIXM_545aa0d958_10.0.zip ?
why I got error ?
link to Universal DM-Verity, ForceEncrypt, Disk Quota Disablers in case someone asks: http://zackptg5.com/android.php#disverfe
XDA: https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389
Great
Antusuprik said:
can't install miui_JASMINEGlobal_V11.0.4.0.QDIMIXM_545aa0d958_10.0.zip
Step 1/2
Error applying update: 7 (ErrorCode :: kInstallDeviceOpenError)
Updater process ended with ERROR: 1
Error installing zip file /sdcard/miui_JASMINEGlobal_V11.0.4.0.QDIMIXM_545aa0d958_10.0.zip
---------- Post added at 03:19 PM ---------- Previous post was at 03:18 PM ----------
you can install miui_JASMINEGlobal_V11.0.4.0.QDIMIXM_545aa0d958_10.0.zip ?
why I got error ?
Click to expand...
Click to collapse
use some other twrp
I have flashed Android 10 ZIP in TWRP in slot A. After that i changed to slot B and restart to TWRP. In slot B i flashed Encryption Disabler zip and Magisk zip in order.
Same product, less steps
blackman01 said:
Downlaod pathced boot image from link CLICK HERE
HIT THANKS:cyclops:
Click to expand...
Click to collapse
Is this a December patched boot IMG?
d3rt0xx said:
I have flashed Android 10 ZIP in TWRP in slot A. After that i changed to slot B and restart to TWRP. In slot B i flashed Encryption Disabler zip and Magisk zip in order.
Same product, less steps
Click to expand...
Click to collapse
Just the Android 10 ZIP or with the twrp zip? Didn't you lose twrp if you didn't flash the twrp zip?
Thufailb said:
Just the Android 10 ZIP or with the twrp zip? Didn't you lose twrp if you didn't flash the twrp zip?
Click to expand...
Click to collapse
Without TRWP installer. I reboot to bootloader after every single step and boot TWRP.img manually with fastboot boot TWRP.img
So stock recovery is preset
Step by step:
- Boot twrp.img in fastboot from PC "fastboot boot twrp.img"
- Delete all partitions and be sure active boot slot is "A"
- Reboot to Bootloader, NOT Recovery
- Boot twrp.img in fastboot from PC "fastboot boot twrp.img" again
- Install Android 10 zip
- Change active boot slot to "B"
- Reboot to Bootloader, NOT Recovery again
- Boot twrp.img in fastboot from PC "fastboot boot twrp.img" again
- Flash Encryption Disabler zip
- Flash Magisk zip in order
- Reboot! Profit!
Fresh Android 10, decrypted and rooted with stock recovery :good:
Which recovery did you use tho?
Also does that recovery boot from stock android 9???
Please help,asap.
Guys, I have mi a2 on official pie and arb4. How to update?
Rupamxx said:
Which recovery did you use tho?
Also does that recovery boot from stock android 9???
Please help,asap.
Click to expand...
Click to collapse
Recent twrp.
Twrp boots from every version
d3rt0xx said:
Without TRWP installer. I reboot to bootloader after every single step and boot TWRP.img manually with fastboot boot TWRP.img
So stock recovery is preset
Step by step:
- Boot twrp.img in fastboot from PC "fastboot boot twrp.img"
- Delete all partitions and be sure active boot slot is "A"
- Reboot to Bootloader, NOT Recovery
- Boot twrp.img in fastboot from PC "fastboot boot twrp.img" again
- Install Android 10 zip
- Change active boot slot to "B"
- Reboot to Bootloader, NOT Recovery again
- Boot twrp.img in fastboot from PC "fastboot boot twrp.img" again
- Flash Encryption Disabler zip
- Flash Magisk zip in order
- Reboot! Profit!
Fresh Android 10, decrypted and rooted with stock recovery :good:
Click to expand...
Click to collapse
Hi, very helpful guide.
But how do you get OTA update when there's a new one? Can you provide the steps to get OTA and then get back to root. Thanks in advance.
disaster_peace said:
Hi, very helpful guide.
But how do you get OTA update when there's a new one? Can you provide the steps to get OTA and then get back to root. Thanks in advance.
Click to expand...
Click to collapse
Easy!
Just install normally via updater.
But before you restart your phone, install TWRP Retention Script via Magisk Manager to change active boot slot
can i skip installing magisk in this guide to get my banking apps working??
Sivakumar$ said:
can i skip installing magisk in this guide to get my banking apps working??
Click to expand...
Click to collapse
Yes, if you only install official OTA, banking apps work. Why not? Its official and unrooted
But decryption Script will useless without root i think
Im on derp fest Q rom now i want to go to stock 10 i cannot find any latest fastboot file and there is some issues with the mi flash tool as some users were reporting getting dev error
I'm tried using two versions of TWRP(3.2.3-0 and 3.3.1-0) and got two different errors:
• No digest file found (3.2.3-0)
• Error 7 (3.3.1-0)
What should I do? I don't have any ROM's installed

Problem with TWRP + Root (Magisk)

I'm on OxygenOS v 10.3.0 right now,
The problem is that, i can't have TWRP & Root and the same time,
Means if i patch boot image with Magisk and flash it with fastboot i lost TWRP (with stock) and if i some how manage to flash TWRP again, device go in to twrp boot loop, to fix that i have to flash boot image again with fastboot and now i lost Root
Tried all available TWRP and Magisk versions
Pls any Fix to my problem.
(Ignore my English, not a native English speaker)
i follow this thread and now i have twrp+magisk in oos 10.3.0
https://forum.xda-developers.com/oneplus-6t/how-to/ultimateguide-t4004367
i think you missed out to flash twrp installer after flash magisk.
So bothering with patching boot img...... It was good when no twrp was available, when fleshing patched boot it's logical that twrp disappear as twrp is precisely in boot partition.....
Fastboot boot twrp with your computer, then flash twrp zip installer. Then flash Magisk zip with twrp. You're done.

10.3.9 OTA reapplying Magisk fails

So I'm running stock, twrp, magisk and all OTAs so far have been a breeze by following
Let the OTA download and install
Flash twrp via magisk
Install Magisk to inactive slot
reboot
But with todays OTA, magisk fails to patch the inactive slot image with 'Unsupported/Unknown image format'
Direct install still works fine
Now I'm obviously terrified of rebooting, what should I do to resolve this?
Had the same problem, Had Magisk totally wipe my boot so I was stuck with Fastboot.
The solution me and my guys had were to:
Let OTA Update (reboot to bootloader afterwards)
Fastboot boot twrp.img > [Advanced] > [Install Recovery Ramdisk] > twrp.img (you can backup the boot when done.
Install Magisk.zip (I had the 3.4.0 at the time so if you had the latest I heard it can install the apks as well)
Reboot to system
Profit
Huskied said:
Had the same problem, Had Magisk totally wipe my boot so I was stuck with Fastboot.
The solution me and my guys had were to:
Let OTA Update (reboot to bootloader afterwards)
Fastboot boot twrp.img > [Advanced] > [Install Recovery Ramdisk] > twrp.img (you can backup the boot when done.
Install Magisk.zip (I had the 3.4.0 at the time so if you had the latest I heard it can install the apks as well)
Reboot to system
Profit
Click to expand...
Click to collapse
Thanks for the reply
As I am still in 'control' and rooted, isn't there a way to reflash the update zip manually and try again to retain root/patch the boot image?
Alintja said:
Thanks for the reply
As I am still in 'control' and rooted, isn't there a way to reflash the update zip manually and try again to retain root/patch the boot image?
Click to expand...
Click to collapse
Like a dirty flash? Yeah, Just reflash in TWRP. I have not tried to do it on Local Upgrade.

After rooting android 10 with Magisk it removes installed TWRP

I flashed stock android 10 river (from lolinet).
I wish to root it and have twrp recovery.
But rooting with magisk removes the installed twrp recovery!
What I did:
—Downloaded both the img and the zip from https://dl.twrp.me/river/
—Copied the zip to the phone's external sdcard.
—I put the phone into bootloader mode (volume down and power button)
—Connected the phone to windows PC.
—Open a command window (in GooglePlatformTools folder) and ran the following command:
fastboot boot twrp.img (This temporarily booted TWRP on the phone).
—in TWRP. I installed the twrp zip
It successfully installed TWRP on boot partition of both slots.
So now I have twrp installed and working.
I now needed to root the phone
So I installed Magisk 23 on the phone
I extracted the boot.img from the android 10 river rom that I initially flashed to the phone and patched it with Magisk.
I moved the patched boot.img file to the pc and flashed it to the phone.
My problem:
flashing the patched boot.img rooted the phone, but when I go to recovery I get the phone recovery not twrp.
What am I doing wrong? I've repeated the process and get the same result.
How do I get a rooted phone and TWRP recovery.
Thanks for any help.
maybeme2 said:
I flashed stock android 10 river (from lolinet).
I wish to root it and have twrp recovery.
But rooting with magisk removes the installed twrp recovery!
What I did:
—Downloaded both the img and the zip from https://dl.twrp.me/river/
—Copied the zip to the phone's external sdcard.
—I put the phone into bootloader mode (volume down and power button)
—Connected the phone to windows PC.
—Open a command window (in GooglePlatformTools folder) and ran the following command:
fastboot boot twrp.img (This temporarily booted TWRP on the phone).
—in TWRP. I installed the twrp zip
It successfully installed TWRP on boot partition of both slots.
So now I have twrp installed and working.
I now needed to root the phone
So I installed Magisk 23 on the phone
I extracted the boot.img from the android 10 river rom that I initially flashed to the phone and patched it with Magisk.
I moved the patched boot.img file to the pc and flashed it to the phone.
My problem:
flashing the patched boot.img rooted the phone, but when I go to recovery I get the phone recovery not twrp.
What am I doing wrong? I've repeated the process and get the same result.
How do I get a rooted phone and TWRP recovery.
Thanks for any help.
Click to expand...
Click to collapse
One possibilty I thought of: I never flashed magisk zip through twrp. Maybe that is my problem.
I installed magisk manager and did everything through it. Where do I find the magisk zip.to install through twrp?
rename the apk to zip and flash via twrp
Cronoss said:
rename the apk to zip and flash via twrp
Click to expand...
Click to collapse
That is what I finally discovered was the right thing to do.
All is well now.

Categories

Resources