Re-lock bootloader and anti roll back! - Redmi K20 / Xiaomi Mi 9T Questions & Answers

Hi, at the moment i'm on pixel experience and i wanted to go back to stock rom. I've read that if i use a fastboot rom of a previous version when i started to mod and lock bootloader with miflash i may cause a brick! It is true? How could I back to stock rom (11.0.3 EEA) and locking bootloader without risk? Thanks

Frankzafò said:
Hi, at the moment i'm on pixel experience and i wanted to go back to stock rom. I've read that if i use a fastboot rom of a previous version when i started to mod and lock bootloader with miflash i may cause a brick! It is true? How could I back to stock rom (11.0.3 EEA) and locking bootloader without risk? Thanks
Click to expand...
Click to collapse
Not needed

Benfatica said:
I have done this before and this is what I did, I booted into recovery format data reboot into recovery wipe everything, and then I flash a miui android 9 ROM, example I use miuimix 11.0.3 you can find it in Rom section forum after that I reboot into recovery again and then format data, reboot into recovery again wipe everything, power of device, boot into fastboot mode and then flash the miui 10.3.15 EEA fastboot ROM via mi flash tool, because there isn't any fastboot ROM for 11.0.3 EEA. If anyone knows an easy way to this you can say it but for the mean time this is the only method I use to avoid bricking my device or triggering that anti roll back thing.
Click to expand...
Click to collapse
When you flashed your fastboot (13.3.15 EEA) with miflash you selected clean all and lock or clean all? I also had 11.0.3 when i modded my phone!

Frankzafò said:
When you flashed your fastboot (13.3.15 EEA) with miflash you selected clean all and lock or clean all? I also had 11.0.3 when i modded my phone!
Click to expand...
Click to collapse
Not needed

Benfatica said:
I have done this before and this is what I did, I booted into recovery format data reboot into recovery wipe everything, and then I flash a miui android 9 ROM, example I use miuimix 11.0.3 you can find it in Rom section forum after that I reboot into recovery again and then format data, reboot into recovery again wipe everything, power of device, boot into fastboot mode and then flash the miui 10.3.15 EEA fastboot ROM via mi flash tool, because there isn't any fastboot ROM for 11.0.3 EEA. If anyone knows an easy way to this you can say it but for the mean time this is the only method I use to avoid bricking my device or triggering that anti roll back thing.
Click to expand...
Click to collapse
Uhmm... What about NOT wiping persist?

Benfatica said:
You can select clean all if you don't want to relock your bootloader or clean all and lock if you want to lock it.
Click to expand...
Click to collapse
Could I risk brick if i lock bootloader?

Frankzafò said:
Could I risk brick if i lock bootloader?
Click to expand...
Click to collapse
No if you follow the steps I gave you, it should be fine
---------- Post added at 11:26 PM ---------- Previous post was at 11:24 PM ----------
Windroid-user said:
Uhmm... What about NOT wiping persist?
Click to expand...
Click to collapse
I didn't tell him to wipe persist, and even the persist partition is mounted for you to wipe it.

Benfatica said:
I didn't tell him to wipe persist, and even the persist partition is mounted for you to wipe it.
Click to expand...
Click to collapse
When you say "wipe everything" you mean there's an option which says "wipe everything"? Sorry if this may be obvious when actually following the steps as I am still on stock with locked bootloader.

Windroid-user said:
When you say "wipe everything" you mean there's an option which says "wipe everything"? Sorry if this may be obvious when actually following the steps as I am still on stock with locked bootloader.
Click to expand...
Click to collapse
I meant if you have twrp, and you go to wipe, advance wipe, you wipe everything there. Apart from usb otg ( that is if you have one inserted) then you don't wipe it. And if someone says wipe everything and you know what you are doing you should understand fairly easy.

Benfatica said:
I meant if you have twrp, and you go to wipe, advance wipe, you wipe everything there. Apart from usb otg ( that is if you have one inserted) then you don't wipe it. And if someone says wipe everything and you know what you are doing you should understand fairly easy.
Click to expand...
Click to collapse
Must I wipe everything? If i don't wipe i could brick my phone?

