Hello,
Im trying to relock my bootloader again, did i just have to use the "fastboot oem lock" command? Because i read it somewhere that i have to flash stock rom before locking the bootloader, if yes can someone give me the link for stock rom and how to flash it, FYI when unlocking im only using "fastboot oem unlock' command, not doing "fastboot unlock critical blablabla".
Any help would be appreciated, thank you
as far as i know, you need to flash stock bootloader of your current android build then uninstall magisk (if you have it) and just use fastboot oem unlock and you're done (note! backup all your data cause it will make a full wipe)
DiesFrae said:
as far as i know, you need to flash stock bootloader of your current android build then uninstall magisk (if you have it) and just use fastboot oem unlock and you're done (note! backup all your data cause it will make a full wipe)
Click to expand...
Click to collapse
I stopped after unlock bootloader only, i didnt root it at all, so you mean after flash just run fastboot oem lock command?
prayogasp said:
I stopped after unlock bootloader only, i didnt root it at all, so you mean after flash just run fastboot oem lock command?
Click to expand...
Click to collapse
Then you don't need to flash anything at all. Just run fastboot oem lock command.
prayogasp said:
I stopped after unlock bootloader only, i didnt root it at all, so you mean after flash just run fastboot oem lock command?
Click to expand...
Click to collapse
[email protected] said:
Then you don't need to flash anything at all. Just run fastboot oem lock command.
Click to expand...
Click to collapse
Exactly, you don't need to flash anything. Just put phone into fastboot and run fastboot oem lock
[email protected] said:
Then you don't need to flash anything at all. Just run fastboot oem lock command.
Click to expand...
Click to collapse
DiesFrae said:
Exactly, you don't need to flash anything. Just put phone into fastboot and run fastboot oem lock
Click to expand...
Click to collapse
Will it wipe data again just like unlocking?
Yes. It will wipe your data. Please becareful.
Oh. Please sure that you have back to original boot image before relock or your device will brick.
Hi, can someone provide stock boot image for 10.0.1.0 build (Android 9.0)
av2032 said:
Hi, can someone provide stock boot image for 10.0.1.0 build (Android 9.0)
Click to expand...
Click to collapse
https://sourceforge.net/projects/xioami/files/Mi A2/
ckpv5 said:
https://sourceforge.net/projects/xioami/files/Mi A2/
Click to expand...
Click to collapse
Can I simply flash boot_a boot.img / boot_b boot.img and then do
fastboot oem lock?
av2032 said:
Can I simply flash boot_a boot.img / boot_b boot.img and then do
fastboot oem lock?
Click to expand...
Click to collapse
I never relock bootloader .. what I know is you must have fully stock ROM installed then only advisable to lock bootloader. Never do on rooted stock & custom ROM.
Maybe someone else can advise you better.
ckpv5 said:
I never relock bootloader .. what I know is you must have fully stock ROM installed then only advisable to lock bootloader. Never do on rooted stock & custom ROM.
Maybe someone else can advise you better.
Click to expand...
Click to collapse
I have fully stock ROM. Done it anyway... restoring from Google backup right now. Thanks.
Can anyone provide stock boot img for 10.0.3
---------- Post added at 04:55 AM ---------- Previous post was at 04:10 AM ----------
Can I use 10.0.2 boot image for 10.0.3
av2032 said:
I have fully stock ROM. Done it anyway... restoring from Google backup right now. Thanks.
Click to expand...
Click to collapse
Did you lose data after relocking? I mean lock bootloader causes a data wipe like unlocking?
prayogasp said:
Hello,
Im trying to relock my bootloader again, did i just have to use the "fastboot oem lock" command? Because i read it somewhere that i have to flash stock rom before locking the bootloader, if yes can someone give me the link for stock rom and how to flash it, FYI when unlocking im only using "fastboot oem unlock' command, not doing "fastboot unlock critical blablabla".
Any help would be appreciated, thank you
Click to expand...
Click to collapse
here is the link for fastboot rom
https://forum.xda-developers.com/mi-a2/how-to/fastboot-xiaomi-mi-a2-fastboot-images-t3824849
for your sugestion, if your device is arb2, flash 9690 fastboot rom.
saran, jika masih arb2, flash ke rom 9690..ane pas pertama beli mia2, dapet rom 9690 arb 2..
alibr said:
Did you lose data after relocking? I mean lock bootloader causes a data wipe like unlocking?
Click to expand...
Click to collapse
Yes... it erases everything
Lock while using miui
Can I relock my bootloader while using official MIUI rom?
Aside from
Fastboot oem lock
Do i need this?
fastboot flashing lock
fastboot flashing lock_critical
amnher said:
Aside from Fastboot oem lock
Do i need this?
fastboot flashing lock
fastboot flashing lock_critical
Click to expand...
Click to collapse
"Fastboot oem lock" seems to be depreciated for Mi A2, better use "fastboot flashing lock" instead of "OEM unlock" (though probably these are still equivalent).
And yes, full unlock is achieved when after general unlock you are unlocking critical (once more approve on phone, once more user data erased).
For your information. I've just bricked my Redmi 10S with stock ROM with the command ""Fastboot oem lock" :-(
Related
I have read all of the info about unlocking and relocking the bootloader, but i have a question, if i was 100% stock with a locked bootloader and wanted to flash the latest factory image would i still need to enable developer options and enable allow oem unlock even if i was to run the commands below from fastboot mode.
fastboot oem unlock
fastboot flash bootloader bootloader-shamu-moto-apq8084-71.08.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash radio radio-shamu-d4.0-9625-02.95.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash cache cache.img
fastboot oem lock
fastboot reboot
The reason i ask is that you are not booting into android until the bootloader is relocked, so in theory the oem unlock option shouldn't have an effect in this scenario?
@d.chatten,
Yes, you have to unlock the bootloader to use fastboot to flash .img files, or to sideload via ADB.
d.chatten said:
I have read all of the info about unlocking and relocking the bootloader, but i have a question, if i was 100% stock with a locked bootloader and wanted to flash the latest factory image would i still need to enable developer options and enable allow oem unlock even if i was to run the commands below from fastboot mode.
fastboot oem unlock
fastboot flash bootloader bootloader-shamu-moto-apq8084-71.08.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash radio radio-shamu-d4.0-9625-02.95.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash cache cache.img
fastboot oem lock
fastboot reboot
The reason i ask is that you are not booting into android until the bootloader is relocked, so in theory the oem unlock option shouldn't have an effect in this scenario?
Click to expand...
Click to collapse
You really should boot into Android before re-locking. This is where people have run into trouble. Following the re-lock guide is recommended.
Thanks for your reply, much appreciated, but my question wasn't about the need to unlock the bootloader ot flash, my question was, do i still need to enable "allow oem unlock" in developer options if i use the commands listed above when flashing the latest factory image on a Nexus 6 when 100% stock a locked bootloader, this in theory should work as you are not booting into android until the bootloader is relocked?
The main thing to remember, is to remove all security locks and your Google account beforehand. With this device, when fastboot oem lock is issued, the device is wiped again. This is why it is important to be sure you have a working OS before locking. :good:
Evolution_Freak said:
You really should boot into Android before re-locking. This is where people have run into trouble. Following the re-lock guide is recommended.
Click to expand...
Click to collapse
Thanks for that, i will follow the guide, so this option would effect things regardless?
d.chatten said:
Thanks for your reply, much appreciated, but my question wasn't about the need to unlock the bootloader ot flash, my question was, do i still need to enable "allow oem unlock" in developer options if i use the commands listed above when flashing the latest factory image on a Nexus 6 when 100% stock a locked bootloader, this in theory should work as you are not booting into android until the bootloader is relocked?
Click to expand...
Click to collapse
I understand completely. In a sense, you have outlined the process that is shown on the factory image page, by Google. This information needs to be updated as it does not reflect the security changes made in 5.1. I wouldn't risk your device for a few extra minutes needed to verify the OS boots.
---------- Post added at 07:24 AM ---------- Previous post was at 07:20 AM ----------
d.chatten said:
Thanks for that, i will follow the guide, so this option would effect things regardless?
Click to expand...
Click to collapse
I can confirm that several people have bricked by trying to do it the way you were thinking of trying. If for any reason, during the flashing process something didn't flash just right, and a bootloop occurred, you wouldn't be able to fix it with a locked bootloader. That's why it's best to ensure your OS boots before locking.
Evolution_Freak said:
I understand completely. In a sense, you have outlined the process that is shown on the factory image page, by Google. This information needs to be updated as it does not reflect the security changes made in 5.1. I wouldn't risk your device for a few extra minutes needed to verify the OS boots.
---------- Post added at 07:24 AM ---------- Previous post was at 07:20 AM ----------
I can confirm that several people have bricked by trying to do it the way you were thinking of trying. If for any reason, during the flashing process something didn't flash just right, and a bootloop occurred, you wouldn't be able to fix it with a locked bootloader. That's why it's best to ensure your OS boots before locking.
Click to expand...
Click to collapse
Thank you for clarification, much appreciated, the process is still easy enough even with these extra steps.
Can anyone suggest a method to relock bootloader ?
Flash or restore the official stock ROM
Dhruv Dhawan said:
Flash or restore the official stock ROM
Click to expand...
Click to collapse
I did it but still showing bootloader unlocked
lambhurricane said:
I did it but still showing bootloader unlocked
Click to expand...
Click to collapse
If you install the stock ROM than which version did you install?
OR
If you have restored than did you restore the stock recovery?
Dhruv Dhawan said:
If you install the stock ROM than which version did you install?
OR
If you have restored than did you restore the stock recovery?
Click to expand...
Click to collapse
Yup I did what u said
Even I tried fastboot flash oem lock-go
Still no change
lambhurricane said:
Yup I did what u said
Even I tried fastboot flash oem lock-go
Still no change
Click to expand...
Click to collapse
What exactly do you did?
lambhurricane said:
Yup I did what u said
Even I tried fastboot flash oem lock-go
Still no change
Click to expand...
Click to collapse
It works i can confirm that.I unlocked bootloader then relocked bootloader just see if you are using correct commands
lambhurricane said:
Yup I did what u said
Even I tried fastboot flash oem lock-go
Still no change
Click to expand...
Click to collapse
This not the correct command to lock bootloader .to lock bootloader command is fastboot oem lock-go
Hey,
I would like to go back to stock from unlocked + root.
What is the correct way to do it?
Little tutorial would be awesome also for other users I think.
Regards,
H.
dodjob said:
Hey,
I would like to go back to stock from unlocked + root.
What is the correct way to do it?
Little tutorial would be awesome also for other users I think.
Regards,
H.
Click to expand...
Click to collapse
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
Tool has a revert to stock option. You can also download the latest fastboot image and flash via MIFlash.
https://forum.xda-developers.com/mi-a2/how-to/ota-v9-6-5-0-odimife-t3823445
Daha3ker said:
https://forum.xda-developers.com/mi-a2/how-to/mi-a2-toolkit-unlock-bootloader-root-t3834585
Tool has a revert to stock option. You can also download the latest fastboot image and flash via MIFlash.
https://forum.xda-developers.com/mi-a2/how-to/ota-v9-6-5-0-odimife-t3823445
Click to expand...
Click to collapse
will that lock bootloader again?
To lock the bootloader you can either use the tool (which has the option to lock) or do it manually with the commands
Fastboot oem lock
Fastboot flashing lock
And finally
Fastboot flashing lock_critical
Be sure to flash stock before locking the bootloader, otherwise you may end in a bootloop.
Daha3ker said:
To lock the bootloader you can either use the tool (which has the option to lock) or do it manually with the commands
Fastboot oem lock
Fastboot flashing lock
And finally
Fastboot flashing lock_critical
Be sure to flash stock before locking the bootloader, otherwise you may end in a bootloop.
Click to expand...
Click to collapse
Hi, thanks for the help
Fastboot oem lock is not enough?
Why should i do more this, Fastboot flashing lock And Fastboot flashing lock_critical ?
thx
pack21 said:
Hi, thanks for the help
Fastboot oem lock is not enough?
Why should i do more this, Fastboot flashing lock And Fastboot flashing lock_critical ?
thx
Click to expand...
Click to collapse
You only need to lock the last two if you unlocked them.
I was trying to install stock rom after installing RR rom. MiFlash said "flashing is not allowed for critical partitions" and when i did "fastboot flashing unlock_critical" from cmd i got "remote: Flashing Unlock is not allowed". I then used the allinone tool from xda and pressed "lock loader" to unlock it again and ended up bricking the device as it now shows "your device is corrupt. it can't e trusted and will not boot" I can't enter recovery either only fastoot and nothing works. PLEASE HELP FAST
have you tried flaashing via edl mode ?
medkim said:
have you tried flaashing via edl mode ?
Click to expand...
Click to collapse
how to do that
Hammad1029 said:
how to do that
Click to expand...
Click to collapse
reboot into edl mode and flash stock rom by mifilash tool
medkim said:
reboot into edl mode and flash stock rom by mifilash tool
Click to expand...
Click to collapse
how do I reboot into edl mode without dissembling the phone
Hammad1029 said:
how do I reboot into edl mode without dissembling the phone
Click to expand...
Click to collapse
reboot into bootloader then issue this command via adb
fastboot oem edl
medkim said:
reboot into bootloader then issue this command via adb
fastboot oem edl
Click to expand...
Click to collapse
it gives "FAILED (remote: 'Device is already locked!')"
@__harmeet reply here please
Hammad1029 said:
it gives "FAILED (remote: 'Device is already locked!')"
Click to expand...
Click to collapse
friend
first of all, you shoud unlock the bootloader
try with this guide
medkim said:
friend
first of all, you shoud unlock the bootloader
try with this guide
Click to expand...
Click to collapse
@Hammad1029 He Is Right, Firstly Unlock The Bootloader, Then Unlock Its Critical Partition And Boot Up Into EDL Mode By Typing "fastboot oem edl#
medkim said:
friend
first of all, you shoud unlock the bootloader
try with this guide
Click to expand...
Click to collapse
have tried already it says "FAILED (remote: Flashing Unlock is not allowed"
bump...
Dude, how many threads do you need to create, it won't make it any more likely that anyone will help you
Your problem is caused by that you only unlocked the bootloader and not critical partitions
Which stock rom were you on before flashing a custom one?
Nebrassy said:
Dude, how many threads do you need to create, it won't make it any more likely that anyone will help you
Your problem is caused by that you only unlocked the bootloader and not critical partitions
Which stock rom were you on before flashing a custom one?
Click to expand...
Click to collapse
I created the 2nd thread in desperation of restoring my only phone so sorry. How do I unlock the ootloader it shows the error I mentioned above
Hammad1029 said:
I created the 2nd thread in desperation of restoring my only phone so sorry. How do I unlock the ootloader it shows the error I mentioned above
Click to expand...
Click to collapse
I asked you what stock rom you were on
Nebrassy said:
I asked you what stock rom you were on
Click to expand...
Click to collapse
10.0.2
Hammad1029 said:
10.0.2
Click to expand...
Click to collapse
Are you sure?, if so, manually flash boot, system and vendor using fastboot to your current slot
Fastboot flash boot_a boot.img
Or boot_b if active slot is B etc...
Then go to developer options and enable oem unlocking, if you can't enable that option, lock the bootloader, enable the option then unlock bootloader and critical flashing
Nebrassy said:
Are you sure?, if so, manually flash boot, system and vendor using fastboot to your current slot
Fastboot flash boot_a boot.img
Or boot_b if active slot is B etc...
Then go to developer options and enable oem unlocking, if you can't enable that option, lock the bootloader, enable the option then unlock bootloader and critical flashing
Click to expand...
Click to collapse
can I claim warranty on this issue
Hammad1029 said:
can I claim warranty on this issue
Click to expand...
Click to collapse
Hi , sorry for my bad English , if you can open you phone and enter to EDL MODE and flash the stock rom of your device may be solve your problem ,
(I get the same problem trying to install a custom rom)
If you can't acces to EDL via ABD i think that you only can enter to EDL disasembly your phone .. Suertee xd
Yo también me desesperé
same problem
i got the same problem, won't start normally, hangs in boot screen so can't enter the phone to put it in usb debugging, only responce is through fastboot mode. Every attempt is failing due to locked state and unlocking is not allowed.
Hello guys no matter what i flash the twrp even its success i cant boot to twrp i followed many instructions but the same i cant boot to twrp some one help please
Arrenlaxmali said:
Hello guys no matter what i flash the twrp even its success i cant boot to twrp i followed many instructions but the same i cant boot to twrp some one help please
Click to expand...
Click to collapse
Can you share us a screenshot when we can see what are you doing to install TWRP recovery?
sakilxda said:
Can you share us a screenshot when we can see what are you doing to install TWRP recovery?
Click to expand...
Click to collapse
Yow hello bro as always you are active helper . I did thisfastboot oem nubia_unlock NUBIA_NX629J
Then fast boot flash recovery recovery.img " i rename the twrp with recovery.img and i cant boot to twrp why im confused i follow the instructions here in xda
Arrenlaxmali said:
Yow hello bro as always you are active helper . I did thisfastboot oem nubia_unlock NUBIA_NX629J
Then fast boot flash recovery recovery.img " i rename the twrp with recovery.img and i cant boot to twrp why im confused i follow the instructions here in xda
Click to expand...
Click to collapse
its for chines version only
if you have Chinese version you have to unlock the bootloader first and then you will be able to flash the twrp recovery
unlocking the bootloader should be on the setting
you cant unlock the bootloader using the oem command in fastboot , you have to unlock it from the setting in developer option
and then enter fastboot and enter the command
fastbooot flashing unlock
remember unlocking the bootloader will erase all your data
em90256 said:
its for chines version only
if you have Chinese version you have to unlock the bootloader first and then you will be able to flash the twrp recovery
unlocking the bootloader should be on the setting
you cant unlock the bootloader using the oem command in fastboot , you have to unlock it from the setting in developer option
and then enter fastboot and enter the command
fastbooot flashing unlock
remember unlocking the bootloader will erase all your data
Click to expand...
Click to collapse
It was unlock bro still i cant enter twrp my rm3 version is 2.27
Arrenlaxmali said:
It was unlock bro still i cant enter twrp my rm3 version is 2.27
Click to expand...
Click to collapse
am in version 2.27 and twrp working fine with me
you have to enter the command
fastboot flashing unlock
and when you boot there is a yellow warning message showing that you have unlocked the bootloader
after that just flash the right twrp file posted on the fourm
good luck
em90256 said:
am in version 2.27 and twrp working fine with me
you have to enter the command
fastboot flashing unlock
and when you boot there is a yellow warning message showing that you have unlocked the bootloader
after that just flash the right twrp file posted on the fourm
good luck
Click to expand...
Click to collapse
I did but look it was success but i cant boot to twrp
Arrenlaxmali said:
I did but look it was success but i cant boot to twrp
Click to expand...
Click to collapse
you doing it wrong, please copy my commands ,
first you have to unclock oem in developer option under settings this is important and then please copy this
fastboot devices
fastboot flashing unlock
fastboot oem nubia_unlock NUBIA_NX629J
fastboot flash recovery recovery.img
in your photo you have only used this command
fastboot oem nubia_unlock NUBIA_NX629J
but this is wrong
you have to use
*
fastboot flashing unlock
*
this is important
and then you will be able to flash twrp recovery
em90256 said:
you doing it wrong, please copy my commands ,
first you have to unclock oem in developer option under settings this is important and then please copy this
fastboot devices
fastboot flashing unlock
fastboot oem nubia_unlock NUBIA_NX629J
fastboot flash recovery recovery.img
in your photo you have only used this command
fastboot oem nubia_unlock NUBIA_NX629J
but this is wrong
you have to use
*
fastboot flashing unlock
*
this is important
and then you will be able to flash twrp recovery
Click to expand...
Click to collapse
I did all of this but still the same why i dont understand. When i reboot to recovery its show just a fastboot mode why
Arrenlaxmali said:
I did all of this but still the same why i dont understand. When i reboot to recovery its show just a fastboot mode why
Click to expand...
Click to collapse
You can find the solutions here.
https://forum.xda-developers.com/red-magic-3/help/stuck-fastboot-mode-t3937527/page7
sakilxda said:
You can find the solutions here.
https://forum.xda-developers.com/red-magic-3/help/stuck-fastboot-mode-t3937527/page7
Click to expand...
Click to collapse
I mean i can boot to system but i cant boot to recovery to twrp
Arrenlaxmali said:
I mean i can boot to system but i cant boot to recovery to twrp
Click to expand...
Click to collapse
Twrp recovery is only for Chinese firmware, did you know?
What's your problem exactly? What do you want to do?
sakilxda said:
Twrp recovery is only for Chinese firmware, did you know?
What's your problem exactly? What do you want to do?
Click to expand...
Click to collapse
Since i csnt update using OTA. I want to flash twrp so i can flash cn roms or global, yes i am cn firmware. i dont understand why i cant update in OTA and flash twrp. Look at the photo failt ota and successful twrp flash but i still i cant boot to twrp
Bro, step by step...
First, lock again the bootloader.
Second, unlock bootloader again.
Third, flash the archives from Europe or Chinese ROM, all the from the same firmware. (Boot, recovery, system, parameters, etc...)
You can see that in the other link.
If you get do all ok, try flash with OTG since Recovery.
sakilxda said:
Bro, step by step...
First, lock again the bootloader.
Second, unlock bootloader again.
Third, flash the archives from Europe or Chinese ROM, all the from the same firmware. (Boot, recovery, system, parameters, etc...)
You can see that in the other link.
If you get do all ok, try flash with OTG since Recovery.
Click to expand...
Click to collapse
Okay bro thanks i will do it
Arrenlaxmali said:
Okay bro thanks i will do it
Click to expand...
Click to collapse
Did you succes?
I have a problem with twrp to, after finish with all step twrp shown once after boot then when I try to reboot twice twrp gone.
Arrenlaxmali said:
Okay bro thanks i will do it
Click to expand...
Click to collapse
Did it work? I have the same problem with my global version.