I used this two command to unlock
fastboot flashing unlock
fastboot flashing unlocl_critical
So when i want to return to stock
flash stock rom via miflash flsh_all
Then type this
fastboot flashing lock_critical
fastboot flashing lock
fastboot oem lock
Is this the correct one?
amnher said:
I used this two command to unlock
fastboot flashing unlock
fastboot flashing unlocl_critical
So when i want to return to stock
flash stock rom via miflash flsh_all
Then type this
fastboot flashing lock_critical
fastboot flashing lock
fastboot oem lock
Is this the correct one?
Click to expand...
Click to collapse
Download stock fastboot rom, flash with flash_all_lock option
q0kHaN said:
Download stock fastboot rom, flash with flash_all_lock option
Click to expand...
Click to collapse
But does it lock critical to? Cause I used the following commands:
fastboot flashing unlock
fastboot flashing unlock_critical
So do i need to revert also those two?
amnher said:
But does it lock critical to? Cause I used the following commands:
fastboot flashing unlock
fastboot flashing unlock_critical
So do i need to revert also those two?
Click to expand...
Click to collapse
if you do fastboot oem lock, it locks both (flash_all_lock does that)
Related
I have the XT-1052 version of Moto X and its running the Asia Retail firmware. I had unlocked the bootloader and flashed CM12 but returned to stock rom through this guide http://forum.xda-developers.com/moto-x/general/retail-firmware-uploaded-xt1052-t2976596. I will be selling the device and want to re lock the bootloader. Can i type the ''fastboot oem lock'' command in mfastboot tool and re lock the bootloader? Also, will it erase the whole data on the device?
KD25 said:
I have the XT-1052 version of Moto X and its running the Asia Retail firmware. I had unlocked the bootloader and flashed CM12 but returned to stock rom through this guide http://forum.xda-developers.com/moto-x/general/retail-firmware-uploaded-xt1052-t2976596. I will be selling the device and want to re lock the bootloader. Can i type the ''fastboot oem lock'' command in mfastboot tool and re lock the bootloader? Also, will it erase the whole data on the device?
Click to expand...
Click to collapse
Yes, fastboot oem lock will lock it, and no it will not wipe data. Only unlocking wipes data.
But you status code will show relocked you can never get status code back to locked once unlocked.
Travisdroidx2 said:
But you status code will show relocked you can never get status code back to locked once unlocked.
Click to expand...
Click to collapse
Correct. Whoever has the phone will be able to see the "tamper seal" that shows the bootloader was previously unlocked, but is now locked again.
I would provide whoever you sell the phone to the bootloader unlock code so they can unlock in the future if they so desire. Not sure if they can request the code from Motorola again or not.
fury683 said:
Correct. Whoever has the phone will be able to see the "tamper seal" that shows the bootloader was previously unlocked, but is now locked again.
I would provide whoever you sell the phone to the bootloader unlock code so they can unlock in the future if they so desire. Not sure if they can request the code from Motorola again or not.
Click to expand...
Click to collapse
I tried it but it asks me to flash the signed images. The link i mentioned above comes with an XML file which dictates the steps RSD should be following, right? So if i upload the XML file can you edit the command line and add the command? I am not an expert in this stuff.
i have relocked flashing manually with fastboot, not sure if you add the oem lock cmd to the xml will work.
fastboot oem lock begin
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash logo logo.bin
fastboot erase userdata
fastboot erase cache
fastboot oem lock
hbenz2008 said:
i have relocked flashing manually with fastboot, not sure if you add the oem lock cmd to the xml will work.
fastboot oem lock begin
fastboot flash boot boot.img
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash logo logo.bin
fastboot erase userdata
fastboot erase cache
fastboot oem lock
Click to expand...
Click to collapse
The files that are present in the rom folder are boot.img, fsg.mbn, gpt.bin, logo.bin, motoboot.img, NON-HLOS.bin, recovery.img and system.img. Can you modify the list of commands to add the aditional files. Thanks.
just flashing the above is enough to relock. Flash away
Wireless...
hbenz2008 said:
just flashing the above is enough to relock. Flash away
Wireless...
Click to expand...
Click to collapse
Thanks man. Will update about how it goes.
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.
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" :-(
My phone can't boot . The display is " your device is corupt . It cant be trusted and will not boot after I root and install twrp, gapps , i have used the command "fastboot oem lock" "fastboot flashing lock" "fastboot oem relock" .
i can't unlock bootloader ( flasing unlock not allow )
my bootloader is lock
plz help me !
nil3m1 said:
My phone can't boot . The display is " your device is corupt . It cant be trusted and will not boot after I root and install twrp, gapps , i have used the command "fastboot oem lock" "fastboot flashing lock" "fastboot oem relock" .
i can't unlock bootloader ( flasing unlock not allow )
my bootloader is lock
plz help me !
Click to expand...
Click to collapse
You need to enable bootloader unlock through setting in developer option enable oem unlock, and then you can use the ' fastboot flashing unlock'
You can't root with locked bootloader as it will show an error message your device is corrupt,
At you situation now you should flash stock boot and then the phone will open and then you go to settings as i mentioned to enable oem unlock through developer option in settings
Fastboot unlock bootloader with long command, you will see it unlock temporarily till reboot, flash boot.img and recovery.img, reboot into recovery wipe data & cache, utilize USB otg to reinstall rom.
em902566 said:
You need to enable bootloader unlock through setting in developer option enable oem unlock, and then you can use the ' fastboot flashing unlock'
You can't root with locked bootloader as it will show an error message your device is corrupt,
At you situation now you should flash stock boot and then the phone will open and then you go to settings as i mentioned to enable oem unlock through developer option in settings
Click to expand...
Click to collapse
-I cannot boot into os to enable oem unlock ,I can't go into recovery
Hope you will help me,thank you
SuperDroidMe said:
Fastboot unlock bootloader with long command, you will see it unlock temporarily till reboot, flash boot.img and recovery.img, reboot into recovery wipe data & cache, utilize USB otg to reinstall rom.
Click to expand...
Click to collapse
I used the command "fastboot oem nubia_unlock NUBIA_NX629J" ,"fastboot flashing unlock" , command but it reported an error "flashing unlock not allow"
Please help me with what I should do. thank you
nil3m1 said:
I used the command "fastboot oem nubia_unlock NUBIA_NX629J" ,"fastboot flashing unlock" , command but it reported an error "flashing unlock not allow"
Please help me with what I should do. thank you
Click to expand...
Click to collapse
Okay now you have to download the stock cn version from official site, and extract the zip file , now olyou have to flash the stock boot image and recovery image
,Fastboot devices
,Fastboot fastboot oem nubia_unlock NUBIA_NX629J
,Fastboot flash boot boot.img
,Fastboot flash recovery recovery.img
,Fastboot reboot
And wait let it reboot at least 3 time
And it will work just fine ?
em902566 said:
Okay now you have to download the stock cn version from official site, and extract the zip file , now olyou have to flash the stock boot image and recovery image
,Fastboot devices
,Fastboot fastboot oem nubia_unlock NUBIA_NX629J
,Fastboot flash boot boot.img
,Fastboot flash recovery recovery.img
,Fastboot reboot
And wait let it reboot at least 3 time
And it will work just fine
Click to expand...
Click to collapse
it dont work . my device not boot with report " your device is corrupt .It can not be trusted and wil not boot " .
update?
nil3m1 said:
it dont work . my device not boot with report " your device is corrupt .It can not be trusted and wil not boot " .
Click to expand...
Click to collapse
did you fixed it? we have same situation.
godric12 said:
did you fixed it? we have same situation.
Click to expand...
Click to collapse
Use "Fastboot fastboot oem nubia_unlock NUBIA_NX629J" to unlock the bootloader and flash the correct boot img. Or you can go to stock recovery flash the whole system. It is caused by an unsigned boot file.
JerryYin said:
Use "Fastboot fastboot oem nubia_unlock NUBIA_NX629J" to unlock the bootloader and flash the correct boot img. Or you can go to stock recovery flash the whole system. It is caused by an unsigned boot file.
Click to expand...
Click to collapse
I have this error when installing the rom, what should I do to fix it?
mos98p said:
I have this error when installing the rom, what should I do to fix it?
Click to expand...
Click to collapse
Maybe you can check other post and find the solutions, there are someone already fix the phone with same issue
I unlocked the bootloader, when I boot my phone it gives a warning saying that the bootloader is unlocked and I need to press the power button to proceed, when I go into fastboot it shows the status as unlocked.
That said, any fastboot commands I issue, apart from reboot, returns the remote: unknown command error. ADB works fine, it's just fastboot.
To be more specific, I tried the following commands with no success:
fastboot erase system
fastboot oem unlock
fastboot flashing unlock
fastboot flash system file.img
fastboot -u flash system file.img
Samsung phones don't have normal fastboot
3mel said:
Samsung phones don't have normal fastboot
Click to expand...
Click to collapse
So how do I flash an image on them?
senpi0 said:
So how do I flash an image on them?
Click to expand...
Click to collapse
depends on what you wanna flash I guess, Odin is used mostly, but that's .tar archives. if you have TWRP there's that. if you're rooted kernels and recoveries can be flashed from a booted system.