Root MIUI and Flashing AOSP - Xiaomi Mi Mix 2 Questions & Answers

So I have 2 questions:
1- how to root MIUI? Magisk work fine? Just flash it through TWRP? I used Magisk in a Nexus 6P with stock rom, don't know if it's the same with MIUI.
2- I see that there's some AOSP roms, flashing those roms is just copy the rom and gapps to the internal memory and flash Through TWRP normally?
Thanks.

1. Yes
2. Yep. Of course you will have to wipe in advance. Firmware flashing is also recommended. All info is in the XDA thread's of the roms..

So flash the lastest firmware then the rom right?

_Drifter_ said:
So flash the lastest firmware then the rom right?
Click to expand...
Click to collapse
Yep, update to the latest miui first, then you're good to go.
The best thing before installing a custom rom is to format your data completely and then reboot into recovery mode

So, using the lastest MIUI, formated data on TWRP and flashing the lastest Lineage with Open Gapps, this happend: ROM flashed, Splash screen then the phone rebooted and go right to TWRP. Tried RR Rom from Andy personal build but the gapps are giving me force closed on Google Service.
Any ideas?

Related

Flasing a Custom rom boots to recovery

HI,
Every time I flash a custom rom, it doestn't boot. it goes back to TWRP..
The only time it boots is when I flash rom with official twrp. And it boots with few things missing like magisk and other apps. Bluspark and codeworks doesn't boot.
Stock rom downloaded from oneplus also doesn't boot if the recovery is not official TWRP or the stock one..
Is there something I am missing?
Thanks...
Any ideas?
bibekdwa said:
Any ideas?
Click to expand...
Click to collapse
Try wipe data after reboot to recovery
Sent from my ONEPLUS A5010 using Tapatalk
I wiped data.. it boots.. but, without magisk. so had to flash magisk.. then, it doesn't boot..
MsuatafaKhatab said:
Try wipe data after reboot to recovery
Sent from my ONEPLUS A5010 using Tapatalk
Click to expand...
Click to collapse
bibekdwa said:
I wiped data.. it boots.. but, without magisk. so had to flash magisk.. then, it doesn't boot..
Click to expand...
Click to collapse
No problem to flash later
Sent from my ONEPLUS A5010 using Tapatalk
Did you try flashing stock ROM and the Magisk uninstall zip? This removes everything Magisk related. Then boot, only flash Magisk and see if that works for you
Macusercom said:
Did you try flashing stock ROM and the Magisk uninstall zip? This removes everything Magisk related. Then boot, only flash Magisk and see if that works for you
Click to expand...
Click to collapse
I am now back to stock OB1. Whatever custom rom I flash, it has been troublesome.
Last flash was successful, Audax rom. It had nothing missing. I flashed speaker mod, it worked. Then, I tried a custom kernel, blu-spark for nougat. it bootlooped to Qualcomm loader mode..
I have flashed many phones in the past without any problems for 4 years.. but this time it's not working for me..
Is there any 5T specific step that I am missing?
1. Unlock bootloader.
2. Flash Custom recovery. And boot it.
3. Wiped everything including internal storage.
4. Reboot to recovery.
5. Flashed Rom and then magisk and no-verity.
6. Wiped cache ( only sometimes)
7. After this step, the rom doesn't boot. It comes back to recovery using blu_spark and codeworkx... Stock twrp lets it boot but without magisk.
Then, I flashed magisk... It did the same thing, reboots to recovery.
I tried using magisk uninstaller. It didn't work.
Everytime it goes in to loop, I always had to format data because internal storage was not shown. (0mb)
I have never felt this noob...
Correct me if I'm wrong but is the no-verity zip necessary? Doesn't Magisk do that automatically? Just asking as I have stock ROM with Magisk and Xposed and never any issues.
Flash ROM and Gapps and then boot into system. After setting up, flash twrp again and Magisk. No-verity is needed only if you wanna flash certain unencrypted ROMs, in which case formatting data would also be required.
Did you do both fastboot OEM unlock, as well as enabling the option in developer options?
Macusercom said:
Correct me if I'm wrong but is the no-verity zip necessary? Doesn't Magisk do that automatically? Just asking as I have stock ROM with Magisk and Xposed and never any issues.
Click to expand...
Click to collapse
I don't know but without flashing no-verity zip, i haven't been able to boot any of these custom roms for 5t.
Flashing magisk on stock rom has also worked for me, but strangely I can't boot the custom roms on XDA. Liquid rom was successful but I wanted OOS custom roms. So far, I am unsuccessful.
Stock rom with magisk does fulfill my requirements.
But, I am curious about the problem I am having..
bibekdwa said:
I don't know but without flashing no-verity zip, i haven't been able to boot any of these custom roms for 5t.
Flashing magisk on stock rom has also worked for me, but strangely I can't boot the custom roms on XDA. Liquid rom was successful but I wanted OOS custom roms. So far, I am unsuccessful.
Stock rom with magisk does fulfill my requirements.
But, I am curious about the problem I am having..
Click to expand...
Click to collapse
exactly same situation here sir..
so many rom flashes in many htc devices and never ever had those problems
what's the missing point?
sardelisp said:
exactly same situation here sir..
so many rom flashes in many htc devices and never ever had those problems
what's the missing point?
Click to expand...
Click to collapse
I was having same issues so i flashed blu spark twrp and im golden hope this helps
forty9er said:
I was having same issues so i flashed blu spark twrp and im golden hope this helps
Click to expand...
Click to collapse
The only twrp I have tried is blu_spark anyway.

