Re-Lock Bootloader - Xiaomi Mi Mix 2S Questions & Answers

Hi All, Can I just triple check that if I re-lock my bootloader will it wipe my data?
thanks

yes, because in order to relock bl, the only option in miflash which is "clean all and lock" will wipe all user data, so be sure to backup all your personal files and photos.

NightRaven49 said:
yes, because in order to relock bl, the only option in miflash which is "clean all and lock" will wipe all user data, so be sure to backup all your personal files and photos.
Click to expand...
Click to collapse
Not true. You can go into fastboot and run fastboot oem lock to lock bootloader.

tomolewis said:
Hi All, Can I just triple check that if I re-lock my bootloader will it wipe my data?
thanks
Click to expand...
Click to collapse
If you need to erase your phone is better to flash miui rom with miflash without login to any google account then start to record a video until finish space data of your smartphone is enough to unrecover your personal data

Related

[Q] gapps errors when boot and cycl reboot

Hi!
Nexus 5 16Gb, lot of acore and gapps errors when boot, then cyclical reboot. When i try unlock bootloader with fastboot mode, it shows UNLOCKED, but has status LOCKED again when reboot.
Any ideas, please
TIA
backup your apps/data, do a factory reset, flash your favorite ROM.
most likely you are having issues because of dirty flashed several incompatible ROMs
igchy said:
backup your apps/data, do a factory reset, flash your favorite ROM.
most likely you are having issues because of dirty flashed several incompatible ROMs
Click to expand...
Click to collapse
Factory reset was done, can't flash ROM because bootloader won't stay unlocked when i unlock it thru fastboot!
If the bootloader can't be unlocked, you can't do anything other than factory reset. The fact that the bootloader is locked even after unlocking points to a hardware issue.
BTW, After doing fastboot oem unlock did you select "YES" on the onscreen window which pops up?
vin4yak said:
BTW, After doing fastboot oem unlock did you select "YES" on the onscreen window which pops up?
Click to expand...
Click to collapse
Sure i did this
and then "fastboot reboot"
I'm not 100% sure it's possible, but can you re-flash/update bootloader?
because i think all cyanogen nightly builds after 03/17 require the latest bootloader.
Have you tried formatting? If you're not comfortable with it, don't try it, but it's certainly a step up from a factory reset. I'd bet it's just artifacts, as mentioned earlier.
I did factory reset many times (from recovery), but i can't unlock bootloader : when phone reboot after "fastboot oem unlock" command - bootloader is locked again
Not being able to unlock your bootloader is a good indication of emmc falling. You're most likely going to have to rma your device.
Sent from my Nexus 5

Mate 9 FRP Lock

