Is there any way to unlock bootloader without erasing data? - Xiaomi Redmi Note 5 / 5 Plus Questions & Answers

Is there any way to unlock the xiaomi Redmi 5 plus bootloader whilst not erasing the data?

marios239 said:
Is there any way to unlock the xiaomi Redmi 5 plus bootloader whilst not erasing the data?
Click to expand...
Click to collapse
The time I unlocked my bootloader it didn't erase userdata partition.

Jdgp42 said:
The time I unlocked my bootloader it didn't erase userdata partition.
Click to expand...
Click to collapse
Now the tool reboots your phone and erases data

I got reboot without ereasing data , but data was encrypted by default xiaomi rules. So I ereased it after unlocking. So if You just unlocked there will be problem with getting inside data files (problems to encrypt)

proxydark said:
I got reboot without ereasing data , but data was encrypted by default xiaomi rules. So I ereased it after unlocking. So if You just unlocked there will be problem with getting inside data files (problems to encrypt)
Click to expand...
Click to collapse
Hmm.. I'll try to unlock and see

Related

How to flash cust partition (cust.img) with locked bootloader?

Hello.
I wiped the cust partition using twrp, my device has locked bootloader.
How to flash this? miflash does not flash this partition using EDL mode, and fastboot shows an error related to the locked bootloader.
Thanks.
What does cust contain?
Sent from my kenzo using Tapatalk
1emrys1 said:
What does cust contain?
Sent from my kenzo using Tapatalk
Click to expand...
Click to collapse
Locale info i think, after wipping that partition i can't set where am i located in settings, it only shows "China", and some apps are doing Fcs.
avercros said:
Hello.
I wiped the cust partition using twrp, my device has locked bootloader.
How to flash this? miflash does not flash this partition using EDL mode, and fastboot shows an error related to the locked bootloader.
Thanks.
Click to expand...
Click to collapse
hi bro,
how do you get twrp installed on locked bootloader kenzo redmi note 3 ? thx.
atiparno said:
hi bro,
how do you get twrp installed on locked bootloader kenzo redmi note 3 ? thx.
Click to expand...
Click to collapse
Mine is a kate, i don't know if the process is the same.
Do you need the cust of another person having a kate?
I formatted cust partition with ZXC TWRP and nothing happened, I'm on the last build Cardinal-AOSP's and used Google Maps and Maps Here
Edit: I have also a Kate device with lock bootloader
avercros said:
Hello.
I wiped the cust partition using twrp, my device has locked bootloader.
How to flash this? miflash does not flash this partition using EDL mode, and fastboot shows an error related to the locked bootloader.
Thanks.
Click to expand...
Click to collapse
im not sure if it will work or note but u an try
fastboot flash cust cust.img
1emrys1 said:
What does cust contain?
Sent from my kenzo using Tapatalk
Click to expand...
Click to collapse
MIUI bloatwares
blue whale said:
Do you need the cust of another person having a kate?
Click to expand...
Click to collapse
I've already tried this but it does not work, thanks.
ExEdd said:
I formatted cust partition with ZXC TWRP and nothing happened, I'm on the last build Cardinal-AOSP's and used Google Maps and Maps Here
Edit: I have also a Kate device with lock bootloader
Click to expand...
Click to collapse
It is only necesary for miui based roms.
shub4m said:
im not sure if it will work or note but u an try
fastboot flash cust cust.img
Click to expand...
Click to collapse
Says FAILED due to locked BL.
BlueJeans said:
MIUI bloatwares
Click to expand...
Click to collapse
Yes, but without this partition MIUI stock rom will give you a lot of FCs, it can't find locale related data.
You have to unlock your bootloader
Fastboot wipe cust
Fastboot flash cust cust.Img
avercros said:
Hello.
I wiped the cust partition using twrp, my device has locked bootloader.
How to flash this? miflash does not flash this partition using EDL mode, and fastboot shows an error related to the locked bootloader.
Thanks.
Click to expand...
Click to collapse
where is the option of wipe cust partition in TWRP?
I used almost 3 versions of TWRP but i couldnt find option of wipe cust partition.