Questions about upgrading 5T from 5.1.1 to 5.1.3

Hey. I have a rooted with TWRP installed OnePlus 5T on OOS v5.1.1
I've been receiving the 5.1.3 upgrade for a while now and have decided to update. Can i dirty flash the package or do i need to wipe system and data? I'm guessing the root will not be retained and i will have to root again but will the TWRP recovery stay intact? Thanks for your answers
I guess you would be able dirty flash.
You have to flash the twrp and magisk root again. If you are going to flash latest Open Beta 11, you have to flash Beta 10 before to retain data.
XeniX_Force said:
Hey. I have a rooted with TWRP installed OnePlus 5T on OOS v5.1.1
I've been receiving the 5.1.3 upgrade for a while now and have decided to update. Can i dirty flash the package or do i need to wipe system and data? I'm guessing the root will not be retained and i will have to root again but will the TWRP recovery stay intact? Thanks for your answers
Click to expand...
Click to collapse
I have switched from 5.1.3 to beta11 like;
1- download the rom you want to install from oneplus site.
2- also download the stock recovery image from oneplus site.
3- put both files into the phone.
4- flash the stock recovery you downloaded.
5- boot into stock recovery and install the downloaded rom without wiping or formating anything.
6- enjoy your new rom with all your apps and data.
After the above steps you can install custom recovery and magisk again.
I also highly recommend to take a full backup of your phone .
Sent from my OnePlus 5T using XDA Labs
llvllaster said:
I have switched from 5.1.3 to beta11 like;
1- download the rom you want to install from oneplus site.
2- also download the stock recovery image from oneplus site.
3- put both files into the phone.
4- flash the stock recovery you downloaded.
5- boot into stock recovery and install the downloaded rom without wiping or formating anything.
6- enjoy your new rom with all your apps and data.
After the above steps you can install custom recovery and magisk again.
I also highly recommend to take a full backup of your phone .
Click to expand...
Click to collapse
Why was stock recovery flashed? Can the Rom not be installed using TWRP?
XeniX_Force said:
Why was stock recovery flashed? Can the Rom not be installed using TWRP?
Click to expand...
Click to collapse
Well, i always got an error with twrp. No OS installed or something like that. Tried also a dirty flash with twrp and phone was not able to boot. So i found the way with stock recovery.
Sent from my OnePlus 5T using XDA Labs
llvllaster said:
Well, i always got an error with twrp. No OS installed or something like that. Tried also a dirty flash with twrp and phone was not able to boot. So i found the way with stock recovery.
Sent from my OnePlus 5T using XDA Labs
Click to expand...
Click to collapse
Rom can be flashed with Blu Spark treble TWRP V8.78not normal TWRP. And after you flash reboot to recovery then flash magisk 15.3 and no verity V2 or version 3 if your not encrypted either work, I used V2 just fine.
If you try to flash magisk right after rom it will probably give you an error. Reboot only to recovery BEFORE letting the rom boot or you loose recovery, then magisk will flash, 15.3 is the least grievous version after a successful boot upgrading to 16.4 is easy.
16.6 has been giving people grief also.

Error 7 in TWRP when flashing custom roms

