How to do a clean flash? - Xiaomi Mi A3 Questions & Answers

Hi all,
I followed the updates and bugs of the new version and decided to keep my pie system until annoying bugs for me would have gone, so I've decided that is the right time for a clean flash of my device.
I'm currently on stock rom, with unlocked bootloader, magisk and much more.
I wanted to ask how can I do a clean flash of the latest version of the released Android 10, in a way that I erase everything on my phone, put the new rom, and keep magisk and unlocked bootloader.
If I flash through the fastboot image, I get to unlock the bootloader again? How does it work with double partition and the newest android versions?
I miss my opo with lineage and no partitions or recovery problems

Up

Related

Updating only bootloader

Hello,
I have installed the 6.0.1 beta but did not first flash a rom with a recent bootloader, hence I can't flash a recovery.
Is there any way to only install the latest bootloader, without first wiping my phone?
Thanks!
No !
Theoretically it should work, but It would be much more work than backing up and reflashing.
Of cause you can extract the bootloader and flash it, but this will not work!
You need to repartition your device to get the new bootloader to work. So you need to delete everything.
You can do it like this : http://forum.xda-developers.com/xperia-z2/help/tutorial-recovery-unlocked-bootloader-t3343416

Note 3 [SD] came with unlocked Bootloader

Hey all!
I just got my Note 3 (Snapdragon/Kenzo) from DX and it came with global US rom. I checked and its bootloader is already unlocked. I want to update to Miui 8 global dev but I'm worried with this unlock, is there a way to know if it was officialy or unnoficialy unlocked? I want to flash the oficial recovery rom but heard that it can brick the phone if it was unnoficialy unlocked.
link: http://www.dx.com/p/432294
It came with Miui 7.3 Stable (7.3.2.0.0 LHOCNDD)
Please, help. =)
Hazihell said:
It came with Miui 7.3 Stable (7.3.2.0.0 LHOCNDD)
Click to expand...
Click to collapse
That is a vendor rom.
More than likely it is unofficially unlocked, because your only allow to unlock 1 device per month for each account.
Since your bootloader is unlocked, flash an official rom (which might lock the bootloader again).
Don't flash the latest 6.0.1 rom yet as you might not be able unlock with that.
Then unlock officially.
Check the reddit xiaomi wiki for guides.
Got it! Thanks, for your answer. I realy dont mind unlocking, I just want a miui 8 dev(it has a built in root, right?). I just was afraid of what method of flashing I should use with this unnoficialy unlocked bootloader. I'm going to search this wiki for it.
And better do a Alka TWRP backup now, before anything! Then, if you get your bootloader locked, you can always restore the backup to your current status - ROM and unlocked bootloader. I have two Kenzos in the same situation, and that's the way I do it.
Nice! Will do. Can't I just use that recovery to install an updated rom? There is an annoying bug on this version, I can't open my contact or dialer app, they close befero they appear on screen, tried erasing data but no help.
Boot from TWRP without installing it, make the backup (all partitions), then make sure you get the backup on your PC. After that you can install TWRP and make whatever you wish.
And don't forget, if you need to restore, do it without restoring the firmware partition, or else you'll get an error.
Thansk! But I think I will stick with the global dev. Can I flash it via Fastboot (MiFlash)? This unnoficial unlock wont cause any trouble, right ?
This is not an unofficial unlock. Is isn't either official
My phones came with some vendor MIUI's - 7.4.9.0(LHOCNDD), respectively 7.4.18.0(LHOMIDD), but I never flashed another MIUI, just custom ROMs. For what I know, if you flash via fastboot it will wipe the entire partition structure, including boot and recovery, and the bootloader will get locked. In that case you can not restore the backup you make now. You'll have to apply for official unlocking, or go unofficial.
Hazihell said:
Hey all!
I just got my Note 3 (Snapdragon/Kenzo) from DX and it came with global US rom. I checked and its bootloader is already unlocked. I want to update to Miui 8 global dev but I'm worried with this unlock, is there a way to know if it was officialy or unnoficialy unlocked? I want to flash the oficial recovery rom but heard that it can brick the phone if it was unnoficialy unlocked.
link: http://www.dx.com/p/432294
It came with Miui 7.3 Stable (7.3.2.0.0 LHOCNDD)
Please, help. =)
Click to expand...
Click to collapse
that means.. you recieved an unboxed device, may be refurbished, repacked and resealed and sold $25 costlier than the original. :silly:
Not necessarily. I have two, buyed from a local big online store, both came with unlocked bootloader. Both boxes were sealed, with no sign of foreign hands
I have 7.3.2.0.0 LHOCNDD rom and unlocked bootloader. Can I just type on fastboot:
fastboot flash recovery recoveryAlkaUpdate.img
to get twrp(alka)?
Thats work!
paul_damian said:
This is not an unofficial unlock. Is isn't either official
My phones came with some vendor MIUI's - 7.4.9.0(LHOCNDD), respectively 7.4.18.0(LHOMIDD), but I never flashed another MIUI, just custom ROMs. For what I know, if you flash via fastboot it will wipe the entire partition structure, including boot and recovery, and the bootloader will get locked. In that case you can not restore the backup you make now. You'll have to apply for official unlocking, or go unofficial.
Click to expand...
Click to collapse
I have the same MIUI vendor as you, 7.4.9.0(LHOCNDD), what method did you use to install TWRP? I only want to install AOSP/CM based ROM on this device. I want to flash it ASAP cause this MIUI ROM have a Trojan downloader, which luckily can be disabled.
I used Cofface on first phone, Alka on the second. Before flashing, first boot from TWRP image, make backup of all partitions to the SD card, copy the backup on computer, and only after that flash the TWRP image. After that... flash ROMs
paul_damian said:
I used Cofface on first phone, Alka on the second. Before flashing, first boot from TWRP image, make backup of all partitions to the SD card, copy the backup on computer, and only after that flash the TWRP image. After that... flash ROMs
Click to expand...
Click to collapse
I followed a tutorial that uses ZXC TWRP while on MIUI. Then I flashed ALKA, I'm on Nexus Experience now.