OEM bootloader unlocking problem

Hello,
I can't unlock OEM via the switch at the developer option. It seems open, but when I open fastboot and write fastboot oem device-info , it seems locked.
It seems like the switch has no effect on locking / unlocking OEM
I can't also unlock the OEM with the fastboot commands at the bootloader : fastboot oem unlock-go / fastboot oem unlock / fastboot flashing unlock - with error "remote : OEM unlock not allowed"
Do you have any other ideas?
Heyyo, hmm super weird! Have you tried updating your EUI ROM in case it has some gremlins in it? I was able to unlock mine via developer options.
If you're unable to upgrade EUI I'd recommend a factory reset and try again since unlocking generally wipes out the data partition.
ThE_MarD said:
Heyyo, hmm super weird! Have you tried updating your EUI ROM in case it has some gremlins in it? I was able to unlock mine via developer options.
If you're unable to upgrade EUI I'd recommend a factory reset and try again since unlocking generally wipes out the data partition.
Click to expand...
Click to collapse
Yes, super weird indeed. I have done a factory reset several times, but the status doesn't change. Everyone has managed it either via developer options or fastboot command. I wonder if there is another alternative doing this. I believe i cant write on to the recovery partition because of it.
salgulsen said:
Yes, super weird indeed. I have done a factory reset several times, but the status doesn't change. Every one have managed it either via developer options or fastboot command. I wonder if there is another alternative doing this. I believe i cant write on to the recovery partition because of it.
Click to expand...
Click to collapse
That is true. Bootloader must be unlocked in order to flash to recovery.
Just to be safe please read and follow this guide as it is exactly what I did on my Le Max 2
https://forum.xda-developers.com/le-max-2/how-to/protocol-backup-stock-rom-flash-stock-t3517151

I can't relock my mate20pro

