I can not have TWRP and custom ROM together - Xiaomi Mi A2 / 6X Questions & Answers

I'm struggling with my Xiaomi MI A2 to have a simple root.
I already got this with Magisk, but the problem is that when I try to install XPOSED, it goes into bootloop.
Many post say I have to have TWRP installed to achieve this.
But now I can not get both together: TWRP and custom ROM.
If I install TWRP, it erases the ROM; if I install the ROM, it erases the TWRP.
What should I do?

Related

Rooting and installing xposed on the new Xiaomi Mi 6x

Hi,
Just got the new Xiaomi Mi 6x. Couldnt find any info online regarding rooting it since it was recently released.
Is it possible at the moment to root this device using magisk? if so is there a twrp version i can boot just to install it ?
Will xposed work with this miui version of android ?
will the international version get a stock android rom that i can flash on this mi 6x ?
Thanks & Regards
Edit : already unlocked the bootloader at Xiaomi's MI service center.
Mi6x said:
Hi,
Just got the new Xiaomi Mi 6x. Couldnt find any info online regarding rooting it since it was recently released.
Is it possible at the moment to root this device using magisk? if so is there a twrp version i can boot just to install it ?
Will xposed work with this miui version of android ?
will the international version get a stock android rom that i can flash on this mi 6x ?
Thanks & Regards
Edit : already unlocked the bootloader at Xiaomi's MI service center.
Click to expand...
Click to collapse
No idea about Xposed
Here is twrp https://romprovider.com/2018/05/xiaomi-mi-6x-root-twrp/
have a look at https://www.xiaomigeek.com/ - they are always up2date and fast with new ROMs, rootkits and flashtools.
Mi6x said:
Hi,
Just got the new Xiaomi Mi 6x. Couldnt find any info online regarding rooting it since it was recently released.
Is it possible at the moment to root this device using magisk? if so is there a twrp version i can boot just to install it ?
Will xposed work with this miui version of android ?
will the international version get a stock android rom that i can flash on this mi 6x ?
Thanks & Regards
Edit : already unlocked the bootloader at Xiaomi's MI service center.
Click to expand...
Click to collapse
magisk is do able.
in fact I did root my mi 6x with magisk, just grab the beta version (magisk 16.7), since the phone is a treble device.
as for twrp, you can get it here (you can even d/l the unofficial LOS 15.1 as well) :
https://www.cyanogenmods.org/forums/forum/xiaomi/mi-6x-wayne/
the annoying part is, whenever you're in miui, you need to format data for twrp to be able to read/write the data partition.
I haven't really play with this phone just yet, and yes I didn't install the lazyflasher as well.
but the good news, this device is bootable with GSI
as for exposed, I had no luck with systemless exposed... got bootloop on the MI screen.
but maybe that's because I didn't flash the lazy flasher, or should I learn about exposed on a treble device
Can someone give me mi stock recovery 3.0 for this device?
Mi6x said:
Hi,
Just got the new Xiaomi Mi 6x. Couldnt find any info online regarding rooting it since it was recently released.
Is it possible at the moment to root this device using magisk? if so is there a twrp version i can boot just to install it ?
Will xposed work with this miui version of android ?
will the international version get a stock android rom that i can flash on this mi 6x ?
Thanks & Regards
Edit : already unlocked the bootloader at Xiaomi's MI service center.
Click to expand...
Click to collapse
hi i can tell you that in Android8 based miui10 xposed will not work every device
NK600 said:
hi i can tell you that in Android8 based miui10 xposed will not work every device
Click to expand...
Click to collapse
Hello,
Is there any progress on xposed on mi 6x. I have a new mi 6x and MIUI 9.6.6.0 Chinese and English stock ROM is pre-installed. And it is andorid 8.1. Can I install xposed this phone (MIUI 9 and android 8.1)? Should I stay at MIUI 9. Because I get MIUI 10.2.5 OTA upgrade but I haven't applied this update yet. If xposed is not compatible with MIUI 10, should I stay at MIUI 9.6.6?
Thanks
coolman7 said:
Hello,
Is there any progress on xposed on mi 6x. I have a new mi 6x and MIUI 9.6.6.0 Chinese and English stock ROM is pre-installed. And it is andorid 8.1. Can I install xposed this phone (MIUI 9 and android 8.1)? Should I stay at MIUI 9. Because I get MIUI 10.2.5 OTA upgrade but I haven't applied this update yet. If xposed is not compatible with MIUI 10, should I stay at MIUI 9.6.6?
Thanks
Click to expand...
Click to collapse
Hi!
I think, first what you need - make TWRP backup with maximum partitions set. You can use for this action this TWRP, folder contain scripts for run TWRP from PC and flash recovery to phone (used TWRP-3.2.3-0810-XIAOMI6X-RU-wzsx150-hypeartist.img).
Use run TWRP only. For run TWRP you need enable USB debugging on phone, connect to PC, allow access from this PC and run Run-TWRP.bat
After boot to TWRP you need not allow modifications on system partition and make full backup. This backup need copy to PC from internal storage and keep for future.
When you make backup, you can what you want - you can install Magisk via run TWRP from PC or upgrade and test MIUI 10
StannerG said:
Hi!
I think, first what you need - make TWRP backup with maximum partitions set. You can use for this action this TWRP, folder contain scripts for run TWRP from PC and flash recovery to phone (used TWRP-3.2.3-0810-XIAOMI6X-RU-wzsx150-hypeartist.img).
Use run TWRP only. For run TWRP you need enable USB debugging on phone, connect to PC, allow access from this PC and run Run-TWRP.bat
After boot to TWRP you need not allow modifications on system partition and make full backup. This backup need copy to PC from internal storage and keep for future.
When you make backup, you can what you want - you can install Magisk via run TWRP from PC or upgrade and test MIUI 10
Click to expand...
Click to collapse
Thanks for reply. Can I install Xposed to MIUI 10?
coolman7 said:
Thanks for reply. Can I install Xposed to MIUI 10?
Click to expand...
Click to collapse
Hi! I'm not use MIUI and cannot answer on this question.
I take all backups (TWRP and partition backups) and tried to install xposed and I failed all of my tests.
I have mi 6x and using original stok ROM MIUI 9.6.6.0. I haven't flashed TWRP yet. I just boot TWRP with fastboot commands. I installed Magisk 19.1.
First I tried to install standard Xposed (probably works with SuperSU, but I am using Magisk). Installed Xposed installer.apk and flashed xposed-v90-sdk27-arm64-beta3.zip from TWRP. Result is bootloop.
I flashed xposed-uninstaller-20180117-arm64.zip and bootloop solved.
Second I tried to install XposedInstaller_3.1.5-Magisk.apk and flashed xposed-v90.2-sdk27-beta3-topjohnwu.zip from TWRP and result is bootloop.
I flashed xposed-uninstaller-20180117-arm64.zip and but bootloop not solved. So I restore TWRP backup (boot, system and data partitions) and bootloop solved.
I tried several different things but all resulted as bootloop.
Any idea how to install xposed to this system?
coolman7 said:
I take all backups (TWRP and partition backups) and tried to install xposed and I failed all of my tests.
I have mi 6x and using original stok ROM MIUI 9.6.6.0. I haven't flashed TWRP yet. I just boot TWRP with fastboot commands. I installed Magisk 19.1.
First I tried to install standard Xposed (probably works with SuperSU, but I am using Magisk). Installed Xposed installer.apk and flashed xposed-v90-sdk27-arm64-beta3.zip from TWRP. Result is bootloop.
I flashed xposed-uninstaller-20180117-arm64.zip and bootloop solved.
Second I tried to install XposedInstaller_3.1.5-Magisk.apk and flashed xposed-v90.2-sdk27-beta3-topjohnwu.zip from TWRP and result is bootloop.
I flashed xposed-uninstaller-20180117-arm64.zip and but bootloop not solved. So I restore TWRP backup (boot, system and data partitions) and bootloop solved.
I tried several different things but all resulted as bootloop.
Any idea how to install xposed to this system?
Click to expand...
Click to collapse
yes i can
---------- Post added at 04:36 PM ---------- Previous post was at 04:34 PM ----------
coolman7 said:
I take all backups (TWRP and partition backups) and tried to install xposed and I failed all of my tests.
I have mi 6x and using original stok ROM MIUI 9.6.6.0. I haven't flashed TWRP yet. I just boot TWRP with fastboot commands. I installed Magisk 19.1.
First I tried to install standard Xposed (probably works with SuperSU, but I am using Magisk). Installed Xposed installer.apk and flashed xposed-v90-sdk27-arm64-beta3.zip from TWRP. Result is bootloop.
I flashed xposed-uninstaller-20180117-arm64.zip and bootloop solved.
Second I tried to install XposedInstaller_3.1.5-Magisk.apk and flashed xposed-v90.2-sdk27-beta3-topjohnwu.zip from TWRP and result is bootloop.
I flashed xposed-uninstaller-20180117-arm64.zip and but bootloop not solved. So I restore TWRP backup (boot, system and data partitions) and bootloop solved.
I tried several different things but all resulted as bootloop.
Any idea how to install xposed to this system?
Click to expand...
Click to collapse
you need some magisk mods
coolman7 said:
I take all backups (TWRP and partition backups) and tried to install xposed and I failed all of my tests.
I have mi 6x and using original stok ROM MIUI 9.6.6.0. I haven't flashed TWRP yet. I just boot TWRP with fastboot commands. I installed Magisk 19.1.
First I tried to install standard Xposed (probably works with SuperSU, but I am using Magisk). Installed Xposed installer.apk and flashed xposed-v90-sdk27-arm64-beta3.zip from TWRP. Result is bootloop.
I flashed xposed-uninstaller-20180117-arm64.zip and bootloop solved.
Second I tried to install XposedInstaller_3.1.5-Magisk.apk and flashed xposed-v90.2-sdk27-beta3-topjohnwu.zip from TWRP and result is bootloop.
I flashed xposed-uninstaller-20180117-arm64.zip and but bootloop not solved. So I restore TWRP backup (boot, system and data partitions) and bootloop solved.
I tried several different things but all resulted as bootloop.
Any idea how to install xposed to this system?
Click to expand...
Click to collapse
Xposed need a DEODEXED rom for working and MIUI is a ODEXED rom so xposed don't work and that's why you got bootloop