Frankzafò said:
Must I wipe everything? If i don't wipe i could brick my phone?
Click to expand...
Click to collapse
No if don't wipe everything it won't brick your phone, but that's is how I do it and I doesn't anything to the phone.

Benfatica said:
No if don't wipe everything it won't brick your phone, but that's is how I do it and I doesn't anything to the phone.
Click to expand...
Click to collapse
Nice, thanks for the help!

Benfatica said:
I meant if you have twrp, and you go to wipe, advance wipe, you wipe everything there. Apart from usb otg ( that is if you have one inserted) then you don't wipe it. And if someone says wipe everything and you know what you are doing you should understand fairly easy.
Click to expand...
Click to collapse
So persist is not located in that section to wipe?
My two previous phones were a galaxy note 4 and Xperia Z3 so I am not sure how they incorporated these partitions such as persist and vendor into twrp.
This has gone on longer than I expected, sorry about that. I will search for a screenshot or something to see for myself.
Edit: okay I believe you meant persist isn't mounted for you to wipe it.

Benfatica said:
No if don't wipe everything it won't brick your phone, but that's is how I do it and I doesn't anything to the phone.
Click to expand...
Click to collapse
When did you flash MIUI 10 on your mi 9t on my flash did you selected clean all and lock? If not then you locked bootloader?

don't wipe anything else than data on the K20 via twrp oO
if u want to go back to stock MiUI u have to make sure, to follow 2 points
1. use a fastboot rom and flash via MiFlash and
2. make sure the ARB Status on your Phone is the same like the one on the MiUI fastboot rom ( should be on 1 )
the MiFlash software will wipe your phone for you (so the option "clean all" should be used/checked), so just boot into fastboot and let the software to the work.
that's how i went from the xiaomi.eu DEV Rom back to MIUI EAA stable Rom.

solved said:
don't wipe anything else than data on the K20 via twrp oO
if u want to go back to stock MiUI u have to make sure, to follow 2 points
1. use a fastboot rom and flash via MiFlash and
2. make sure the ARB Status on your Phone is the same like the one on the MiUI fastboot rom ( should be on 1 )
the MiFlash software will wipe your phone for you (so the option "clean all" should be used/checked), so just boot into fastboot and let the software to the work.
that's how i went from the xiaomi.eu DEV Rom back to MIUI EAA stable Rom.
Click to expand...
Click to collapse
My Arb Is 1 while the arb of the fastboot rom Is 0

Like i said, please stick to a full fastboot rom. If u are using a Mi 9T and want to go to EAA use the V10.3.15.0.PFJEUXM , for Global V11.0.1.0.PFJMIXM.
Those ROM's are on Anti 1, for the update on to a newer Version, just simply use the OTA after u flashed those files. U can find those files here:
https://xiaomifirmwareupdater.com/miui/
( u can filter the list .. search tab .. for fastboot and then just look for the Mi 9T )

Related

How can I switch form PA 3.99RC2 to 4.4RC1 on N4?