So I unlocked bootloader then reboot to boot-loader, now on fast-boot mode, trying to install twrp and it says FRP lock, and cannot execute any commands.
I know my passwords etc but doesn't work, anyone with ideas?
jkipkangor said:
So I unlocked bootloader then reboot to boot-loader, now on fast-boot mode, trying to install twrp and it says FRP lock, and cannot execute any commands.
I know my passwords etc but doesn't work, anyone with ideas?
Click to expand...
Click to collapse
Did you enable oem unlock in developer settings?
gm007 said:
Did you enable oem unlock in developer settings?
Click to expand...
Click to collapse
Yes I actually unlocked bootloader successfully
jkipkangor said:
Yes I actually unlocked bootloader successfully
Click to expand...
Click to collapse
Check if you can turn it off and on again, enable usb debugging,or try a factory reset.
One more try to log in to ur Google account.
jkipkangor said:
Yes I actually unlocked bootloader successfully
Click to expand...
Click to collapse
What is your full build number (Settings / About phone / Build number) ?
For example, I have MHA-L29C432B126 and unlocked bootloader month ago
My phone shows:
Phone unlocked
FRP Unlock
5[Strogino] said:
What is your full build number (Settings / About phone / Build number) ?
For example, I have MHA-L29C432B126 and unlocked bootloader month ago
My phone shows:
Phone unlocked
FRP Unlock
Click to expand...
Click to collapse
Build is MHA-L09C185B110
jkipkangor said:
Build is MHA-L09C185B110
Click to expand...
Click to collapse
Seems like very old build. But no update for L09C185.
You should request update from Huawei Support.
5[Strogino] said:
Seems like very old build. But no update for L09C185.
You should request update from Huawei Support.
Click to expand...
Click to collapse
Funny thing is that I can use the phone etc but cannot execute any commands on bootloader.
When I dial *#*#2846579#*#* then select reset, it is clean of any FRP! It's only when it's in fastboot mode!
jkipkangor said:
So I unlocked bootloader then reboot to boot-loader, now on fast-boot mode, trying to install twrp and it says FRP lock, and cannot execute any commands.
I know my passwords etc but doesn't work, anyone with ideas?
Click to expand...
Click to collapse
Anyone with a solution to this? Help.
when your phone boot up, did you finish google account process ? you didnt, you need finish it and go to developer option to enable unlock bl... and try again
jc83419 said:
when your phone boot up, did you finish google account process ? you didn't, you need finish it and go to developer option to enable unlock bl... and try again
Click to expand...
Click to collapse
This FRP Lock is different from the Google Account one, this is at the Bootloader/Fastboot screen. Logging in etc is working.
jkipkangor said:
This FRP Lock is different from the Google Account one, this is at the Bootloader/Fastboot screen. Logging in etc is working.
Click to expand...
Click to collapse
Disable oem unlock in dev options and enable again.
Try factory reset from stock recovery.
Unlock bootloader again.
gm007 said:
Disable oem unlock in dev options and enable again.
Try factory reset from stock recovery.
Unlock bootloader again.
Click to expand...
Click to collapse
It's greyed out unfortunately
Maybe try to relock ur bootloader?
Try one of this command:
fastboot oem lock (xxxxxxxxx)ur password.
fastboot oem relock xxxxxxxxxx
gm007 said:
Maybe try to relock ur bootloader?
Try one of this command:
fastboot oem lock (xxxxxxxxx)ur password.
fastboot oem relock xxxxxxxxxx
Click to expand...
Click to collapse
Relock worked bro. Now status is;
Phone Relocked
FRP Lock
jkipkangor said:
Relock worked bro. Now status is;
Phone Relocked
FRP Lock
Click to expand...
Click to collapse
Great unlock again,but try first if you can change oem unlock in dev settings.
gm007 said:
Great unlock again,but try first if you can change oem unlock in dev settings.
Click to expand...
Click to collapse
Will this unlock the FRP?
frp kilidi
acabildinmi sen kilidi
You basically have to reflash a Rom again with funkyhuawei which will relock and fix your ftp lock in the bootloader. Had the same problem and took me a while to recover...
Second time you unlock the bootloader after fixing it this way it works properly. At that point I just said screw it and left it locked. No idea why, must be some kind of bug.

locking Bootloader again?