TWRP flashing problem in Android P

I successfully unlocked the bootloader and rooted my Mi A2 using the patched boot img method (flashing the patched boot image with Magisk to root). But now I want to install a custom ROM and for that, I need to install TWRP. I tried to find a lot in forums but couldn't find any help with Android Pie as TWRP doesn't decrypt storage in Pie. So can somebody help this newbie with flashing TWRP in my rooted Mi A2 with Android Pie.
Follow this https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-flash-custom-roms-stuff-t3876375
poran123 said:
Follow this https://forum.xda-developers.com/mi-a2/how-to/guide-how-to-flash-custom-roms-stuff-t3876375
Click to expand...
Click to collapse
So what I think I have to do is to go to fastboot mode and boot recovery.img, after that, I need to wipe everything (will lose my root and stock ROM) and then it will act like how it would from the guide by flashing the custom ROM, and then changing slots and stuff.

K20 Pro China ROM Magisk Bootloop Problem

Read a similar problem from this thread https://forum.xda-developers.com/k20-pro/how-to/redmi-k20-pro-firmware-10-3-8-0-9-6-13-t3939647
I'm already unlocked and I was gonna stick with the China ROM for now, so I flashed Magisk. After an hour I noticed my root access WAS GONE. So tried restarting it and... bootloop! Magisk uninstaller fixed this BUT I want that Magisk. So I kept retrying... Fastboot, flash TWRP(another issue is TWRP wont stick no matter what it will be replaced by stock recovery), Install magisk, bootloop... Rinse and repeat.
I tried 2 methods installing Magisk. TWRP and the Boot Image Patching using boot.img from latest China ROM miui_RAPHAEL_V10.3.12.0.PFKCNXM_75ea367433_9.0.zip
Im running out of ideas, can anyone here help and share how they fixed it? Thanks!
you should change to Xiaomi EU rom, no issues with Magisk.
Try installing ver 18 or 18.1 magisk i had issues with ver 19 and up on pocof1. Also on pocof1 you had to install dfe (disable force encryption) and them twrp wouldnt be replaced with stock boot recovery. Also any update that comes when twrp is installed will rewrite it to stock recovery.
Wipe userdata/factory reset after installing magisk
I have the same issue and resolve it by install OrangeFox-R10.0_8-Stable & Magisk-v20.1.zip.