Hello to all,
as one can easily deduce from the title I would need a guide with all the steps you can take to upgrade from the version of Paranoid Android 3.99 RC2 to the latest version 4.4 RC2.
I wanted to wait for it to come out of beta before flashing the new version but now I do not know if I need new bootloader and radio or make other steps introduced with the new versions of the PA.
Can someone guide me with the steps to follow to make this switch?
Thanks in advance for the answers.
PS: Sorry for my bad English.
make a nandroid backup in recovery, then dirty flash it over the previous version and also flash the gapps. if you have issues, wipe data and reflash everything.
Piota said:
Hello to all,
as one can easily deduce from the title I would need a guide with all the steps you can take to upgrade from the version of Paranoid Android 3.99 RC2 to the latest version 4.4 RC2.
I wanted to wait for it to come out of beta before flashing the new version but now I do not know if I need new bootloader and radio or make other steps introduced with the new versions of the PA.
Can someone guide me with the steps to follow to make this switch?
Thanks in advance for the answers.
PS: Sorry for my bad English.
Click to expand...
Click to collapse
Hiya Piota
basically:
1. Backup ur data
2. reboot into bootloader
3. Download and Flash the latest 2 files Radio , Bootloader
4. boot into recovery factory reset and format system
5. flash the rom and gapps.
new radio or bootloader is not needed if you dont want it.
nightmare911 said:
Hiya Piota
basically:
1. Backup ur data
2. reboot into bootloader
3. Download and Flash the latest 2 files Radio , Bootloader
4. boot into recovery factory reset and format system
5. flash the rom and gapps.
Click to expand...
Click to collapse
Can I flash radio and bootloader from the recovery?
If I factory reset and format system have I to reinstall all the apps?
PS: Thank you!
Piota said:
Can I flash radio and bootloader from the recovery?
If I factory reset and format system have I to reinstall all the apps?
PS: Thank you!
Click to expand...
Click to collapse
you can flash them in recovery, yes.
yes, wiping data/factory reset will get rid of all your apps and data.
simms22 said:
you can flash them in recovery, yes.
yes, wiping data/factory reset will get rid of all your apps and data.
Click to expand...
Click to collapse
I have done a bkp, then I've flashed radio and bootloader, than I've done wipe and format but now how can I flash something if I can't put the image in the phone (because there isn't an OS)?
Piota said:
I have done a bkp, then I've flashed radio and bootloader, than I've done wipe and format but now how can I flash something if I can't put the image in the phone (because there isn't an OS)?
Click to expand...
Click to collapse
why did you wipe the os? youll need to adb push a rom to your device now or flash the factory img and reroot. OR, restore your backup. thats why i wrote to dirty flash the rom first, you most likely would have been fine and had no data loss. second choice would be to wipe fdata and flash, where you would lose data. the last option is to wipe the os off your phone, only if you have serious issues.
edit. if you wiped all from your phone that means you cleared your backup as well.
simms22 said:
why did you wipe the os? youll need to adb push a rom to your device now or flash the factory img and reroot. OR, restore your backup. thats why i wrote to dirty flash the rom first, you most likely would have been fine and had no data loss. second choice would be to wipe fdata and flash, where you would lose data. the last option is to wipe the os off your phone, only if you have serious issues.
edit. if you wiped all from your phone that means you cleared your backup as well.
Click to expand...
Click to collapse
How can I restore the bkp if I can't put the bkp in the phone?
I have to push with ADB how can I do that?
search google "how to adb push a rom", or if youre using twrp you can search also search adb sideload. lots of links will come up.
Problem solved! Thank you all! I've just done an "adb push".
Piota said:
Problem solved! Thank you all! I've just done an "adb push".
Click to expand...
Click to collapse
sweet

Just got RMA, can't disable force encryption