problem with twrp and oos 3.x.x

hello,
my current situation: i am on oos 2.2.3, not rooted, twrp 3.0.1-0 running.
i want to install a 3.x.x oos, version, i wanted to install 3.1.2 first, cause oneplus site i can install that directly form 2.2.3 (no such info on 3.1.3 and 3.1.4)
when i try to install with twrp, it says "this package is for "Oneplus" devices, this is a "ONE"
i think i am using the wrong twrp version. tried to install the newest (3.0.3-0), but this one doenst work, can not boot into it.
please help
Best is to fastboot flash old OOS 2 recovery
Then, with it, flash the 2.2.3. Reboot. then Flash 3.1.4. with the recovery
First you need to flash official oxygen os recovery for android 5.1 lollipop https://s3.amazonaws.com/oxygenos.oneplus.net/OPX_recovery.img Now you will be able to boot the phone. Now download and copy oxygen os 3.1.4 to internal memory http://downloads.oneplus.net/devices/oneplus-x/ Reboot into recovery and flash the rom.
Aftrr successful flash of oos3 boot into fastboot and flash latest twrp from twrp website.. This time it should work.
thanks, it work with the costum recovery.
on 3.1.4 i installed a slightly older twrp form sparkfire (3.0.2 i think), rooting and installing xposed worked fine though.
is it important to have the latest twrp?
and another question. at some point in my hours long struggel with updating my opx i softbricked it. i guess my bootloader was locked and i tried to install another recovery. i expected it to be still unlocked from my first rooting months ago. when does the bootloader lock?
dooglrig said:
thanks, it work with the costum recovery.
on 3.1.4 i installed a slightly older twrp form sparkfire (3.0.2 i think), rooting and installing xposed worked fine though.
is it important to have the latest twrp?
and another question. at some point in my hours long struggel with updating my opx i softbricked it. i guess my bootloader was locked and i tried to install another recovery. i expected it to be still unlocked from my first rooting months ago. when does the bootloader lock?
Click to expand...
Click to collapse
It is always recommended to use latest (bugs free)
You can use this one https://dl.twrp.me/onyx/twrp-3.0.3-0-onyx.img latest as of now. And no u didn't brick ur phone. U flashed a new twrp for old bootloader version. Thts y u got stuck with oneplus logo. Its all oneplus things. Its always preferred to use stock recovery for updating bootloader which is safe. Check your bootloader state by giving this cmds "fastboot oem device-info"
cva_kabil said:
It is always recommended to use latest (bugs free)
You can use this one https://dl.twrp.me/onyx/twrp-3.0.3-0-onyx.img latest as of now. And no u didn't brick ur phone. U flashed a new twrp for old bootloader version. Thts y u got stuck with oneplus logo. Its all oneplus things. Its always preferred to use stock recovery for updating bootloader which is safe. Check your bootloader state by giving this cmds "fastboot oem device-info"
Click to expand...
Click to collapse
Hmm isnt that for new BL as well ?
NielDK said:
Hmm isnt that for new BL as well ?
Click to expand...
Click to collapse
Yes it is. OP said that he's on OOS 3.1.3, so already on the new BL.

