Unlock a bootloader img manually and flashing it? - Android Q&A, Help & Troubleshooting

Simple question: Is ist possible to get a Bootloader IMG and unlock it manually via pc, then flash it? getting the img and flashing it would be no problem for me, but is it possible to unlock the img?

TheDarkMadness said:
Simple question: Is ist possible to get a Bootloader IMG and unlock it manually via pc, then flash it? getting the img and flashing it would be no problem for me, but is it possible to unlock the img?
Click to expand...
Click to collapse
Unlocking a device's bootloader typically is done via device's Developer options -> OEM unlock. Or by means of Fastboot, if on device USB debugging is turned on.

Related

[Q]Neo V locked bootloader modified kernel

hi anyone manage to convert custom img kernel to ftf and be able to flashed it with flashtools without any error?
I have managed to convert img kernel to ftf but facing error while flashing it in flashtools.
The reason that I did that because of my phone won't allow bootloader to be unlocked. And my phone are sim unlocked+test point method bootloader unlock but no fastboot mode.
lawong said:
hi anyone manage to convert custom img kernel to ftf and be able to flashed it with flashtools without any error?
I have managed to convert img kernel to ftf but facing error while flashing it in flashtools.
The reason that I did that because of my phone won't allow bootloader to be unlocked. And my phone are sim unlocked+test point method bootloader unlock but no fastboot mode.
Click to expand...
Click to collapse
this is not possable.....
for custom kernel you willl need unlock bootloader from oem or you can use S1 tool to patch bootloader
Bootloader unlock allowed: No
lawong said:
hi anyone manage to convert custom img kernel to ftf and be able to flashed it with flashtools without any error?
I have managed to convert img kernel to ftf but facing error while flashing it in flashtools.
The reason that I did that because of my phone won't allow bootloader to be unlocked. And my phone are sim unlocked+test point method bootloader unlock but no fastboot mode.
Click to expand...
Click to collapse
Hi!
My Neo V is sim and fastboot locked. I unlocked it via testpoint and tried to make a kernel.sin and after a flashable ftf. Here is a guide for you: http://forum.xda-developers.com/showpost.php?p=39544867&postcount=9
1. Convert boot.img to kernel.ftf
2. Unlock your phone via testpoint
3. Copy Flashtool/devices/R800/loader_unlocked.sin to Flashtool/devices/mt11
4. Flash the kernel
5. Boot into recovery
6. Install rom and gapps
Now I'm using cm10 without any problem! Good luck!

Question regarding relocking bootloader