Just got my RMA, so of course I instantly unlock, root, and go to disable forced encryption and i keep getting a password error, my only pin i've ever used won't work, so I flashed factory, reset it up, made sure i didn't use a pin or anything, tried again, still asks for a password and won't accept mine. Am I missing something or is the fact they sent me a remanufactured phone screwing me because of the previous users pin?
kickenwing13 said:
Just got my RMA, so of course I instantly unlock, root, and go to disable forced encryption and i keep getting a password error, my only pin i've ever used won't work, so I flashed factory, reset it up, made sure i didn't use a pin or anything, tried again, still asks for a password and won't accept mine. Am I missing something or is the fact they sent me a remanufactured phone screwing me because of the previous users pin?
Click to expand...
Click to collapse
What TWRP version are you using? Are you on the newest 3.03? If not that's more than likely your problem.
murphyjasonc said:
What TWRP version are you using? Are you on the newest 3.03? If not that's more than likely your problem.
Click to expand...
Click to collapse
OMG I'm confident it's 3.02. So I need to update that before I try the decrypting thing. I need to go root, twrp 3.3 then unencrypt ?
Thanks man I wouldn't ahve thought of that .
kickenwing13 said:
OMG I'm confident it's 3.02. So I need to update that before I try the decrypting thing. I need to go root, twrp 3.3 then unencrypt ?
Thanks man I wouldn't ahve thought of that .
Click to expand...
Click to collapse
Just download the updated TWRP from this link. Boot back into recovery and choose flash IMG instead of zip. Install to recovery partition and then reboot. You should be good to go.
http://dl.twrp.me/angler/
murphyjasonc said:
Just download the updated TWRP from this link. Boot back into recovery and choose flash IMG instead of zip. Install to recovery partition and then reboot. You should be good to go.
http://dl.twrp.me/angler/
Click to expand...
Click to collapse
same nonsense. Went from clean, rooted, flashed TWRP 3.03, tried to flash noencrypt kernel and it's asking me for a password I don't have ... . should I try making my own password next time I reflash stock and see if it like overwrites it ?
found something on a N6 thread that says wipe user data and it should work .
kickenwing13 said:
found something on a N6 thread that says wipe user data and it should work .
Click to expand...
Click to collapse
Yeah that will work and shouldn't be an issue backing up everything with a new phone. TWRP should be able to read an encrypted device though as long as you gave it permissions to change system. No kernel will decrypt a device but most do not force encrypt.
---------- Post added at 11:38 PM ---------- Previous post was at 11:37 PM ----------
kickenwing13 said:
same nonsense. Went from clean, rooted, flashed TWRP 3.03, tried to flash noencrypt kernel and it's asking me for a password I don't have ... . should I try making my own password next time I reflash stock and see if it like overwrites it ?
Click to expand...
Click to collapse
Are you by chance trying to restore a backup on your RMA?
kickenwing13 said:
same nonsense. Went from clean, rooted, flashed TWRP 3.03, tried to flash noencrypt kernel and it's asking me for a password I don't have ... . should I try making my own password next time I reflash stock and see if it like overwrites it ?
Click to expand...
Click to collapse
I had a similar problem with TWRP 3.0.3-0 when I tried to restore a backup. It asked for a password, which has never happened before. I couldn't access my backup or any of my data or boot up. I had to restore stock. Clearing user data did nothing.
murphyjasonc said:
Yeah that will work and shouldn't be an issue backing up everything with a new phone. TWRP should be able to read an encrypted device though as long as you gave it permissions to change system. No kernel will decrypt a device but most do not force encrypt.
---------- Post added at 11:38 PM ---------- Previous post was at 11:37 PM ----------
Are you by chance trying to restore a backup on your RMA?
Click to expand...
Click to collapse
I was not . Just trying to disable force encrypt root and get PN back on it . Wiping worked for me. Also on 3.03, but that alone didn't solve, had to wipe . May be because I was using WUGS instead of manually doing it . Not sure, but it worked .
kickenwing13 said:
I was not . Just trying to disable force encrypt root and get PN back on it . Wiping worked for me. Also on 3.03, but that alone didn't solve, had to wipe . May be because I was using WUGS instead of manually doing it . Not sure, but it worked .
Click to expand...
Click to collapse
Hey, I'm running into the same problem after an RMA. I'm currently on stock unrooted 7.1.1 and want to flash custom rom but want to disable encryption beforehand. Can you advise proper wipe steps, or is this correct?
- unlock bootloader
- restart phone, enable developer options for USB debugging
- fastboot twrp-3.0.3-0-angler.img
- factory reset
- wipe everything (all checkboxes) including internal? (will this format with no encryption?)
- wipe system, data, cache
- push ROM (PN), Gapps, SuperSU-v2.79-201612051815.zip to phone via ADB in TWRP
- flash ROM (PN), Gapps, SuperSU-v2.79-201612051815.zip
- restart
Or is there another way to decrypt data or is it not an issue when clean wiping a new ROM?
Thanks and appreciate any help.
martinomac said:
Hey, I'm running into the same problem after an RMA. I'm currently on stock unrooted 7.1.1 and want to flash custom rom but want to disable encryption beforehand. Can you advise proper wipe steps, or is this correct?
- unlock bootloader
- restart phone, enable developer options for USB debugging
- fastboot twrp-3.0.3-0-angler.img
- factory reset
- wipe everything (all checkboxes) including internal? (will this format with no encryption?)
- wipe system, data, cache
- push ROM (PN), Gapps, SuperSU-v2.79-201612051815.zip to phone via ADB in TWRP
- flash ROM (PN), Gapps, SuperSU-v2.79-201612051815.zip
- restart
Or is there another way to decrypt data or is it not an issue when clean wiping a new ROM?
Thanks and appreciate any help.
Click to expand...
Click to collapse
You need to Format Data, Not Wipe to decrypt. It WILL wipe EVERYTHING so make sure anything in internal storage you want is backed up.
CyberpodS2 said:
You need to Format Data, Not Wipe to decrypt. It WILL wipe EVERYTHING so make sure anything in internal storage you want is backed up.
Click to expand...
Click to collapse
Thanks for confirming, I wasn't aware that there's a difference between Format Data and Wipe Data. After formatting data, I should be able to sideload the ROM, gapps, etc back via TWRP right?
I always try to keep an emergency folder on the PC with the minimum needed to copy back to the phone through recovery. In my case I keep a copy of pure nexus, dynamic gapps, supersu and elementalx. That combination never fails to boot and I know it well enough to get back in business in short order if it all went to hell. Do what's best for you.
Sent from my Nexus 6 using XDA-Developers Legacy app

