Re-Lock bootloader on the device itself - OnePlus 7 Pro Questions & Answers

Hello,
I would like to reset my device to factory settings (original OS, bootloader locked) before I send it in for repair, but the USB-C port no longer works properly, so I have a question:
Original image is back on, but bootloader is unlocked. A simple
Code:
fastboot oem lock
is accordingly not possible.
I know that a unlocked bootloader should not void warranty, but i ordered the phone from a third party distributor and i don't want to start discussions about the ugly unlocked message at boot.
Is there any way to do this directly on the device?

rosaLux161 said:
Hello,
I would like to reset my device to factory settings (original OS, bootloader locked) before I send it in for repair, but the USB-C port no longer works properly, so I have a question:
Original image is back on, but bootloader is unlocked. A simple
Code:
fastboot oem lock
is accordingly not possible.
I know that a unlocked bootloader should not void warranty, but i ordered the phone from a third party distributor and i don't want to start discussions about the ugly unlocked message at boot.
Is there any way to do this directly on the device?
Click to expand...
Click to collapse
You ned the cable for re-lock bootloader.
Are you able to charge it?

Related

How to safely unlock the bootloader P9?

How to safely unlock the bootloader P9 ? Please for detailed instructions. Thanks.
I think people used DC unlocker..
So has anyone tried to relock the bootloader? It would be nice to know if there is a method to relock that can't be detected, so our warranty says intact. I've read that dc unlocker can do that but I've never seen confirmation.
clouds5 said:
So has anyone tried to relock the bootloader? It would be nice to know if there is a method to relock that can't be detected, so our warranty says intact. I've read that dc unlocker can do that but I've never seen confirmation.
Click to expand...
Click to collapse
I've just checked too on dc unlocker site and P9 results like the last added supported model with this features:
- direct unlock
- read bootloader code
- read unlock codes
- unlock FRP
So I just unlocked my Bootloader successfully with the DC unlocker tool and wanted to share the process with you guys. If you live in Europe and tried to get your unlock code directly from Huawei you may have run into some problems but this method works. My P9 is a EVA-L09 (europe single sim version).
Do this at your own risk.
You need this tool: https://www.dc-unlocker.com/ I did it with the most recent version as of now (V1.00.1290) which is the first that supports the P9.
Basically follow the instructions in the tool to get your device connected, it's straightforward. Then you need to make an account and _buy_ credits to read your unlock code. You need 4 credits so it will cost you 4 euro. This sucks, but it's no scam or anything. It works (as I just did it).
Just log in through the tool with the data provided after making an account and go to Unlocking -->"read bootloader code". Push the button and after a few secs your code appears. WRITE IT DOWN AND/OR COPY IT TO A .txt or something
[e] important: before you unlock/relock your phone or flash a custom recovery make sure that you go to developer settings and tick "enable OEM unlock". Missing this could lead to brick in certain situations, for more info read this article and do additional research.
Once you have the code you can start the unlocking process. This is the same for people that got their unlock code through other methods.
-Disconnect and power off your P9.
-Push volume down and connect it to your Computer, when the screen turns on you are in fastboot mode.
-Open any ADB/Fastboot tool (http://forum.xda-developers.com/showthread.php?t=2317790 <- i used this) and write:
"fastboot devices"
your device should be detected. Then write:
"fastboot oem unlock XXXXXXXXXXXXXXXXXXX" )X being the unlock code you got from DC unlocker)
It gives you a warning about warranty etc you have to comply and your bootloader is unlocked. As it warns you on the screen this will do a factory reset.
If you ever want to relock the bootloader put your phone in fastboot mode and type
"fastboot oem relock XXXXXXXXXXXXXXXXXX" the bootloader will be relocked but as far as we know it's detectable that it was unlocked before.
Hope this helps, cheers
clouds5 said:
So I just unlocked my Bootloader successfully with the DC unlocker tool and wanted to share the process with you guys. If you live in Europe and tried to get your unlock code directly from Huawei you may have run into some problems but this method works. My P9 is a EVA-L09 (europe single sim version).
You need this tool: https://www.dc-unlocker.com/ I did it with the most recent version as of now (V1.00.1290) which is the first that supports the P9.
Basically follow the instructions in the tool to get your device connected, it's straightforward. Then you need to make an account and _buy_ credits to read your unlock code. You need 4 credits so it will cost you 4 euro. This sucks, but it's no scam or anything. It works (as I just did it).
Just log in through the tool with the data provided after making an account and go to Unlocking -->"read bootloader code". Push the button and after a few secs your code appears. WRITE IT DOWN AND/OR COPY IT TO A .txt or something
Once you have the code you can start the unlocking process. This is the same for people that got their unlock code through other methods.
-Disconnect and power off your P9.
-Push volume down and connect it to your Computer, when the screen turns on you are in fastboot mode.
-Open any ADB/Fastboot tool (http://forum.xda-developers.com/showthread.php?t=2317790 <- i used this) and write:
"fastboot devices"
your device should be detected. Then write:
"fastboot oem unlock XXXXXXXXXXXXXXXXXXX" )X being the unlock code you got from DC unlocker)
It gives you a warning about warranty etc you have to comply and your bootloader is unlocked. As it warns you on the screen this will do a factory reset.
If you ever want to relock the bootloader put your phone in fastboot mode and type
"fastboot oem relock XXXXXXXXXXXXXXXXXX" the bootloader will be relocked but as far as we know it's detectable that it was unlocked before.
Hope this helps, cheers
Click to expand...
Click to collapse
Great to hear that I works!
Are you planning to flash twrp and root it?
Sent from my Nexus 5X
220volt said:
Great to hear that I works!
Are you planning to flash twrp and root it?
Sent from my Nexus 5X
Click to expand...
Click to collapse
Already rooted it with the guide from the root thread here. Was quick and worked great.
clouds5 said:
So I just unlocked my Bootloader successfully with the DC unlocker tool and wanted to share the process with you guys. If you live in Europe and tried to get your unlock code directly from Huawei you may have run into some problems but this method works. My P9 is a EVA-L09 (europe single sim version).
You need this tool: https://www.dc-unlocker.com/ I did it with the most recent version as of now (V1.00.1290) which is the first that supports the P9.
Basically follow the instructions in the tool to get your device connected, it's straightforward. Then you need to make an account and _buy_ credits to read your unlock code. You need 4 credits so it will cost you 4 euro. This sucks, but it's no scam or anything. It works (as I just did it).
Just log in through the tool with the data provided after making an account and go to Unlocking -->"read bootloader code". Push the button and after a few secs your code appears. WRITE IT DOWN AND/OR COPY IT TO A .txt or something
Once you have the code you can start the unlocking process. This is the same for people that got their unlock code through other methods.
-Disconnect and power off your P9.
-Push volume down and connect it to your Computer, when the screen turns on you are in fastboot mode.
-Open any ADB/Fastboot tool (http://forum.xda-developers.com/showthread.php?t=2317790 <- i used this) and write:
"fastboot devices"
your device should be detected. Then write:
"fastboot oem unlock XXXXXXXXXXXXXXXXXXX" )X being the unlock code you got from DC unlocker)
It gives you a warning about warranty etc you have to comply and your bootloader is unlocked. As it warns you on the screen this will do a factory reset.
If you ever want to relock the bootloader put your phone in fastboot mode and type
"fastboot oem relock XXXXXXXXXXXXXXXXXX" the bootloader will be relocked but as far as we know it's detectable that it was unlocked before.
Hope this helps, cheers
Click to expand...
Click to collapse
Thanks! I just unlocked my bootloader. It didn't work at first but this was because I had forgotten to enable OEM unlock in the settings: https://www.dc-unlocker.com/enable-oem-unlock
What are the benefits of unlocking the bootloader and are there any negatives?
Sent from my EVA-AL00 using Tapatalk
Milamber said:
What are the benefits of unlocking the bootloader and are there any negatives?
Sent from my EVA-AL00 using Tapatalk
Click to expand...
Click to collapse
The phone could become less secure, however after unlocking you should be able to install a modified recovery (twrp)
Do you still get automatic updates through the phone with an unlocked boot loader? I'm keen to put an English rom on my Chinese P9
Sent from my EVA-AL00 using Tapatalk
I've tried to unlock my P9 using the DC-Unlocker method but it's just saying "FAILED (remote: password wrong)"
Any ideas?
DreamHazard said:
I've tried to unlock my P9 using the DC-Unlocker method but it's just saying "FAILED (remote: password wrong)"
Any ideas?
Click to expand...
Click to collapse
Do you get that in the DC unlocker or when you actually type the unlock command in fastboot? DC unlocker is just for reading the bootloader code not the actual unlocking. If that makes sense.
Also don't forget to "enable OEM unlock" in the dev settings.
clouds5 said:
Do you get that in the DC unlocker or when you actually type the unlock command in fastboot? DC unlocker is just for reading the bootloader code not the actual unlocking. If that makes sense.
Also don't forget to "enable OEM unlock" in the dev settings.
Click to expand...
Click to collapse
I got the codes from DC unlocker, it's the response from fastboot oem unlock <code>. DC unlocker gave me four codes, I tried all of them. OEM Unlock is enabled in settings.
I have read elsewhere that the O2 handsets are bootloader locked, but mine came from the carphone warehouse, who usually send out carrier-free handsets (thus not O2 specific). Unfortunately I don't have a microsim from another network to test this, though there doesn't seem to be any O2 branding or apps.
EDIT: I've discovered the problem, I clicked "Read unlock codes" rather than "Read bootloader code" so the codes were obviously incorrect.
So even if we use dc unlocker to unlock our bootloader they can detect it???
Veretic said:
So even if we use dc unlocker to unlock our bootloader they can detect it???
Click to expand...
Click to collapse
DC unlocker doesn't actually unlock the bootloader, it's just an alternate way to get your specific unlock code. The actual unlocking is done with a command line.
clouds5 said:
DC unlocker doesn't actually unlock the bootloader, it's just an alternate way to get your specific unlock code. The actual unlocking is done with a command line.
Click to expand...
Click to collapse
I know it doesn't unlock it and only provides an unlock code but on other huawei phones it can relock the bootloader and leave the status locked instead of relocked.
Veretic said:
I know it doesn't unlock it and only provides an unlock code but on other huawei phones it can relock the bootloader and leave the status locked instead of relocked.
Click to expand...
Click to collapse
I've searched for that myself and found a post where someone said DC unlocker can relock the bootloader leaving the status "locked" instead of "relocked". But no confirmation if that is detectable or not and it was from a different device, so no guarantees it will work for the P9... So I guess we don't have a definitive answer how this affects your warranty and it may very well depend on the country you live in, as it usually does with warranty issues.
The official Huawei page states the following (link):
"Huawei will record your unlock request information; for software and hardware failures arising as a result of unlocking the bootloader, Huawei repair centers can provide repair services charged at the standard rate for repair work outside the scope of the warranty."
The way I interpret this it means that you only lose warranty if the damage is directly related to something you did by having the bootloader unlocked. If you have an unlocked bootloader and the camera module dies within the warranty period you should be fine unless they can prove that it died because of something you flashed through the unlocked bootloader. But as I said I think this is handled case by case and depends on your local warranty law.
I have an o2 P( bought in o2 store, used DC unlocker after some faffing with installing hisuite before DC unlocker would recognise my phone.
Got the unlock code unlocked bootloader, and restored 'most' of my data via the hisuite backup feature
I'm not doing anything else with it until I have all relevant files to recover from a sketchy flash or whatnot
clouds5 said:
So I just unlocked my Bootloader successfully with the DC unlocker tool and wanted to share the process with you guys. If you live in Europe and tried to get your unlock code directly from Huawei you may have run into some problems but this method works. My P9 is a EVA-L09 (europe single sim version).
Do this at your own risk.
You need this tool: https://www.dc-unlocker.com/ I did it with the most recent version as of now (V1.00.1290) which is the first that supports the P9.
Basically follow the instructions in the tool to get your device connected, it's straightforward. Then you need to make an account and _buy_ credits to read your unlock code. You need 4 credits so it will cost you 4 euro. This sucks, but it's no scam or anything. It works (as I just did it).
Just log in through the tool with the data provided after making an account and go to Unlocking -->"read bootloader code". Push the button and after a few secs your code appears. WRITE IT DOWN AND/OR COPY IT TO A .txt or something
[e] important: before you unlock/relock your phone or flash a custom recovery make sure that you go to developer settings and tick "enable OEM unlock". Missing this could lead to brick in certain situations, for more info read this article and do additional research.
Once you have the code you can start the unlocking process. This is the same for people that got their unlock code through other methods.
-Disconnect and power off your P9.
-Push volume down and connect it to your Computer, when the screen turns on you are in fastboot mode.
-Open any ADB/Fastboot tool (http://forum.xda-developers.com/showthread.php?t=2317790 <- i used this) and write:
"fastboot devices"
your device should be detected. Then write:
"fastboot oem unlock XXXXXXXXXXXXXXXXXXX" )X being the unlock code you got from DC unlocker)
It gives you a warning about warranty etc you have to comply and your bootloader is unlocked. As it warns you on the screen this will do a factory reset.
If you ever want to relock the bootloader put your phone in fastboot mode and type
"fastboot oem relock XXXXXXXXXXXXXXXXXX" the bootloader will be relocked but as far as we know it's detectable that it was unlocked before.
Hope this helps, cheers
Click to expand...
Click to collapse
I think this might be redundant, yesterday I contacted Huawei through their customer support form on their international page with my IMEI and S/No, and about 10hrs later got my bootloader unlock code with all the usual warnings about the warranty. I'm currently at work so I can't yet confirm if the code works or not but will update this post in a few hrs when I get home.
I was genuinely surprised that the person who contacted me via email was actually a finnish customer service agent, not some google translate-bot or anything.
My device is EVA-L09 and I live in Finland.

