Question Flashing LineageOS on X3 Pro. What do I do at recovery? - Xiaomi Poco X3 Pro

Hi y'all. I recently got an X3 Pro and will be installing LineageOS on it. I'm just currently waiting out the 1 week period before the Mi Unlock app allows me to unlock the bootloader. I read through the official installation instructions a few times and one of the first things it says is to ensure the phone is already running its stock Android 12 ROM, which mine is. Further down where it says to factory reset in the custom recovery, it only mentions erasing the data and cache partitions. Does this mean I'm supposed to flash LOS over MIUI or is it safe to erase system first then clean install LOS? It would be much appreciated if anyone could shed some light on this. If it helps, I also intend to use OrangeFox recovery.
EDIT: I found out about Xiaomi firmware flashing while doing some more research for this. Please let me know if I've got this right. I think the reason the instructions say to be on the latest stock ROM and don't say to erase system is because MIUI has a set of closed-source low-level drivers that are available for download separately but cannot be included as part of a custom ROM. Dirty flashing LOS will keep these drivers intact while removing MIUI. If this is correct, then this should mean it's safe to erase system as long as I download the latest firmware file and flash it before the ROM so that the drivers are there when the ROM is installed. Am I right about all this?

Related

Questions regarding Unlocked Bootloader/Wiping before Flashing