I used to be on resurrection remix 7.1.2, but I flashed stock ROM so I could do a clean flash with another ROM. I used Xiaomi unlock tool to unlock bootloader again, then flashed TWRP thru ADB in fastboot. After that I went into recovery, wipe data,cache etc and tried to flash dotos 3.0, but it gave me error 7. I repeated same process with zirconium android 9.0, same thing I'm using latest TWRP, y do I get error 7?? I definitely have the right model etc
Hey mate, have you tried using a vendor based custom recovery? . Is your Twrp vendor based? ( you'll be able to see cust/vendor partition in the advanced wipe menu).
I was messing around today with Dot0s 3.0 and regular Twrp too and found out that i couldn't install any pie roms on regular Twrp. I was previously using batik recovery. So you might be able to flash on it. Let me know if you try it.
Edit : I got the same error 7 on pretty much all oreo and pie roms.
jeevan bk said:
Hey mate, have you tried using a vendor based custom recovery? . Is your Twrp vendor based? ( you'll be able to see cust/vendor partition in the advanced wipe menu).
I was messing around today with Dot0s 3.0 and regular Twrp too and found out that i couldn't install any pie roms on regular Twrp. I was previously using batik recovery. So you might be able to flash on it. Let me know if you try it.
Edit : I got the same error 7 on pretty much all oreo and pie roms.
Click to expand...
Click to collapse
Ah, thanks man. I've been only using regular TWRP, I'll use batik in a bit
Flash old firmware and then upgrade
Arathergreendroid said:
Ah, thanks man. I've been only using regular TWRP, I'll use batik in a bit
Click to expand...
Click to collapse
Flashing Nougat firmware first and then custom recovery worked.
See https://forum.xda-developers.com/xiaomi-redmi-5a/how-to/rollback-downgrade-to-miui-nougat-t3938904
This is work for me.. just extract your cusrom and then go to Meta-Inf > google , edit the updater script. and delete line "get prop ......." all of that line.
so the first line must " ui_print ("Target: ........"); "
save
and select all files from your cusrom, create zip, copy to sd card, install via Recovery

How to flash MIUI custom ROMs from Android Pie?

I am on PE Plus with Orangefox recovery. I want to try MIUI custom ROMs like MiUiMix.
I tried clean flashing but, the phone gets stuck in first boot. What do I do?
geekgunther said:
I am on PE Plus with Orangefox recovery. I want to try MIUI custom ROMs like MiUiMix.
I tried clean flashing but, the phone gets stuck in first boot. What do I do?
Click to expand...
Click to collapse
Which firmware did u used? Archive with rom FOR twrp???
Wipe data - yes.
Reboot to twrp
Wipe dalvic/cash
Rebootbto twrp
Flash firmware
Reboot to twrp
Flash rom (magisk, gapps if u needs)
Reboot to system.
may not fully downloaded the archive. try to download again?

[Rom] [10] Resurrection Remix

Hey guys. Until the RR dev makes a thread, this will continue to stay in Discussion. I am NOT the dev for RR. So wanted to get the rom more exposure.
Rom: https://sourceforge.net/projects/resurrectionremix-ten/files/instantnoodlep/
Kernel source: https://github.com/luk1337/android_kernel_oneplus_sm8250
Changelog: https://get.resurrectionremix.com/ten/changelog/Changelog.txt
Be on OOS 10(both slots)(local upgrade last OOS 10 for slot b)
Flash twrp both slots(https://downloads.sourceforge.net/p...=cfhcable&r=https://forum.xda-developers.com/)
Flash rom
Reboot twrp
Wipe userdata(always a must when switching between OOS and custom)
(Optional) install kernel and magisk
Reboot
**UPDATE** this flash instructions work. I use these and ONLY these instructions. If you have a better way, good for you, but if you can't get it to boot, use these.
***UPDATE 2*** if you have installed Android 11 prior to installing this rom, you must msm back to OOS 10 and local upgrade OOS 10 again to slot b and only use Android 10 recovery
Nice one. :good:
Is twrp ok to wipe now? Or would we need stock to do so?
If the latter then may be worth booting twrp and retaining stock recovery to wipe.
Good to see a ROM thread for this.
Excellent.
My thanks to the dev too, it's appreciated.
dladz said:
Nice one. :good:
Is twrp ok to wipe now? Or would we need stock to do so?
If the latter then may be worth booting twrp and retaining stock recovery to wipe.
Good to see a ROM thread for this.
Excellent.
My thanks to the dev too, it's appreciated.
Click to expand...
Click to collapse
I've had no issues using latest twrp
jamescable said:
I've had no issues using latest twrp
Click to expand...
Click to collapse
Does it have oos cam?
areyouanand said:
Does it have oos cam?
Click to expand...
Click to collapse
Honestly, don't know. I don't use OOS can, but I don't think so
jamescable said:
Hey guys. Until the RR dev makes a thread, this will continue to stay in Discussion. I am NOT the dev for RR. So wanted to get the rom more exposure.
Rom: https://get.resurrectionremix.com/?dir=ten/instantnoodlep
Kernel source: https://github.com/luk1337/android_kernel_oneplus_sm8250
Be on OOS
Flash twrp both slots
Flash rom
Reboot twrp
Wipe userdata(always a must when switching between OOS and custom)
(Optional) install kernel and magisk
Reboot
Click to expand...
Click to collapse
Why to boot to twrp after flashing the rom?
We can just boot the twrp( not flash it)
Flash rom
Flash magisk ( optional)
Format data
Reboot
It should be mentioned that these builds are blind builds. The Dev doesn't own the device.
Kollachi said:
It should be mentioned that these builds are blind builds. The Dev doesn't own the device.
Click to expand...
Click to collapse
Correct but doesn't matter. I tested first few builds before they were released and now alots of people used them. They aren't beta or alpha but stable. So? What's your point?
cultofluna said:
Why to boot to twrp after flashing the rom?
We can just boot the twrp( not flash it)
Flash rom
Flash magisk ( optional)
Format data
Reboot
Click to expand...
Click to collapse
8pro has a recovery partition. So unless you flash a rom that overwrites twrp with another recovery (stock OOS, etc) then twrp will remain after rom flash
jamescable said:
Correct but doesn't matter. I tested first few builds before they were released and now alots of people used them. They aren't beta or alpha but stable. So? What's your point?
Click to expand...
Click to collapse
It's simple. If people run into issues or whatever he can't probably fix it. It was the same with treskmod for example.
Kollachi said:
It's simple. If people run into issues or whatever he can't probably fix it. It was the same with treskmod for example.
Click to expand...
Click to collapse
[Mod Edit] Telegram link removed.
jamescable said:
[Mod Edit] Telegram link removed.
Click to expand...
Click to collapse
He is blind building from latest los source that's all. Respect him for doing that, but it's not 100% guarantee for a fully working rom.
jamescable said:
8pro has a recovery partition. So unless you flash a rom that overwrites twrp with another recovery (stock OOS, etc) then twrp will remain after rom flash
Click to expand...
Click to collapse
This is something that i already know...
Questions are...
1. why to boot to twrp after flashing the rom( useless step)
2. Why to flash twrp on both slots and not inly boot it
cultofluna said:
This is something that i already know...
Questions are...
1. why to boot to twrp after flashing the rom( useless step)
2. Why to flash twrp on both slots and not inly boot it
Click to expand...
Click to collapse
1. Is NOT useless. That is for clean flashing which is ALWAYS recommend by every dev. When you dirty flash, it's at your own peril.
And 2. Once again. The OnePlus 8 pro has a recovery partition. So twrp does not get overwritten when you flash a rom. Like on 7 pro, we had to flash twrp after every rom flash. Not needed on 8 pro.
cultofluna said:
This is something that i already know...
Questions are...
1. why to boot to twrp after flashing the rom( useless step)
2. Why to flash twrp on both slots and not inly boot it
Click to expand...
Click to collapse
1. I think he meant to say reboot to recovery and not boot the twrp.img.
2. Yes you can boot twrp only. That's what im doing since OP7. But you will need to do this everytime you wanna flash something with twrp.
jamescable said:
1. Is NOT useless. That is for clean flashing which is ALWAYS recommend by every dev. When you dirty flash, it's at your own peril.
And 2. Once again. The OnePlus 8 pro has a recovery partition. So twrp does not get overwritten when you flash a rom. Like on 7 pro, we had to flash twrp after every rom flash. Not needed on 8 pro.
Click to expand...
Click to collapse
On your flashing instructions you said. "flash twrp on both slots"
So im asking one more time,... why not just to boot the twrp img on fastboot and flash the rom...
What is this about recovery partition ... everybody knows that the 8 pro has a separate recovery partition
EDIT..Reboot to twrp after flashing the Rom is useless...
I insist. .dont needed
cultofluna said:
On your flashing instructions you said. "flash twrp on both slots"
So im asking one more time,... why not just to boot the twrp img on fastboot and flash the rom...
What is this about recovery partition ... everybody knows that the 8 pro has a separate recovery partition
EDIT..Reboot to twrp after flashing the Rom is useless...
I insist. .dont needed
Click to expand...
Click to collapse
It's in the pic I uploaded. Even the twrp dev said to flash it. So you won't have to fastboot boot anymore. Once you flash it. It's on your phone and won't go away when you reboot recovery
Every phone used to have a boot(kernel) partition, system partition, modem/radio partition, bootloader, userdata, and a few other INCLUDING recovery partition. Recently, the recovery was missing but now it's back. So we no longer have to have to boot twrp but flash it
Hello everyone, I need help installing this rom please, I have the latest TWRP 3.4.0-14-Mauronofrio installed in both slots, latest stable OOS in both slots, I have an IN2025 and for some reason I get this error with TWRP. Thanks in advance guys.
oscarmaldonado said:
Hello everyone, I need help installing this rom please, I have the latest TWRP 3.4.0-14-Mauronofrio installed in both slots, latest stable OOS in both slots, I have an IN2025 and for some reason I get this error with TWRP. Thanks in advance guys.
Click to expand...
Click to collapse
That is strange. I also have 2025. Try moving the rom to phone instead of usb device. Since this is an updated twrp may be an issue. However. I did NOT have OOS installed on both slots. I flashed latest OOS full rom, used OOS recovery to wipe data. Booted and then flashed twrp to both slots, flashed RR, reboot recovery and flashed magisk

Categories

Resources