Flashing a Rom using TWRP

Can I flash back to Oreo using twrp on the essential phone or no?
Not sure if you can or not, but follow this thread as it's a better option. Has all stock images available and it's essentially a one click solution.
https://forum.xda-developers.com/essential-phone/development/stock-7-1-1-nmj20d-t3701681
You cannot, must fastboot -w first and if u format in twrp you will break verity and have to flash the fixer kernel(bootred.img)so yeah u can but its not a quick fix. I would backup data and wipe and then copy the important stuff back on to it
jacksummers said:
You cannot, must fastboot -w first and if u format in twrp you will break verity and have to flash the fixer kernel(bootred.img)so yeah u can but its not a quick fix. I would backup data and wipe and then copy the important stuff back on to it
Click to expand...
Click to collapse
+1

Just a little question about upgrade

Hey,
My Mi A1 have TWRP, Magisk, and bootloader unlocked on Android 8.1.0, but I want to upgrade to Android 9 and go back to full stock device (bootloader lock and original TWRP), my question is, what i need to do before ? Just flash with miflash latest rom and check clean all and lock or I need to go back to stock on Android 8.1.0 and do ota update to Android 9 ?
Thanks )
You can wipe everything in twrp and then flash this
https://drive.google.com/file/d/1Uh4CR2-MXBYsSQL6BTnv4xpkCjEh7ZFn/view?usp=drivesdk
Then you can lock it.
Just make a twrp backup and save it to your sdcard or computer , just in case.
ccalixtro said:
You can wipe everything in twrp and then flash this
https://drive.google.com/file/d/1Uh4CR2-MXBYsSQL6BTnv4xpkCjEh7ZFn/view?usp=drivesdk
Then you can lock it.
Just make a twrp backup and save it to your sdcard or computer , just in case.
Click to expand...
Click to collapse
Thanks, so in TWRP I check all in wipe (dalvik, data, internal, cache and system)? And after that I mount data and drop the rom with USB and flash it ?
And after that i'll not have TWRP anymore ?
I try this, this monday

Can I flash stock EEA/Global ROM with unlocked BL and Orange Fox recovery?