Hello,
recently i got a Mi Mix 2S and i immdiately started the unlock bootloader process. (I guess i was lucky with only 72 hours wait time)
i plan to try out several rom's. Also xiaomi.eu.
- i'm somewhat confused regarding wiping before flashing because of different instruction here on xda and on xiaomi.eu. On xiaomi.eu they write 'NEVER wipe system and persist' and on xda (at least for the aosp based rom's) always install stock miui AND wipe also system afterwards. Doesn't wiping system removes stock miui anyway?
- what does this 'vendor' on flashing stock miui (firmware + VENDOR) mean? Or can i just take the suitable rom package for miMix2S from miui.com and flash it in TWRP?
(my MiMix2s is original with global rom)
- after the bootloader is unlocked, is the information stored in the bootloader ? because i assume that aosp rom's doesn't have a xiaomi/Mi Account login section (unlike xiaomi.eu rom), so there after unlocking there is no need to have xiaomi account informations in the system?
Thanks in advance. Great community here!
First of all, you need to go in Wipe and Format Data before you flash anything cause data is encrypted on mix 2s (THIS WILL WIPE ALL THE INTERNAL STORAGE AS WELL, SO MUSIC, PICTURES AND VIDEO ARE DELETED, IF YOU DON'T HAVE AN EXTERNAL DRIVE TO STORE THIS DATA IT WILL BE DELETED, YOU CAN ALWAYS TRY LAZY FLASHER WHEN YOU INSTALL A NEW ROM TO DISABLE ENCRYPTION)
To flash VENDOR+FIRMWARE since I use MIUI chinese version I don't need to do it but normally you go to https://firmwarefile.com/ to download the last firmware and flash it (I forget if it's through recovery or fastboot but it's probably fastboot)
The information it's store, so going from custom rom to another it's pretty easy, however if you decide to go back to miui like I did you will need to reflash twrp through fastboot after flashing the rom and it will ask you your mi account password to start using the rom.
Hope it was helpful and readable cause my english it's far from perfect.

[Thread doubts] OnePlus 7 chinese version [GM1900]

Hi guys, I open this thread to solve problems / doubts of this chinese version of One Plus 7 GM1900 because I guess many will be in my place.
I tell you my case:
My intention is to open bootloader to be able to put custom recovery TWRP and root it with Magisk.
Once I have it, I have doubts:
1. If I want to remove TWRP and Root, and I will leave all stock, what steps should I take?
2. If I am in OOS (for example 9.5.2) with TWRP and root and want to upgrade to a new version of OOS (for example 9.5.6), what steps do I have to follow?
3. I would like to know if this is true, and if so, what would be the solution: I have read that when a Wipe System is made from Twrp, the bootloader can be closed or that the phone does not start in fastboot mode causing a crash. Is this true?. I thought about when I wanted to install a cleaner ROM stock, make a Wipe System, data, cache and dalvik and then flash the rom, and according to that it might not be possible.
Thank you.
Hi, are these Treble GSI roms compatible with the OnePlus 7 (not pro) Chinese version GM 1900 ???
Roms Treble GSI:
https://forum.xda-developers.com/project-treble/trebleenabled-device-development
hardware is the same, firmware also fits from EU/Indian devices. next time just use search.
tURkOsANsE said:
1. If I want to remove TWRP and Root, and I will leave all stock, what steps should I take?
Click to expand...
Click to collapse
Flash the stock ROM and reboot. You'll have a phone with stock recovery and ROM with no root access. It won't relock your bootloader though, so you'll have to do it with: fastboot oem lock
2. If I am in OOS (for example 9.5.2) with TWRP and root and want to upgrade to a new version of OOS (for example 9.5.6), what steps do I have to follow?
Click to expand...
Click to collapse
You always need to flash full ROM zips if you're rooted and want to update. However to keep the custom recovery (TWRP), you need to flash the TWRP installer along with the ROM. Then to not lose root access you'll have to reboot to TWRP and flash Magisk. Just follow these steps:
1. Boot to TWRP
2. Flash ROM
3. Flash TWRP installer
4. Reboot to TWRP
5. Flash Magisk
6. Reboot to system
3. I would like to know if this is true, and if so, what would be the solution: I have read that when a Wipe System is made from Twrp, the bootloader can be closed or that the phone does not start in fastboot mode causing a crash. Is this true?. I thought about when I wanted to install a cleaner ROM stock, make a Wipe System, data, cache and dalvik and then flash the rom, and according to that it might not be possible.
Click to expand...
Click to collapse
I haven't tried that yet. But since TWRP builds are official, I don't think there are bugs like that. Why don't you give it a try and let us all know?
@dewri21 Thank you very much for your answers, you have helped me a lot, thank you for your clear explanations, please like this, help those who are starting in this world.
dewri21 said:
I haven't tried that yet. But since TWRP builds are official, I don't think there are bugs like that. Why don't you give it a try and let us all know?
Click to expand...
Click to collapse
Hehehehe I dare not do it, I could run out of mobile phone and end up with a brick. At the moment if I want to put clean OOS I think I will use Fastboot mode. Let's see if a partner who knows how to get out of a brick does Wipe Sistem and confirms that.
FASTBOOT: https://forum.xda-developers.com/oneplus-7/how-to/rom-stock-fastboot-roms-oneplus-7-t3937478
Hi guys, I am writing to let you know that I have flashed the fastboot 9.5.6 BA ROM in my OnePlus 7 Chinese version GM 1900 and it worked perfectly. I was in TWRP, Root Margisk and Custom Kernel, and now I'm back in Stock. My device being a Chinese version came with ROM AA when removed from the box, and I confirm that the BA version can also be set up by Fastboot.
Add that as it is said, the first restart is slow, it stays a while in the warning screen of bootloader open, but it advances with the start. In my case I have not had to restore factory.
Very happy with this method to be able to return to Stock.
Hello, has anyone tried this on our OnePlus 7 to fix a brick? It seems that it is the MsMdonwloadsTools for our OnePlus 7. Someone who has a brick can try it and tell us if it works.
https://repairmymobile.in/flash/oneplus-7-flash-file/amp/
MsmDownloadTool For OnePLus 7: https://forum.xda-developers.com/oneplus-7/how-to/unbrick-tool-oneplus-7-msmtool-hydrogen-t3953240

S7 G930F stuck in a bootloop after attempt to install TWRP

Hi everyone!
I wanted to finally flash a custom ROM on my G930F (vanilla, with the latest official update) and started by installing TWRP (twrp-3.3.1-0-herolte.img.tar) via Odin (3.13.1) following this guide: https://forum.xda-developers.com/galaxy-s7/development/recovery-official-twrp-herolte-t3333770.
Everything was going smoothly until step 9, because after swiping right I tried rebooting before flashing anything (found a thread on Reddit advising to just follow the guide without proceeding with rooting as indicated in the last steps). So now I'm stuck in a bootloop and I have no idea what to do, I can only access Download mode but that's it.
How do I solve this problem?
Step 10 included scenarios for both if you want root, or if you just want to boot successfully
Did you download and flash the dm-verity and force encryption disabler zip as per the step 10?
Repeat steps 6-10 and flash that zip
Beanvee7 said:
Step 10 included scenarios for both if you want root, or if you just want to boot successfully
Did you download and flash the dm-verity and force encryption disabler zip as per the step 10?
Repeat steps 6-10 and flash that zip
Click to expand...
Click to collapse
Thanks for answering!
Yes I figured out, installed TWRP via Odin again and then tried flashing that thing without wiping as shown in the video, but then I got some error messages and the device wouldn't boot up again, telling me I had to do a wipe. So I just went into recovery and did a factory reset.
Now I'd like to flash LineageOS but I'm not so sure anymore since I've had so many problems, and I have a few questions:
Do I need to reinstall TWRP?
Do I need root?
What version of LineageOS should I download?
Is there a guide for flashing LineageOS on the S7?
trim1_ss said:
Thanks for answering!
Yes I figured out, installed TWRP via Odin again and then tried flashing that thing without wiping as shown in the video, but then I got some error messages and the device wouldn't boot up again, telling me I had to do a wipe. So I just went into recovery and did a factory reset.
Now I'd like to flash LineageOS but I'm not so sure anymore since I've had so many problems, and I have a few questions:
Do I need to reinstall TWRP?
Do I need root?
What version of LineageOS should I download?
Is there a guide for flashing LineageOS on the S7?
Click to expand...
Click to collapse
Do I need to reinstall TWRP?
No TWRP will remain until you remove it or flash stock firmware.
Do I need root?
Not required to flash custom Rom's but useful
What version of LineageOS should I download?
Look at the ROM section and read up on which one you want, there are several different ones and builds so the choice is yours.
Is there a guide for flashing LineageOS on the S7?
There is always a guide contained in the post for the ROM usually at the beginning. The process of flashing Rom's is generally the same no matter what Rom you use.

Really confused on steps to root / custom rom.. Help me please

I have the GM1910 version of the OnePlus 7 Pro
Ok so I had a stock OOS 10.3 on the 7 Pro I just bought used, went home and was super excited to get a custom rom installed. From my previous experience back in the day, I knew to USB Debug, OEM unlock, Advanced Reboot for convenience and followed the Havoc Custom ROm guide that said to:
1. Download the ROM, TWRP Installer, GApps, Magisk.
2. Wipe Data, Dalvik.
3. Flash the ROM, TWRP Installer (Use Unofficial Q compatible version, starting at 3.3.1.575).
4. Reboot to Recovery.
5. Flash the ROM, TWRP Installer again.
6. Reboot to Recovery.
7. Flash GApps (Optional), Magisk (Optiona).
8. Reboot and Enjoy.
Never Wipe System or Vendor partition.
After doing so, I first ran into an issue with Fastboot Mode being indefinitely stuck, but fixed that with a TWRP 3.3.1-75 version I downloaded, and was able to boot TWRP. After that, and following the guide above, I noticed it was stuck on the Havoc boot animation. I waited a good 20 minutes before realizing its likely never going to boot. I rebooted twice after that, waiting 10 more minutes each for a total of about an hour, thinking "Hey maybe it takes time". Nothing. I then tried flashing NikGapps for Android Q compatibility as latest Gapps on the OpenGapps website allows up to Android 9. I realized afterward that it was a n00b mistake so I downloaded and flashed the Beta Android 10 Beta Pico OpenGapps and Magisk Canary that also failed.
After that, I started searching around for finding a way to return to stock Android 9 to start over, thinking Android 9 had more stable support, so I downloaded and fastboot flashed the Android 9.5..11 GM21AA - Direct Download, but while showing the OnePlus stock boot animation, it freezes and then the device turns off entirely.
I'm currently waiting for the 9.5.13 Repack (taken from the Collection of Unbrick Tools thread) to finish downloading to see if I can use MSM tool to restore stock Android 9 and kind of start over. I would prefer to root / custom rom Android 9. I have no clue what I'm doing now, but honestly recall it being so easy back in the day before this A/B partition stuff and I would have considered myself to be not so much a n00b, but at least quite "experienced" but I guess thats completely irrelevant now hey!. Can someone please guide me on how I can fix this and get a custom rom booting? Thank you very much!
Update: I managed to restore to Android 10 using the Decrypted Oxygen OS 10.3 ZIP from the "Collections of brick tools" linked above, then rooted that stock OOS using the standard guide. I got Havoc Android 9 working prior but ran into tons of bugs so I just decided to stick to stock for now.
imatts said:
Update: I managed to restore to Android 10 using the Decrypted Oxygen OS 10.3 ZIP from the "Collections of brick tools" linked above, then rooted that stock OOS using the standard guide. I got Havoc Android 9 working prior but ran into tons of bugs so I just decided to stick to stock for now.
Click to expand...
Click to collapse
Unless there is something specific you need with a custom ROM, I'd stay stock and root.
I have EdXposed installed and can tweak most things.
I really need ad blocking and some basic customization.
I don't need a full ROM to get what I want.
tech_head said:
Unless there is something specific you need with a custom ROM, I'd stay stock and root.
I have EdXposed installed and can tweak most things.
I really need ad blocking and some basic customization.
I don't need a full ROM to get what I want.
Click to expand...
Click to collapse
I would have agreed with you yesterday, but I've used the phone for a few days and cannot stand the insanely rounded corners so I tried finding a work around. So far reducing screen height and getting rid of Oxygen OS's software rounded corners is the way to go but stock OOS doesnt give you the option, I'm hoping a custom rom will. Currently in the midst of flashing RR Android 9
Which boot slot are you trying to flash the rom on and have you tried flashing other roms? I know I've tried flashing havoc a few times and no go. I'm using blissrom right now and it works great until I get the rom I'm building and configuring and have data and messaging working lol

update custom rom from internal storage.

I downloaded and installed a custom ROM of google pixel experience and after a couple of days I got a notification that there is a new update available when I am done downloading it and tapped to install my phone is on the custom recovery
can I install the downloaded software from internal storage via the recovery menu without formating my phone and wiping all data
like installing any official ROM
my phone is redmi note 8 pro and the installed firmware is: https://download.pixelexperience.org/begonia/
version:16/11/2022
I will really appreciate any help
ali_elsharkawy said:
I downloaded and installed a custom ROM of google pixel experience and after a couple of days I got a notification that there is a new update available when I am done downloading it and tapped to install my phone is on the custom recovery
can I install the downloaded software from internal storage via the recovery menu without formating my phone and wiping all data
like installing any official ROM
my phone is redmi note 8 pro and the installed firmware is: https://download.pixelexperience.org/begonia/
version:16/11/2022
I will really appreciate any help
Click to expand...
Click to collapse
Yes, you can flash the update via recovery without wiping the device. This is called a "dirty flash" and can only be done if you are installing an update of the ROM that you currently have installed. For example, if you have a LineageOS ROM installed and a LineageOS update is available, you could install that update without wiping the device. But, if you have Pixel Experience installed, you can not flash LineageOS without wiping the device. In your case, as long as the update is a Pixel Experience update, you can flash without wiping.
Droidriven said:
Yes, you can flash the update via recovery without wiping the device. This is called a "dirty flash" and can only be done if you are installing an update of the ROM that you currently have installed. For example, if you have a LineageOS ROM installed and a LineageOS update is available, you could install that update without wiping the device. But, if you have Pixel Experience installed, you can not flash LineageOS without wiping the device. In your case, as long as the update is a Pixel Experience update, you can flash without wiping.
Click to expand...
Click to collapse
Thank you very much, I will be thankful if you could tell my in some detail how to do it
I thought it might be by choosing the "install" options from recovery, then install the file from internal storage. Is it right? Or should be done someway else?
ali_elsharkawy said:
Thank you very much, I will be thankful if you could tell my in some detail how to do it
I thought it might be by choosing the "install" options from recovery, then install the file from internal storage. Is it right? Or should be done someway else?
Click to expand...
Click to collapse
Obviously. How else did you plan on installing it via recovery? I am not aware of a different way to flash a ROM via recovery.

Categories

Resources