I unlocked my mate20 pro, but problem is now i can't relock it , even I use "fastboot oem relock +unlock code"
anybody can help ?
have you tried fastboot oem lock?
you don't have to specify the code
i just tried also and cannot lock
Daniehabazin said:
have you tried fastboot oem lock?
you don't have to specify the code
Click to expand...
Click to collapse
still can't relock..................wait for solution
richard_li said:
still can't relock..................wait for solution
Click to expand...
Click to collapse
Refer to my post here ?
https://forum.xda-developers.com/ma...ocking-bootloader-magisk-root-t3885422/page22
I accidentally relocked the phone by using the hstool method of flashing a full firmware.
it does relock the phone and required me to unlock it again using the fastboot oem unlock code
xeroxide said:
I accidentally relocked the phone by using the hstool method of flashing a full firmware.
it does relock the phone and required me to unlock it again using the fastboot oem unlock code
Click to expand...
Click to collapse
That's interesting. So all your data was wiped when you used the hstool?
Someone else said flashing firmware via dload method also relocks the bootloader.
hmm i'm not sure.
I'll explain the whole situation.
I had just unlocked the bootloader and installed magisk.
after installing magisk, I installed a few modules, one of which made my phone bootloop.
I managed to get back into fastboot mode, use hstool to select my firmware (224) along with the patched hisuite from funkyhuawei.
after my phone recovered, it seems to have been completely reset and locked.
*edit*
I guess I should also add, I've never installed TWRP on this phone, only patched the recovery_ramdis.img for Magisk
xeroxide said:
hmm i'm not sure.
I'll explain the whole situation.
I had just unlocked the bootloader and installed magisk.
after installing magisk, I installed a few modules, one of which made my phone bootloop.
I managed to get back into fastboot mode, use hstool to select my firmware (224) along with the patched hisuite from funkyhuawei.
after my phone recovered, it seems to have been completely reset and locked.
*edit*
I guess I should also add, I've never installed TWRP on this phone, only patched the recovery_ramdis.img for Magisk
Click to expand...
Click to collapse
After locking, can you use the same code to unlock it again ?
EagleEye92 said:
After locking, can you use the same code to unlock it again ?
Click to expand...
Click to collapse
Yes sure
EagleEye92 said:
After locking, can you use the same code to unlock it again ?
Click to expand...
Click to collapse
Yes
ok just an update, while mucking around I accidentally softbricked my phone.
I used the external usb method (where you update using the code *#*#​2846579#*#*) and it 100% relock the phone.
*edit*
and yes, the same code works to unlock it again. KEEP THE CODE SAFE!
xeroxide said:
ok just an update, while mucking around I accidentally softbricked my phone.
I used the external usb method (where you update using the code *#*#​2846579#*#*) and it 100% relock the phone.
*edit*
and yes, the same code works to unlock it again. KEEP THE CODE SAFE!
Click to expand...
Click to collapse
Can you say me something about the usb method? dont know, what this is. :silly:
ClintP said:
Can you say me something about the usb method? dont know, what this is. :silly:
Click to expand...
Click to collapse
You need an external usb-c drive with some firmware on it.
I initially used v187 from this thread
https://forum.xda-developers.com/mate-20-pro/how-to/firmware-update-187-brings-oem-unlock-t3897301
Since then I downloaded a v206 which works over USB but I cannot recall where I got it from.
Note that you will loose all user data since the phone will be fully wiped.
Also this method requires a phone that is working, as in able to boot and access the dialer and menus.
If I find out where I got the v206 I will post it here as well.
I should also add, maybe it might work with a memory card as well... But this method requires an external source for the firmware since it formats the entire phone
@ xeroxide Thx for your help.
I Try this at the weekend.
If you need to relock your bootloader, this is the process:
Using eRecovery, restore your phone to stock
Once done, boot into recovery and RESET your phone (if you dont, it will not allow you to lock the bootloader)
Boot into fastboot mode (Holding Vol-DOWN, plug in usb cable) , and run the command
fastboot oem relock < bootloader unlock code>
the phone should now ask you that it will wipe your device, confirm,
Enjoy locked phone!
deepsrd said:
If you need to relock your bootloader, this is the process:
Using eRecovery, restore your phone to stock
Once done, boot into recovery and RESET your phone (if you dont, it will not allow you to lock the bootloader)
Boot into fastboot mode (Holding Vol-DOWN, plug in usb cable) , and run the command
fastboot oem relock < bootloader unlock code>
the phone should now ask you that it will wipe your device, confirm,
Enjoy locked phone!
Click to expand...
Click to collapse
Now it works well... i relocked my phone..........but i don't know why i failed last time because i followed exactly the steps...
deepsrd said:
If you need to relock your bootloader, this is the process:
Using eRecovery, restore your phone to stock
Once done, boot into recovery and RESET your phone (if you dont, it will not allow you to lock the bootloader)
Boot into fastboot mode (Holding Vol-DOWN, plug in usb cable) , and run the command
fastboot oem relock < bootloader unlock code>
the phone should now ask you that it will wipe your device, confirm,
Enjoy locked phone!
Click to expand...
Click to collapse
richard_li said:
Now it works well... i relocked my phone..........but i don't know why i failed last time because i followed exactly the steps...
Click to expand...
Click to collapse
it means now relocked and problem solved.........
deepsrd said:
If you need to relock your bootloader, this is the process:
Using eRecovery, restore your phone to stock
Once done, boot into recovery and RESET your phone (if you dont, it will not allow you to lock the bootloader)
Boot into fastboot mode (Holding Vol-DOWN, plug in usb cable) , and run the command
fastboot oem relock < bootloader unlock code>
the phone should now ask you that it will wipe your device, confirm,
Enjoy locked phone!
Click to expand...
Click to collapse
this worked for me thanks loads!

Lock bootloader Xiaomi Mi A3

how to lock bootloader on Mi A3?
thanks
danger2u said:
how to lock bootloader on Mi A3?
thanks
Click to expand...
Click to collapse
Code:
fastboot flashing lock
All data will be deleted. Reset
Vip02 said:
Code:
fastboot flashing lock
All data will be deleted. Reset
Click to expand...
Click to collapse
thank u very much
works great
Hi, I write again here, sorry. Can anyone help me with the block bootloader procedure? I want to try custom roms and unlock bootloader is simple, but if I want to restore the phone like new, like when you open the box, what do I have to do? Anyone can help me step by step? Thank you so much
I have the bootloader unlocked and Stock rom official, to take advantage of the warranty what is the procedure to relock the bootloader. I read in this thread to fastboot and run: fastboot flash lock
Has no contraindications?
can you also use mi flash tool and flash_all_lock.sh script?
Thanks
Switch to partition A, run flash_all.bat from the latest fastboot rom, start the phone. If it boots correctly, lock the bootloader with fastboot flashing lock command or run flash_all_lock.bat
Thanks.
hi I want to root mia3 and I unlock the bootloader then root unsuccesfull
and phone start up but hang and wifi not work I try to flash stock rom 3-4 different rom flashed sucessfully but when start up no data delete and phone is on menu
I relock bootloader phone say system destroyed
I flash phone
now phone not start up and go to fastboot directly
please help me
khzrxda said:
hi I want to root mia3 and I unlock the bootloader then root unsuccesfull
and phone start up but hang and wifi not work I try to flash stock rom 3-4 different rom flashed sucessfully but when start up no data delete and phone is on menu
I relock bootloader phone say system destroyed
I flash phone
now phone not start up and go to fastboot directly
please help me
Click to expand...
Click to collapse
Visit service center.
_mysiak_ said:
Visit service center.
Click to expand...
Click to collapse
I switch to partition a
active slot a
phone now is on but problem still is and not solve
wifi not work and hng
khzrxda said:
I switch to partition a
active slot a
phone now is on but problem still is and not solve
wifi not work and hng
Click to expand...
Click to collapse
If you were able to switch partitions, then you did not lock your bootloader.
Reflash full stock Android 10 ROM, it might solve your wifi issues.

HELP! Official June 2020 ota update failed. Stuck bootloop. Stock phone

Poco f1 no root, locked bootloader, stock phone received the official ota for june 2020 security patch and got stuck on 90.49% of installation for hours.
I then tried to restart my phone and ended up in bootloop.
Fastboot, stock recovery accessible.
Tried draining the battery and then charging it and booting but no luck.
Tried 'fastboot erase cache' from minimal adb but failed.
i DO NOT want to lose my data, Is there a way to get a backup of the internal storage pls help ASAP.
try flashing fastboot rom with miflash and at the bottom there is option SAVE USER DATA,
fastboot rom will be 3 gb to download, extract and then again extract until u see files,
take this folder, put it in C drive and give a smaller name.
now open mi flash, put device is Fastboot mode, and flash it with SAVE USER DATA option / don't LOCK the device (if your boot is unlocked)
remember, i personaly never tested this method, just read over the internet, perhaps you should see youtube videos also on this
YasuHamed said:
try flashing fastboot rom with miflash and at the bottom there is option SAVE USER DATA,
fastboot rom will be 3 gb to download, extract and then again extract until u see files,
take this folder, put it in C drive and give a smaller name.
now open mi flash, put device is Fastboot mode, and flash it with SAVE USER DATA option / don't LOCK the device (if your boot is unlocked)
remember, i personaly never tested this method, just read over the internet, perhaps you should see youtube videos also on this
Click to expand...
Click to collapse
Fastboot ROM can't be flashed without unlocking the bootloader. He has locked BL.
OP you can't do anything now sadly. All data will be wiped, and only way to reset phone is factory reset. Approach nearest service centre maybe they can help in some way.
I face same problem with OP. but I have unlocked bootloader. sadly I've doing wipe data from stock recovery but no luck.
not detected by mi pc suite. should I use miflash and download the full rom?
YasuHamed said:
try flashing fastboot rom with miflash and at the bottom there is option SAVE USER DATA,
fastboot rom will be 3 gb to download, extract and then again extract until u see files,
take this folder, put it in C drive and give a smaller name.
now open mi flash, put device is Fastboot mode, and flash it with SAVE USER DATA option / don't LOCK the device (if your boot is unlocked)
remember, i personaly never tested this method, just read over the internet, perhaps you should see youtube videos also on this
Click to expand...
Click to collapse
LostLust said:
I face same problem with OP. but I have unlocked bootloader. sadly I've doing wipe data from stock recovery but no luck.
not detected by mi pc suite. should I use miflash and download the full rom?
Click to expand...
Click to collapse
Flash the latest global stable fastboot ROM via Mi Flash Tool.
YasuHamed said:
try flashing fastboot rom with miflash and at the bottom there is option SAVE USER DATA,
fastboot rom will be 3 gb to download, extract and then again extract until u see files,
take this folder, put it in C drive and give a smaller name.
now open mi flash, put device is Fastboot mode, and flash it with SAVE USER DATA option / don't LOCK the device (if your boot is unlocked)
remember, i personaly never tested this method, just read over the internet, perhaps you should see youtube videos also on this
Click to expand...
Click to collapse
noob.gamer said:
Flash the latest global stable fastboot ROM via Mi Flash Tool.
Click to expand...
Click to collapse
Tried flashing stock rom via fastboot but failed with error
error:Erasing 'boot' FAILED (remote: 'erase is not allowed in lock state')
Is there any other way? Can i unlock bootloader while being stuck in bootloop?
same problem with me stuck at 90.49 while updating . you found any solution?
nikkxx11 said:
same problem with me stuck at 90.49 while updating . you found any solution?
Click to expand...
Click to collapse
No ultimately i had to get it reset at the service center losing all my data.
I'm looking for a data recovery software to get back whatever might be left on my internal.
me.icon18 said:
No ultimately i had to get it reset at the service center losing all my data.
I'm looking for a data recovery software to get back whatever might be left on my internal.
Click to expand...
Click to collapse
how much time did they take to reset ? and did they charge you anything?
noob.gamer said:
Flash the latest global stable fastboot ROM via Mi Flash Tool.
Click to expand...
Click to collapse
yes, I did flash via fastboot. it shows fail at MiFlash but my poco can boot up normal, weird.
unfortunately all my data wiped (didn't notice the option in right bottom)
LostLust said:
yes, I did flash via fastboot. it shows fail at MiFlash but my poco can boot up normal, weird.
unfortunately all my data wiped (didn't notice the option in right bottom)
Click to expand...
Click to collapse
---------- Post added at 04:43 AM ---------- Previous post was at 04:33 AM ----------
[/COLOR]
LostLust said:
yes, I did flash via fastboot. it shows fail at MiFlash but my poco can boot up normal, weird.
unfortunately all my data wiped (didn't notice the option in right bottom)
Click to expand...
Click to collapse
Was your Bootloader locked or unlocked??
It's stuck at poco boot logo .When I tried to flash it says" Erase boot error" .I tried everything wipe data .Mi assistance nothing worked ,my recovery options and fastboot is working. Service center are giving long dates .i need to get it repaired before 7th,Can someone help me?
noob.gamer said:
Flash the latest global stable fastboot ROM via Mi Flash Tool.
Click to expand...
Click to collapse
nikkxx11 said:
---------- Post added at 04:43 AM ---------- Previous post was at 04:33 AM ----------
[/COLOR]
Was your Bootloader locked or unlocked??
It's stuck at poco boot logo .When I tried to flash it says" Erase boot error" .I tried everything wipe data .Mi assistance nothing worked ,my recovery options and fastboot is working. Service center are giving long dates .i need to get it repaired before 7th,Can someone help me?
Click to expand...
Click to collapse
https://forum.xda-developers.com/poco-f1/how-to/unbrick-flashing-stable-rom-pocophone-t3901152
i'm trying this method. and my bootloader has unlocked before
First, OP stated that
Poco f1 no root, locked bootloader, stock phone received the official ota for june 2020 security patch and got stuck on 90.49% of installation for hours.
Click to expand...
Click to collapse
Soft bricked device can be recovered by simply fastboot.
But with locked bootloader, it is hard to recover your device because now it is hard bricked. You can do EDL Flashing but you need authorized mi account and certain tools to do that.
Your last resort for now is to bring your device to a Xiaomi certified service center, they have the right tools for the job.

Categories

Resources