Hey guys,
I'm using PixelExperience_lavender-10.0-20191024-1420-BETA-OFFICIAL (Pixel Experience Beta Android 10) and an OrangeFox-R10.0_2-Stable-lavender (Orange Fox Recovery Project).
I have officially unlocked bootloader. Could I flash EEA/Global ROM using custom recovery with still having an unlocked bootloader? Or is it going to cause a boot loop/bricked device?
Or should I use some other way instead? MiFlash or XiaoMiTool?
Thanks for any kind responses
martafiixek said:
....
Thanks for any kind responses
Click to expand...
Click to collapse
1. Do a clean flash of MIUI
2. Format the data partition
3. Boot MIUI
4. Wait for several minutes while MIUI boots up and encrypts your data
This should work. If it doesn't, then flashing a fastboot MIUI ROM with the Mi Flash tool would do the job (just make sure you don't accidentally lock your bootloader again).
Hey, I had same question 2 days ago when xiaomi realesed 11.0.3.. I was also on PE 10 and same ofox version... on telegram ppl told me that I should just download zip, format data/full wipe and then flash latest miui global so I did and now im on miui with unlocked bootloader and also ofox recovery too. I remember old times when It was impossible to flash global miui through twrp on xiaomi mi5 (2 years ago) thats why I asked on telegram cuz was worry about brick but all is fine bro good luck!
DarthJabba9 said:
1. Do a clean flash of MIUI
2. Format the data partition
3. Boot MIUI
4. Wait for several minutes while MIUI boots up and encrypts your data
This should work. If it doesn't, then flashing a fastboot MIUI ROM with the Mi Flash tool would do the job (just make sure you don't accidentally lock your bootloader again).
Click to expand...
Click to collapse
Thanks! Worked like a charm. However, I was a bit disappointed in the Global and EEA version of MIUI 11. So after a while, I just switched to xiaomi.eu ROM and I'm quite happy now. There are just a few things I still quite hate about MIUI that are not resolved in xiaomi.eu ROM. Thank you again for your help though.
DarthJabba9 said:
1. Do a clean flash of MIUI
2. Format the data partition
3. Boot MIUI
4. Wait for several minutes while MIUI boots up and encrypts your data
This should work. If it doesn't, then flashing a fastboot MIUI ROM with the Mi Flash tool would do the job (just make sure you don't accidentally lock your bootloader again).
Click to expand...
Click to collapse
Hi,
Is it not better to first format data, then wipe (system, data etc) and thén do a clean flash of miui? Or does it not matter?
ddj123 said:
Hi,
Is it not better to first format data, then wipe (system, data etc) and thén do a clean flash of miui? Or does it not matter?
Click to expand...
Click to collapse
1. There is no point wiping system or vendor. This is done automatically during the process of flashing MIUI.
2. There is no point wiping data after you have already formatted data.
DarthJabba9 said:
1. There is no point wiping system or vendor. This is done automatically during the process of flashing MIUI.
2. There is no point wiping data after you have already formatted data.
Click to expand...
Click to collapse
Is the clean flash of miui not wiped also? Not first wipe format data and then flash miui? If you use flash tool, how can you prevent that the bootloader gets locked?
ddj123 said:
Is the clean flash of miui not wiped also?
Click to expand...
Click to collapse
I have no idea what this means.
DarthJabba9 said:
I have no idea what this means.
Click to expand...
Click to collapse
From your instructions:
1. Do a clean flash of MIUI
2. Format the data partition
My question was, is it not better to de nr. 2 first and then flash miui.. (that miui doesn't get wiped by the format ..)
Plus how can I prevent that the bootloader gets locked again.
Thanks!
ddj123 said:
From your instructions:
1. Do a clean flash of MIUI
2. Format the data partition
My question was, is it not better to de nr. 2 first and then flash miui.. (that miui doesn't get wiped by the format ..)
Click to expand...
Click to collapse
You can do it that way - but it doesn't matter which comes first. Formatting data cannot wipe MIUI. The only thing that can wipe MIUI is wiping system and vendor - and you should never wipe either of them anyway.
ddj123 said:
Plus how can I prevent that the bootloader gets locked again.
Click to expand...
Click to collapse
Flashing a ROM with a recovery cannot lock your bootlooader.
DarthJabba9 said:
1. Do a clean flash of MIUI
2. Format the data partition
3. Boot MIUI
4. Wait for several minutes while MIUI boots up and encrypts your data
This should work. If it doesn't, then flashing a fastboot MIUI ROM with the Mi Flash tool would do the job (just make sure you don't accidentally lock your bootloader again).
Click to expand...
Click to collapse
Will this erase my orange fox custom recovery? So that I have to flash it again?(or does it remain..)
ddj123 said:
Will this erase my orange fox custom recovery? So that I have to flash it again?(or does it remain..)
Click to expand...
Click to collapse
If you flash a fastboot MIUI ROM with the Mi Flash tool, yes, it will install the MIUI stock recovery - so you will have to flash OrangeFox again with "fastboot flash ..."

Categories

Resources