Any link for patched and flashed boot image with Magisk for K20 pro?

I cannot root my phone through TWRP for some reason and I would really like to use my phone with Google Pay.
K20 pro, MIUI Global 11.0.1 unlocked bootloader.
Install Magisk yourself. It will work.
Which zip did you flash? The right version of maiden
Magisk will work.
@XblackdemonX I can't install Magisk since it's giving me an error message. Tried every possible way with no luck
@Turbine1991 I have tried install "twrp-3.3.1-15-raphael-mauronofrio"
After installing it the phone is always going back to Stock rom recovery.
@XblackdemonX I can't install Magisk since it's giving me an error message. Tried every possible way with no luck
@Turbine1991 I have tried install "twrp-3.3.1-15-raphael-mauronofrio"
After installing it the phone is always going back to Stock rom recovery.
cohenelad said:
I cannot root my phone through TWRP for some reason and I would really like to use my phone with Google Pay.
K20 pro, MIUI Global 11.0.1 unlocked bootloader.
Click to expand...
Click to collapse
install magisk 19.3
Video install
https://drive.google.com/file/d/16vDfZDWBgtY8_ECB8aRWNed_6mqctY5T/view
 @redmiK20ProIndonesia
Are you rebooting the device after installing TWRP? If you installed TWRP then rebooted without first trying to install Magisk it'll probably just stick the stock recovery back in place and overwrite TWRP if nothing is done to circumvent stock recovery overwrite. If this doesn't apply then no worries but thought I'd mention it.
That's also an old version of TWRP; have you tried a newer version? I'd say try fastboot boot recovery.img then immediately attempt to install Magisk. You're on MIUI11 so you'll want to go with Magisk 19.3.
cohenelad said:
After installing it the phone is always going back to Stock rom recovery.
Click to expand...
Click to collapse
You have to install Magisk to prevent the recovery from changing back to stock.