Is it possible to lock and unlock bootloader without erasing data once your rooted

I just unlocked the bootloader to install twrp and maybe magisk i wanted to also try the Android P dev preview. but i know having a unlocked bootloader is a security risk also your get that warnign message at boot which makes booting up longer,is there a way to lock and unlock without losing data if im root.
Unlocking and locking wipes all data by design.
Telperion said:
Unlocking and locking wipes all data by design.
Click to expand...
Click to collapse
Is there a way to make the device secure with it having a unlocked bootloader?
With an unlocked bootloader, anyone can install a factory image, which wipes all your locks and your google account (and, therefore, defeats FRP), which is what makes it insecure. The only way to avoid that is to have a locked bootloader (and USB debugging off). (And I've seen reports here that unlocking the bootloader, installing TWRP and Magisk, then locking the bootloader, results in a hard brick (meaning buying another phone, because Google won't replace it)
Run with the unlocked booloader, don't ever leave the phone off your person and have "insurance" that replaces stolen (and possibly lost) phones.

Phone just crashed. Could it be because of an unlocked bootloader ?

I opened up the developer options on my Moto G Stylus and went under OEM Unlocking and selected the allow the bootloader to be unlocked option. That was either last week or a few weeks ago because I wanted to root it and put a custom rom on it. I didn't rooted it yet because I'm not sure what roms are good, I only had cyanogin mod roms on my other phones and I'm not sure which rom is the safest and best to use so I still use the stock rom. I turned on Pandora to play music before I went to sleep. When I woke up my phone was in some kind of recovery mode and said something like the operating system failed to boot. Two options were available, 1- to try booting again, and 2-factory reset the phone which would erase all data. I selected 1, and my phone booted up. Could this be because the bootloader is unlocked? Does having the bootloader unlocked leave it suspectable to being hacked? Could my phone have been hacked?
Switching OEM Unlocking is not enough to unlock, you then must on motorola unlock webpage paste code from your phone and, wait for unlock code in email, via fastboot with this unlock code doing finaly real umlocking...
k3dar7 said:
Switching OEM Unlocking is not enough to unlock, you then must on motorola unlock webpage paste code from your phone and, wait for unlock code in email, via fastboot with this unlock code doing finaly real umlocking...
Click to expand...
Click to collapse
Would selecting the bootloader option to be unlocked in the developer options make my phone more vulnerable to be hacked?
A few hours later my phone did the same thing and went into recovery mode saying that my phone could not load the OS and might be infected or something. I had the same options to either try to load the OS again or factory data reset the phone. How could this happen?
I factory data reset my phone this time. I just hope I don't have some kind of malware.
Mine was hacked like this. Changed stuff so it won't boot back to original. Got into system files and remote control my phone. Is there a way to get back to original without computer? It's useless now