I unlock the bootloader to install twrp and magisk, it's possible to lock the bootloader again without problems or the phone don't boot?
Toni Moon said:
I unlock the bootloader to install twrp and magisk, it's possible to lock the bootloader again without problems or the phone don't boot?
Click to expand...
Click to collapse
Locking you bootloader while TWRP and Magisk are installed will give you a guaranteed brick. Use a Fastboot Rom to return to stock, then you can lock it
If you want to keep TWRP and root, do not lock the bootloader. As the user mentioned above, you'll brick your device.
if i flash stock rom, than is that ok to lock the bootloader ? and how to lock it ?
majidshahab091 said:
if i flash stock rom, than is that ok to lock the bootloader ? and how to lock it ?
Click to expand...
Click to collapse
If you flash a full stock rom then yes. All you do is use the fastboot rom we talked about earlier, let the phone boot up (don't bother completing the setup process, just let the phone boot up), restart to bootloader, and use the following command from the command prompt on your pc:
Fastboot oem lock
It will give you a menu on your pone asking if you want to lock the bootloader. Tell it yes. It will then lock the bootloader, factory reset the phone, and then boot up normally with the bootloader locked. It's that easy.
ok thanks.one question. is that important to flash the stock rom using fastboot only ? or can i flash it using twrp ?
majidshahab091 said:
ok thanks.one question. is that important to flash the stock rom using fastboot only ? or can i flash it using twrp ?
Click to expand...
Click to collapse
I did it through twrp, worked just fine. Make sure to wipe beforehand though, don't want to risk bricking your phone
majidshahab091 said:
ok thanks.one question. is that important to flash the stock rom using fastboot only ? or can i flash it using twrp ?
Click to expand...
Click to collapse
Doing it with a Fastboot Rom will guarantee that things needing wiped will get wiped. When returning to full stock I will always recommend the Fastboot Rom just because of how it completely handles everything it does flawlessly. I imagine flashing a full rom in TWRP will work but I have never tried to return to stock this way
i did try stock using twrp and it was perfect
I have unlocked bootloader but in the end NOT installed TWRP or root (just wanted to test if i can live without it and still be able to install without wiping everything)
Now I just want to lock bootloader again for selling device.
Can I do so with simple fastboot command "fastboot oem lock" without bricking phone?
TaranQ said:
I have unlocked bootloader but in the end NOT installed TWRP or root (just wanted to test if i can live without it and still be able to install without wiping everything)
Now I just want to lock bootloader again for selling device.
Can I do so with simple fastboot command "fastboot oem lock" without bricking phone?
Click to expand...
Click to collapse
Use msm download tool to be sure. It will however wipe all.
TaranQ said:
I have unlocked bootloader but in the end NOT installed TWRP or root (just wanted to test if i can live without it and still be able to install without wiping everything)
Now I just want to lock bootloader again for selling device.
Can I do so with simple fastboot command "fastboot oem lock" without bricking phone?
Click to expand...
Click to collapse
You can, but if you are selling the phone I would still use a fastboot rom just to be sure everything is wiped and no data sensitive to you is being sold along with the phone.
Thanks a lot for the shared info here. This is just what I need and had been asking myself for quite some time now.??
So never lock bootloader with twrp and magisk installed.

Black Shark CHINA (SKR-A0) - Unlock Bootloader

Hi everybody!
After the precious advice of user ndt192, I managed to unlock my SKR-A0 which, until this day, seemed un-unlockable.
THIS PROCEDURE WILL WIPE YOUR PHONE MEMORY SO REMEMBER TO BACKUP EVERYTHING
TL;DR
In developer options, OEM Unlocking must be ticked (if present), then I just issued a fastboot oem unlock while in fastboot mode.
I'm on the latest OTA (29-12-18, v. G66X1812291CN00MPX).
Full Tutorial
Enable developer options by tapping 7+ times on Settings -> About Phone -> Build Number
Enable USB Debugging and OEM Unlocking (if present) in Developer Options (Settings -> Other Settings -> Advanced Settings -> Developer Options)
Open a terminal and issue the command adb devices
On the phone, allow the access from your computer on the dialog that will be shown
In terminal adb reboot bootloader
Wait for the phone to reboot in bootloader mode
STOP AND THINK - DID YOU BACKUP EVERYTHING?
Issue the command fastboot oem unlock and wait for the OKAY in the terminal window
Reboot your phone with fastboot reboot
Now, you will be informed that because of the unlocking your phone memory is "corrupted" (aka not decryptable anymore) so the phone needs to be wiped. Agree and wait.
Hopefully, your bootloader will be unlocked now. You can check that by returning to fastboot mode and checking that the Status is Unlocked.
If you want TWRP/root, check out this thread.
This procedure didn't seem to work until a few months ago so I don't know exactly if this procedure works only on newest Joy UI versions or not. Try it out (at your own risk).
IMPORTANT - if you can't unlock with these steps, please post here with the version of Joy UI installed and the message shown after the fastboot oem unlock command
loriz said:
Hi everybody!
After the precious advice of user ndt192, I managed to unlock my SKR-A0 which, until this day, seemed un-unlockable.
THIS PROCEDURE WILL WIPE YOUR PHONE MEMORY SO REMEMBER TO BACKUP EVERYTHING
TL;DR
In developer options, OEM Unlocking must be ticked (if present), then I just issued a fastboot oem unlock while in fastboot mode.
I'm on the latest OTA (29-12-18, v. G66X1812291CN00MPX).
Full Tutorial
Enable developer options by tapping 7+ times on Settings -> About Phone -> Build Number
Enable USB Debugging and OEM Unlocking (if present) in Developer Options (Settings -> Other Settings -> Advanced Settings -> Developer Options)
Open a terminal and issue the command adb devices
On the phone, allow the access from your computer on the dialog that will be shown
In terminal adb reboot bootloader
Wait for the phone to reboot in bootloader mode
STOP AND THINK - DID YOU BACKUP EVERYTHING?
Issue the command fastboot oem unlock and wait for the OKAY in the terminal window
Reboot your phone with fastboot reboot
Now, you will be informed that because of the unlocking your phone memory is "corrupted" (aka not decryptable anymore) so the phone needs to be wiped. Agree and wait.
Hopefully, your bootloader will be unlocked now. You can check that by returning to fastboot mode and checking that the Status is Unlocked.
This procedure didn't seem to work until a few months ago so I don't know exactly if this procedure works only on newest Joy UI versions or not. Try it out (at your own risk).
IMPORTANT - if you can't unlock with these steps, please post here with the version of Joy UI installed and the message shown after the fastboot oem unlock command
Click to expand...
Click to collapse
It worked, now can we install magisk manager on our phone?
Synezio said:
It worked, now can we install magisk manager on our phone?
Click to expand...
Click to collapse
It looks like there's some progress on that too! What a great day!
See here: https://forum.xda-developers.com/android/development/recovery-unofficial-twrp-recovery-t3892707
Need help my blackshark bootloop after I try to unlock bootloader
i make mistake that i write wrong code
adb reboot bootloader
Fastboot oem unlock
(its make my device factory reset) and then I try go to bootloader again but this device already unlocked.
But after that, I try to open recovery mode. and factory reset it. and its going like this *bootloop
please I need help, I can't do anything to this phone again because its can't go bootloader again even I press volume down+power T_T
What should I do ?
(Sorry my english so bad)
for addition, you need to unlock the critical too
kanded said:
for addition, you need to unlock the critical too
Click to expand...
Click to collapse
how to unlock critical in china version?
isotonik said:
how to unlock critical in china version?
Click to expand...
Click to collapse
how do you know unlock critical in global ? its just the same
kanded said:
how do you know unlock critical in global ? its just the same
Click to expand...
Click to collapse
in global version use command fastboot flashing unlock_critical but not work on cn version .
i just unlock critical on cn version with command fastboot oem unlock_critical
need wipe/format data manual at stock recovery after unlock critical will ask for password if not wipe at stock recovery.
isotonik said:
in global version use command fastboot flashing unlock_critical but not work on cn version .
i just unlock critical on cn version with command fastboot oem unlock_critical
need wipe/format data manual at stock recovery after unlock critical will ask for password if not wipe at stock recovery.
Click to expand...
Click to collapse
you unlocked it, congrats. its not that hard if you want to read ton of threds in xda.
Anyone can help me... I have blackshark GLOBAL (SKR-H0)
And i need help...
How to change global to china rom.. Sorry my bad english
.big thanks...
My black shark china version suddenly unknown baseband version, no IMEI, no wifi MAC address, no service and no sim cards. Please help how to do?
kanded said:
you unlocked it, congrats. its not that hard if you want to read ton of threds in xda.
Click to expand...
Click to collapse
What do you mean? he asked about password.
Do you celebrate unlock?i dont understand
Let me know how to unlock password!
I am the same.
kanded said:
you unlocked it, congrats. its not that hard if you want to read ton of threds in xda.
Click to expand...
Click to collapse
what do u mean? he asked about password...
u tell unlock? congrats
how get about password
im same
Hi, i have a skr-a0 china bs 1.
i unlocked my bs and install twrp and magisk but i dont have a backups. anyone help me i turn to stock or enabled ota ?
TabldotLife said:
Hi, i have a skr-a0 china bs 1.
i unlocked my bs and install twrp and magisk but i dont have a backups. anyone help me i turn to stock or enabled ota ?
Click to expand...
Click to collapse
Every thread says do a backup. You didn't. Wait until someone with a China BS backs up and uploads
gilbert32 said:
Every thread says do a backup. You didn't. Wait until someone with a China BS backs up and uploads
Click to expand...
Click to collapse
sorry i dont backup first and wait now thx for reply and sory again my babblng
Unlock bootloader
You unlock bootloader without a code?my phone P10lite and need to code,it's really working?OMG
Help me pls, i unlock my black shark china, when i type fastboot oem unlock then cmd not working, why?
Help pls
Help, i got bootloop on my bs2pro, need unlock bootloder code for reflashing stock rom
this methode didnt work on android 10.
anyone know how to unlock bootloader and root balckshark on android 10 ?

Best way to factory reset other than MSM tool?

Hey what's up.
Having issues and want to start from scratch but the MSM download tool isn't working for me due to driver issues I can't seem to resolve.
I'm unlocked and rooted with a custom kernel but otherwise totally stock.
Would I be able to just fastboot flash the stock boot.img and relock the bootloader for a total data wipe? Would that be enough to start fresh?
Go into magisk. Click uninstall. Click restore images. Your images should have been backup by the app. Reboot and reset from reset option in phone. No need to relock.
Thanks. Is that as good as the MSM tool as data wipes go? Want to get as fresh as I possibly can without MSM...
shadowofdeth said:
Thanks. Is that as good as the MSM tool as data wipes go? Want to get as fresh as I possibly can without MSM...
Click to expand...
Click to collapse
Boot to fastboot,
Code:
fastboot -w
what is the best way to relock the bootloader from Rooted( Magisk) and unlocked bootloader ? I did fastboot lock last time, I guess it locked successfully but refused to boot. Had to use msm to unbrick. Could you suggest best practice for Locking the bootloader again from rooted stock ?
rohanhole said:
what is the best way to relock the bootloader from Rooted( Magisk) and unlocked bootloader ? I did fastboot lock last time, I guess it locked successfully but refused to boot. Had to use msm to unbrick. Could you suggest best practice for Locking the bootloader again from rooted stock ?
Click to expand...
Click to collapse
Don't lock bootloader after rooting
Keinta15 said:
Don't lock bootloader after rooting
Click to expand...
Click to collapse
Then ? Should I unroot and then lock ?
Don't try to lock the bootloader
rohanhole said:
Then ? Should I unroot and then lock ?
Click to expand...
Click to collapse
You can't lock the bootloader while rooted. Your patched boot fails startup checks. The only phone i remember that you could root and relock was the oneplus one. There was a software hack to do a soft bootloader lock/unlock without wiping the data.
To expand on that, if you modified any locked partitions and try to relock the bootloader, you'll essentially soft brick. The only thing you can modify is I believe is userdata. If you are unsure, why take the chance, especially since your MSM isn't working.
Just do a factory reset from recovery lol or use fastboot

Categories

Resources