Losing Recovery after install Custom ROM

Hi,
I have the following problem.
I was able to install the custom ROM properly on my Mi9t pro. Unfortunately my Orangefox Recovery was deleted After the installation.
If I want to install Magisk now, I have to reflash the recovery first.
Do you have any idea why the recovery is deleted? Is there a way to prevent that?
Thanks in advance.
der_andi01 said:
Hi,
I have the following problem.
I was able to install the custom ROM properly on my Mi9t pro. Unfortunately my Orangefox Recovery was deleted After the installation.
If I want to install Magisk now, I have to reflash the recovery first.
Do you have any idea why the recovery is deleted? Is there a way to prevent that?
Thanks in advance.
Click to expand...
Click to collapse
Your (custom) Recovery was really deleted?
Or replaced by stock Recovery
Who says that installation of Magisk requires custom Recovery?
Magisk documentation (Installation Instructions) - please find it on Magisk Github - certainly not.
Patch the boot.img and flash (it can be flashed by Fastboot, hence custom Recovery is not a must to have)
Hi,
it really gets deleted. My cell phone is then only in fastboot mode.
I am not interested in flashing Magisk either, but rather that recovery after an installation is no longer available. This makes installing updates more cumbersome.
I only have the problem when I flash a custom ROM. when I flash a MIUI ROM from xiaomi.eu Beta, the recovery is retained.

Categories

Resources