Question ROG Phone 5

Hello I need a hand, I installed the latest OS version for Rog Phone with the tools provided by ASUS Rog phone Since my updates it is installed very well, but I have a Bootloader message each time the phone is started (see photo) I would like to STOP it but I can't! If you have a simple tutorial I would be happy or a helping hand, thank you all
As long as your bootloader is unlocked like the message indicates you'll get that. You can lock it again if it really bothers you or just leave it as is (recommended to leave it alone, especially if your device is not a true Global).
Thank you I know that this is possible to lock the "Lock Bootlocker" there are tutorials but very badly explain, it bothers me if I want to resell it.
Asus are not great on the Update part, because it explains nothing, no simple tutorial, I had only downloaded the software.APK to unlock Bootloader and since the updates are made it always tells me the Bootloader message and I really want to delete it.
Thanks if you have any other info.
Andrologic said:
As long as your bootloader is unlocked like the message indicates you'll get that. You can lock it again if it really bothers you or just leave it as is (recommended to leave it alone, especially if your device is not a true Global).
Click to expand...
Click to collapse
I would like to lock it but I don't know the principle !
PARISSMART said:
I would like to lock it but I don't know the principle !
Click to expand...
Click to collapse
Is your device original WW/Global version? If it is/was originally a Tencent/CH version, take careful note of other users here reporting that you can only unlock it once, meaning if you re-lock it, there is no going back if you one day want to unlock it. Quite important.
If you're all good with above and at own risk, the steps are fairly simple:
1) Backup all your stuff
2) Boot the device into bootloader (Volume UP + Power until you're on the bootloader menu)
3) Connect your device to a PC with a data capable USB cable
4) Execute the command >> fastboot oem asus-lock << (requires that you have Fastboot access and drivers installed of course: Link )
5) Reboot the device. Your bootloader should now be locked.
If it bootloops or you get a red "device is corrupted bla bla.." message, do a factory reset from Recovery or RAW flash a rom. Recommend you make sure you're fully on top of recovering this device from bootloop/soft brick before attempting this, just in case.
If your only concern is about selling the device, I'd suggest keeping it as is and only re-lock it if you decide to sell it. Your warranty is gone anyway since you've used the ASUS Unlock tool once..
Andrologic said:
Is your device original WW/Global version? If it is/was originally a Tencent/CH version, take careful note of other users here reporting that you can only unlock it once, meaning if you re-lock it, there is no going back if you one day want to unlock it. Quite important.
If you're all good with above and at own risk, the steps are fairly simple:
1) Backup all your stuff
2) Boot the device into bootloader (Volume UP + Power until you're on the bootloader menu)
3) Connect your device to a PC with a data capable USB cable
4) Execute the command >> fastboot oem asus-lock << (requires that you have Fastboot access and drivers installed of course: Link )
5) Reboot the device. Your bootloader should now be locked.
If it bootloops or you get a red "device is corrupted bla bla.." message, do a factory reset from Recovery or RAW flash a rom. Recommend you make sure you're fully on top of recovering this device from bootloop/soft brick before attempting this, just in case.
If your only concern is about selling the device, I'd suggest keeping it as is and only re-lock it if you decide to sell it. Your warranty is gone anyway since you've used the ASUS Unlock tool once..
Click to expand...
Click to collapse
Thank you, I will try this and *I will let you know the situation and the *tests
Thank you very much for the explanations, it's nice