Today i finally unlocked my bootloader officially...
My doubt is that,
1. How to relock bootloader.
2. If it is relocked, how to unlock it again.
Same question
the same Question ?
Any answers??​
asrupesh said:
Today i finally unlocked my bootloader officially...
My doubt is that,
1. How to relock bootloader.
2. If it is relocked, how to unlock it again.
Click to expand...
Click to collapse
To relock the bootloader, just flash an official miui fastboot rom via miflash and you're done....
If you have unlocked officially, you can just unlock your bootloader anytime without asking permission from xiaomi again...
If you have unlocked your device unofficially, repeat the steps you did for unlocking your device or unlock officially.....
ayush321 said:
To relock the bootloader, just flash an official miui fastboot rom via miflash and you're done....
If you have unlocked officially, you can just unlock your bootloader anytime without asking permission from xiaomi again...
If you have unlocked your device unofficially, repeat the steps you did for unlocking your device or unlock officially.....
Click to expand...
Click to collapse
Thanks for replying today i flash miui stock fastboot via miflash and checked using this code "fastboot oem device-info"
it still shows "device unlocked= true"
it didint relock my bootloder....
asrupesh said:
Thanks for replying today i flash miui stock fastboot via miflash and checked using this code "fastboot oem device-info"
it still shows "device unlocked= true"
it didint relock my bootloder....
Click to expand...
Click to collapse
can you try with fastboot oem lock?
rajneeshk said:
can you try with fastboot oem lock?
Click to expand...
Click to collapse
Sorry dude I can't, I dont want to risk it....
asrupesh said:
Today i finally unlocked my bootloader officially...
My doubt is that,
1. How to relock bootloader.
2. If it is relocked, how to unlock it again.
Click to expand...
Click to collapse
I see many asking how to Relock Bootloader, especially those who had unlocked unofficially.
http://forum.xda-developers.com/showpost.php?p=66962198&postcount=7
The steps to be followed are following:
(1) Turn on USB debugging for your phone;
Go to Settings -- About Phone --> Touch 7 times on "MIUI version" to Enable Developer Options.
Now go to Settings - Additional Settings - Developer Options --> USB debugging.
Enable USB Debugging and Connect to PC.
(2) Download Fastboot ROM (file extension .tgz or .tar) from
Code:
http://en.miui.com/a-234.html
(3) Boot into EDL
adb devices (to check it's connected)
adb reboot edl
(4) Use MI Flash Tool to Flash the Fastboot ROM
One done it will be locked... To relock follow same steps as done earlier - either official or unofficial

cant unlock bootloader because i have twrp installed

hi
i rooted my device and installed twrp and DU rom.
a week ago i wanted to unroot my device. i made a huge mistake and did it via an app instead pc...
now my device is locked but i have twrp and cant flash anything so i cant unlock my bootloader anymore...
pls help!
thank you
Unrooting your device doesn't lock the bootloader. Unless you went into developer options and toggeled OEM unlocking off.
Exodusche said:
Unrooting your device doesn't lock the bootloader. Unless you went into developer options and toggeled OEM unlocking off.
Click to expand...
Click to collapse
well the problem is that it is locked and i have twrp installed. now i cant flash and boot anything and so i cant unlock it anymore?
imnaze said:
well the problem is that it is locked and i have twrp installed. now i cant flash and boot anything and so i cant unlock it anymore?
Click to expand...
Click to collapse
To unlock BL, you need to permit it in the dev menu and run a fastboot commmand. Are you sure TWRP avoid you to do that?

Reset factory stuck at 0%

Hello,
I can't enable the oem unlock from developer options, i understand that i have to do a factory reset. When i do it, it stuck at 0%, i let it all the day. If someone can help me please
kaoutar19 said:
Hello,
I can't enable the oem unlock from developer options, i understand that i have to do a factory reset. When i do it, it stuck at 0%, i let it all the day. If someone can help me please
Click to expand...
Click to collapse
Please, someone can help me ? i am bloqued
kaoutar19 said:
Please, someone can help me ? i am bloqued
Click to expand...
Click to collapse
Hallo there
Just a few questions first, are you trying to reset factory settings through the phone settings app or are you trying trough eRecovery?
Cheers,
AS
ars_chelsea said:
Hallo there
Just a few questions first, are you trying to reset factory settings through the phone settings app or are you trying trough eRecovery?
Cheers,
AS
Click to expand...
Click to collapse
Thank you. I tried to reset through the setting and through eRecovery, for both, the reset stuck at 0%. Bootloader is unlocked, FRP is locked. I can't toggle the button to enable OEM unlocking.
Are you using phone with working sim, or without? Why I ask about sim? If not working sim card, then a lot phones will not give OEM unlock option, once it was for me with Sony phone, after I inserted sim needet to wait weak and only then OEM unlock option was accessable.
What are your phone full model ? Like, ane-lx1c432b166
Arnys said:
Are you using phone with working sim, or without? Why I ask about sim? If not working sim card, then a lot phones will not give OEM unlock option, once it was for me with Sony phone, after I inserted sim needet to wait weak and only then OEM unlock option was accessable.
What are your phone full model ? Like, ane-lx1c432b166
Click to expand...
Click to collapse
No, when i inser the sim card, i can't activate the sim through the parameteres (Erreur activation), that's why i wanted to reset it and install new firmware.
kaoutar19 said:
No, when i inser the sim card, i can't activate the sim through the parameteres (Erreur activation), that's why i wanted to reset it and install new firmware.
Click to expand...
Click to collapse
ok, didnt give full ph0ne model, dont need, can go and find all you need yourself : from this : https://forum.xda-developers.com/hu...om-official-emui-8-0-huawei-p20-lite-t3773999
7. dload package
In this site you can search for firmware by Huawei P20 Lite or directly by your device oem name (ANNE-L01, ANNE-L03, ANNE-L21, ANNE-L22, ANNE-L23, etc...
http://androidhost.ru/search.html
Download the firmware that match with your device and unzip.
Under folder Software you will found the folder dload, copy this folder to sdcard.
Under folder ReleaseDoc you will find a Software Upgrade Guideline.docx, read it.
User data will be wiped.
Update is done with stock recovery
If your Bootloader is currently unlocked at the end it will be changed to lock state.
i gues you have your bootloader code, you can even use older package, adn reset your phone using this dload method!!
Arnys said:
ok, didnt give full ph0ne model, dont need, can go and find all you need yourself : from this : https://forum.xda-developers.com/hu...om-official-emui-8-0-huawei-p20-lite-t3773999
7. dload package
In this site you can search for firmware by Huawei P20 Lite or directly by your device oem name (ANNE-L01, ANNE-L03, ANNE-L21, ANNE-L22, ANNE-L23, etc...
http://androidhost.ru/search.html
Download the firmware that match with your device and unzip.
Under folder Software you will found the folder dload, copy this folder to sdcard.
Under folder ReleaseDoc you will find a Software Upgrade Guideline.docx, read it.
User data will be wiped.
Update is done with stock recovery
If your Bootloader is currently unlocked at the end it will be changed to lock state.
i gues you have your bootloader code, you can even use older package, adn reset your phone using this dload method!!
Click to expand...
Click to collapse
Thank you for your answer, so i downloaded the latest version ANE-LX1 8.0.0.147(C109) Europe, copy the dload folder on sd card. Did a forced upgrade, the upgrade stuck at 5%
kaoutar19 said:
Thank you for your answer, so i downloaded the latest version ANE-LX1 8.0.0.147(C109) Europe, copy the dload folder on sd card. Did a forced upgrade, the upgrade stuck at 5%
Click to expand...
Click to collapse
Hi again
Sorry not answering earlier...But I do think Mr.Arnys is gonna take care of this. About the forced upgrade, try resetting the caches first.
Cheers,
AS
ars_chelsea said:
Hi again
Sorry not answering earlier...But I do think Mr.Arnys is gonna take care of this. About the forced upgrade, try resetting the caches first.
Cheers,
AS
Click to expand...
Click to collapse
I makes software installation failed i have custom rom Morfuz
kaoutar19 said:
I makes software installation failed i have custom rom Morfuz
Click to expand...
Click to collapse
Oh you have a custom ROM? So your bootloader is unlocked ok... In that case, install the stock recovery .img via fastboot(if you need a guide I can provide it) as soon as you can and then try to install the dload package again
Cheers,
AS
ars_chelsea said:
Oh you have a custom ROM? So your bootloader is unlocked ok... In that case, install the stock recovery .img via fastboot(if you need a guide I can provide it) as soon as you can and then try to install the dload package again
Cheers,
AS
Click to expand...
Click to collapse
Thanks for your replay . Where i can find the stock recovery .img ? The bootloader is unlocked, frp locked. I have to use the same method ? i put only the .img file on dload folder ? Thank you for your help
try to restore your phone using eRecovery, when restart phone, there are text your device unlocked cant trust, pres 3 sec volume upt o enter e recovery, enter in it, conect to wifi, download and instal stock..
Arnys said:
try to restore your phone using eRecovery, when restart phone, there are text your device unlocked cant trust, pres 3 sec volume upt o enter e recovery, enter in it, conect to wifi, download and instal stock..
Click to expand...
Click to collapse
I have getting package info failed
kaoutar19 said:
Thanks for your replay . Where i can find the stock recovery .img ? The bootloader is unlocked, frp locked. I have to use the same method ? i put only the .img file on dload folder ? Thank you for your help
Click to expand...
Click to collapse
Hallo again,
Ok so for the stock recovery you can download it on the thread by ciubi93, on this link https://mega.nz/#!SR9RzKST!dhXS0yC-p_SvWu-SYYLaop1aRFzSulLVrnSXCVVJiGI after you download this, download the fastboot adb tools - here's a link of the xda for that https://www.xda-developers.com/install-adb-windows-macos-linux/ after you did that guide from xda, copy the stock recovery into that folder and then press shift+right click of your mouse on the folder and select "open powershell window here (in case of windows 10) or in case of windows 7 (open command prompt window here)" , if you have a power shell window then power off your device then press power ON + volume down and type on the window ".\fastboot flash recovery recovery_ramdisk.img ", after this you have your stock recovery successfully reset and you can now flash the official dload package, try it via power ON + Volume down + Volume up at the same time until the huawei logo disappears and then you release.
I really hope this helps cause I tried this a lot on mine.
Cheers,
AS
error remote Command not allowed
Hello, i tried this command in the fastboot mode, i have the error remote Command not allowed.
kaoutar19 said:
Hello, i tried this command in the fastboot mode, i have the error remote Command not allowed.
Click to expand...
Click to collapse
Hi there
Yeah I forgot you have FRP locked....My bad....Anyway, can you tell me the current build you have and the one you want to install? Example: C17 8.0.0.140
Because if you try to install a different firmware which is not from your country you need to change your oem info first.
Cheers,
AS
---------- Post added at 10:47 ---------- Previous post was at 10:36 ----------
Also if you had it unlocked I assume you have the unlock code with you, in that case try this first:
Relock the bootloader using fastboot command "fastboot oem relock *codehere* " this will erase all DATA, it will do an hard reset, be sure to backup first!
After that, you can unlock the bootloader again via fastboot command "fastboot oem unlock *codehere*" and then it will unlock both bootloader and FRP
Cheers,
AS
ars_chelsea said:
Hi there
Yeah I forgot you have FRP locked....My bad....Anyway, can you tell me the current build you have and the one you want to install? Example: C17 8.0.0.140
Because if you try to install a different firmware which is not from your country you need to change your oem info first.
Cheers,
AS
---------- Post added at 10:47 ---------- Previous post was at 10:36 ----------
Also if you had it unlocked I assume you have the unlock code with you, in that case try this first:
Relock the bootloader using fastboot command "fastboot oem relock *codehere* " this will erase all DATA, it will do an hard reset, be sure to backup first!
After that, you can unlock the bootloader again via fastboot command "fastboot oem unlock *codehere*" and then it will unlock both bootloader and FRP
Cheers,
AS
Click to expand...
Click to collapse
Hm, if I'm correct, you can't unlock bootloader, if frp are locked, frp will be unlocked, when you allow OEM unlock under developer options.
Only thing there can do, connect with mofuz ROM developer to help return to stock, otherwise our suggestions will not work, because all I know is for stock emui.
But yeah, with right phone build number he shulda be able to return to stock with no problem, so, does he know what was stock emui build he had before started to play with phone..??!!
And, can download all dload packages and try them all, no harm if it fails, but maybe some will reflash system as it should be
Arnys said:
Hm, if I'm correct, you can't unlock bootloader, if frp are locked, frp will be unlocked, when you allow OEM unlock under developer options.
Only thing there can do, connect with mofuz ROM developer to help return to stock, otherwise our suggestions will not work, because all I know is for stock emui.
But yeah, with right phone build number he shulda be able to return to stock with no problem, so, does he know what was stock emui build he had before started to play with phone..??!!
And, can download all dload packages and try them all, no harm if it fails, but maybe some will reflash system as it should be
Click to expand...
Click to collapse
You can't unlock FRP when you have the booloader unlocked yes I know, but what I said is for him to relock first and then unlock it again Once he unlocks again the FRP will become unlocked, I looked into this thread for that and they also confirmed it works here's the proof if you have doughts quoting @clsA "FRP Lock occurs when the phone has a firmware mismatch and or oem unlocking is not on in developer options":
Here's the thread (check @gopinaidu77 post and then the answers after that):
https://forum.xda-developers.com/honor-5x/help/remove-frp-lock-fastboot-t3530220/page2
Cheers,
AS
ars_chelsea said:
You can't unlock FRP when you have the booloader unlocked yes I know, but what I said is for him to relock first and then unlock it again Once he unlocks again the FRP will become unlocked, I looked into this thread for that and they also confirmed it works here's the proof if you have doughts quoting @clsA "FRP Lock occurs when the phone has a firmware mismatch and or oem unlocking is not on in developer options":
Here's the thread (check @gopinaidu77 post and then the answers after that):
https://forum.xda-developers.com/honor-5x/help/remove-frp-lock-fastboot-t3530220/page2
Cheers,
AS
Click to expand...
Click to collapse
I locked and relocked the bootloader, now i can only access to the recovery or to the fastboot. In the recovery, anything i do like reset, my phone reboot again to the recovery, in the fastboot mode i can't relock the bootloader, need to access to the phone to enable developer options. I tried to do a hard reset or an update with dload, nothing work, always rebooting to the recovery. My phone is broken now

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!

Categories

Resources