Re-flashing OPX ROM via fastboot

Hi
First a little history...
I recently got an OPX with the intention of installing Sailfish OS on it. So first I need to get CM 12.1 installed. Following the instructions here I flashed TWRP using fastboot, but the version of TWRP provided at the link would not find any system partitions on my device and therefore could not be used to flash any images. Newer versions of TWRP would simply not load.
Eventually, using the stock OPX recovery, I managed to upgrade Oxygen OS to the latest version. I then flashed the latest version of TWRP (3.1.1-1) again and it worked! It found my devices partitions and I could flash ROMs with it. But, it wouldn't flash CM 12.1. Something about a trustzone incompatibility...
So I got the idea to try and downgrade Oxygen OS, which I did via TWRP. But then TWRP stopped working... and here is my problem.
I'm now stuck in a situation where:
- I can access fastboot
- The only versions of TWRP which work (e.g. 3.0.2-0) fail to find my system partitions, and therefore can't be used to flash ROMs
- The stock recovery also seems to fail to find the system partitions (clicking on "install locally" does nothing), so I can't use that to flash ROMs either
So I really need to get a working image on my phone somehow... but how?? Is it possible to do this via fastboot only?
Cheers!
Is your bootloader unlocked? TWRP cannot see system partitions if so.
I unlocked it originally... but since then I have installed a new ROM (Oxygen OS 2.x). Would this overwrite the bootloader? Do I need to unlock again? I think I must be using the old OOS bootloader now...
I think you can see if it's unlocked if you boot into bootloader, connect to pc and write on cmd "fastboot devices".
Whenever you switch between android 5.0 roms and 6.0 and further you have to first use the correct recovery from oneplus, only then you can flash the correct twrp and the adequate roms
My bootloader is unlocked. I cannot flash a new ROM via recovery, because none of the recovery images (stock, TWRP) can see my system partitions (I don't know why). At this stage I would just like to know if there is a way to flash a stock ROM/recovery/bootloader via some other method (fastboot, or a special tool), so I can restore my phone back to factory state. I don't care about losing data. Thanks.
EDIT: Just to clarify, I believe this is my current situation (please correct me if something doesn't make sense):
- OOS has two different bootloaders, 2.x and 3.x.
- The phone originally had OOS 2.x on it. None of the TWRP images I installed recognized my system partitions, so I couldn't flash with TWRP.
- After re-installing the stock recovery (which happened automatically when I booted to the stock ROM), I was able to upgrade to OOS 3.x via stock recovery. Now recent TWRP versions were working (I assume because upgrading to OOS 3.x updated the bootloader too), and were recognizing my system partitions.
- Using a new version of TWRP (3.1.1-1), I re-flashed an older version of OOS 2.x again. I think this was my mistake, because I think this downgraded the bootloader to 2.x again. Now none of the TWRP versions recognize my system partitions, so I cannot flash ROMs.
- I have re-flashed the stock recovery from the OnePlus website, but not even this allows me to flash ROMs. The symptoms look like in TWRP, i.e. that it fails to recognize my system partitions. So I am stuck with no way to flash ROMs, or upgrade the bootloader.

[NEWBIE] Root questions - not sure because of language problems

I would certainly like to root my Poco F1. However, after reading loads of topics, I'm still not sure of which way to choose, because I have a bit of a problem with the jargon.
I want the face unlock to be working
I want to get rid of MIUI and have clean Android (for example Smart Lock doesn't work with MIUI)
I want to use gestures to navigate through the phone
Hence, I am probably looking for a custom ROM?
If I understand correctly, I need to:
Unlock the bootloader, then flash TWRP, then flash the custom ROM, then flash Magisk... and everything is done (?)
If I want to revert to stock ROM, I will just wipe everything, am I right?
Would these custom ROMs do?
https://forum.xda-developers.com/poco-f1/development/rom-pixel-experience-t3857076
https://forum.xda-developers.com/poco-f1/development/rom-nitrogen-os-beta-t3857557
Thank you all!
You need to flash the appropriate vendor as well. You can find the list of vendor firmwares for download here:
downloads. akhilnarang .me/MIUI/beryllium/
Most custom roms require a specific requirement for vendor. I'd recommend flashing the latest vendor, it shouldn't cause issues.
Magisk flashing isn't a necessary step, unless you prefer root access. Make sure to back up your data because your phone will get encrypted on first boot and all your data will be lost, not to mention the data loss during bootloader unlock. You can use force encryption disabler to disable encryption. But note that you will have to flash the zip every time you flash a new ROM/vendor or else it will get encrypted again.
Also. Pixel experience is a good ROM for stock android experience, but I would recommend lineage OS unofficial over it because of the customisation it provides. I haven't used Nitrogen OS in a long time, so I cannot judge on it.
PS: don't forget gapps. Custom ROMs don't have gapps included.
Let's correct a few things in kishore1998's post. First since the OP needs to unlock his bootloader, when he does that he'll lose all data. OP, if your data is important, backup to an external source before you start. After unlocking you'll need a recovery as stated before. Next is flashing vendor/firmware. After that , flash the rom of your choice. In it's OP it should tell you whether you need gapps or not. PE doesn't require gapps. Reboot, make sure all is fine then go back into recovery and flash Magisk. I'm on vendor/firmware 9.5.6, PE-AOSP-20180507 & Magisk 19.1. NOTE: I don't use DFE nor do I need it. You only need DFE if you want an unencrypted fone. If you do flash DFE, everytime you flash vendor/firmware your _next_ step is to flash DFE. TWRP allows you to stack zips to flash so you'll choose vendor/firmware and DFE, then flash before doing rom and gapps if needed. See this link which has a useful FAQ.
HTH
Matt.Murdock said:
I would certainly like to root my Poco F1. However, after reading loads of topics, I'm still not sure of which way to choose, because I have a bit of a problem with the jargon.
I want the face unlock to be working
I want to get rid of MIUI and have clean Android (for example Smart Lock doesn't work with MIUI)
I want to use gestures to navigate through the phone
Hence, I am probably looking for a custom ROM?
If I understand correctly, I need to:
Unlock the bootloader, then flash TWRP, then flash the custom ROM, then flash Magisk... and everything is done (?)
If I want to revert to stock ROM, I will just wipe everything, am I right?
Would these custom ROMs do?
https://forum.xda-developers.com/poco-f1/development/rom-pixel-experience-t3857076
https://forum.xda-developers.com/poco-f1/development/rom-nitrogen-os-beta-t3857557
Thank you all!
Click to expand...
Click to collapse
hey bro . you should first unlock bootloader with miunlock .you need waiting 66 hours . after that download developer rom (pejmimx) rememeber that most be pejmimx, search in google and download the final version. install twrp with minimal adb if your poco didnt connect to your pc in fastboot mode you need to change your pc (just once time ) . flash data system cache davlik (you should have micro sd or conect flash memory with otg to your phone). install rom dev pejmimx. install your favorite custome rom . install magisk and done .(donot install oxygen os because that is ported from one plus 6t and have much bugs) my suggest is crdroid rom
Matt.Murdock said:
I would certainly like to root my Poco F1. However, after reading loads of topics, I'm still not sure of which way to choose, because I have a bit of a problem with the jargon.
I want the face unlock to be working
I want to get rid of MIUI and have clean Android (for example Smart Lock doesn't work with MIUI)
I want to use gestures to navigate through the phone
Hence, I am probably looking for a custom ROM?
If I understand correctly, I need to:
Unlock the bootloader, then flash TWRP, then flash the custom ROM, then flash Magisk... and everything is done (?)
If I want to revert to stock ROM, I will just wipe everything, am I right?
Would these custom ROMs do?
https://forum.xda-developers.com/poco-f1/development/rom-pixel-experience-t3857076
https://forum.xda-developers.com/poco-f1/development/rom-nitrogen-os-beta-t3857557
Thank you all!
Click to expand...
Click to collapse
There are a lot of guides here that describe the things you want.
Some checkpoints:
-Unlock your bootloader and install twrp (all personal data will be deleted)
-make a backup of your phone (when you backup check all partitions and images). This is your original system in case you want to go back. There's no particular reason to get more.
-install a custom ROM (crdroid that was suggested above is great imho) FOLLOW THE ROM'S INSTALLING INSTRUCTIONS TO THE COMMA.
-install nano-gapps and above if you want face unlock (pico and micro won't have it)
-flash magisk if you want root (don't forget to install magisk apk after flashing it)
-last but not least regardless of what's mentioned anywhere use official twrp and DON'T flash encryption disabler. It's just going to make your life harder without any benefits whatsoever.
Thank you, very helpful and assuring!
One more thing though - I often use dual boot of some apps. This is a Xiaomi-only feature; Does that mean with a different ROM (but for a Xiaomi device) I will lose this possibility?
I mainly just want to get rid of the MIUI ballast that interferes with the clean Android, so if there is a possibility to keep the ROM and delete MIUI, it would be maybe even better (?)

Categories

Resources