how to unlock a locked bootloader ! ( oem greyed out )

So i received a american pixel 4 xl with a locked bootloader. imei starting with 35
i was able to unlock the bootloader here is the steps i took, note im in Australia.
Full OTA Images for Nexus and Pixel Devices | Google Play services | Google for Developers
developers.google.com
the firmware on the device was american,
i flashed my countrys firmware (australian) optus/telstra/vodaphone etc
use adb side load *firmware.zip*
factory reset , booted device on with australian sim,
and boom oem was available ,
(last step is to adb reboot bootloader,
and ./fastboot flashing unlock and you will see a message on pixel.
intially with the Original firmware on the device it would not unlock.. i tried factory reset
/ fastboot flashing unlock etc and it would not work...
anyhoo i have not seen anything on here suggested flashing another firmware origin so i thought this might help those with locked at&t / verison carriers, intially it was GREYED OUT AND SAID contact carrier or connect to the internet.
Hope this helps someone ! as all the forums ive swiped thru have said this is not do-able, lol turns out it is.
xorrgnlusrx said:
So i received a american pixel 4 xl with a locked bootloader. imei starting with 35
i was able to unlock the bootloader here is the steps i took, note im in Australia.
Full OTA Images for Nexus and Pixel Devices | Google Play services | Google for Developers
developers.google.com
the firmware on the device was american,
i flashed my countrys firmware (australian) optus/telstra/vodaphone etc
use adb side load *firmware.zip*
factory reset , booted device on with australian sim,
and boom oem was available ,
(last step is to adb reboot bootloader,
and ./fastboot flashing unlock and you will see a message on pixel.
intially with the Original firmware on the device it would not unlock.. i tried factory reset
/ fastboot flashing unlock etc and it would not work...
anyhoo i have not seen anything on here suggested flashing another firmware origin so i thought this might help those with locked at&t / verison carriers, intially it was GREYED OUT AND SAID contact carrier or connect to the internet.
Hope this helps someone ! as all the forums ive swiped thru have said this is not do-able, lol turns out it is.
Click to expand...
Click to collapse
The firmware does not determine whether the bootloader is unlockable.
When the device connects to the Internet, it checks its IMEI against a whitelist on Google's servers. If it has been authorized for bootloader unlock, OEM Unlocking will become available.
If it doesn't, it's likely that you have a locked variant.
V0latyle said:
The firmware does not determine whether the bootloader is unlockable.
When the device connects to the Internet, it checks its IMEI against a whitelist on Google's servers. If it has been authorized for bootloader unlock, OEM Unlocking will become available.
If it doesn't, it's likely that you have a locked variant.
Click to expand...
Click to collapse
What if it is already unlocked and I want to relock it? I flashed stock firmware, the bootloader is still unlocked but now I can't lock it again because the option is greyed out.
emko7 said:
What if it is already unlocked and I want to relock it? I flashed stock firmware, the bootloader is still unlocked but now I can't lock it again because the option is greyed out.
Click to expand...
Click to collapse
The OEM Unlocking toggle does not lock or unlock the bootloader itself. It simply allows you to unlock the bootloader when enabled.
If you want to relock your bootloader, you do this via ADB while in bootloader mode: fastboot flashing lock
V0latyle said:
The OEM Unlocking toggle does not lock or unlock the bootloader itself. It simply allows you to unlock the bootloader when enabled.
If you want to relock your bootloader, you do this via ADB while in bootloader mode: fastboot flashing lock
Click to expand...
Click to collapse
For some reason I couldn't get into fastboot mode, "adb reboot bootloader" would just restart my device. If I booted into recovery, the "reboot into bootloader" option would just start up the phone. But I eventually found out I can lock the bootloader in download mode

Categories

Resources