Question Relocking bootloader - Realme 8

Someone please guide how to relock bootloader after flashing UI 3.0_C.09 with sp flash tool ?
What is the adb command for it ? Should i use the command before flashing or after flashing ?

This works on my phone (OUKITEL K7pro - MediaTek - MT6763T)
But make sure that you have your stock ROM installed; otherwise you may brick your phone.
You need to enter in to fastboot
/> adb reboot bootloader
Then lock the bootloader
/> fastboot flashing lock

Ok thanks

Related

100% stock, unlocking & relocking the bootloader questions

I have read all of the info about unlocking and relocking the bootloader, but i have a question, if i was 100% stock with a locked bootloader and wanted to flash the latest factory image would i still need to enable developer options and enable allow oem unlock even if i was to run the commands below from fastboot mode.
fastboot oem unlock
fastboot flash bootloader bootloader-shamu-moto-apq8084-71.08.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash radio radio-shamu-d4.0-9625-02.95.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash cache cache.img
fastboot oem lock
fastboot reboot
The reason i ask is that you are not booting into android until the bootloader is relocked, so in theory the oem unlock option shouldn't have an effect in this scenario?
@d.chatten,
Yes, you have to unlock the bootloader to use fastboot to flash .img files, or to sideload via ADB.
d.chatten said:
I have read all of the info about unlocking and relocking the bootloader, but i have a question, if i was 100% stock with a locked bootloader and wanted to flash the latest factory image would i still need to enable developer options and enable allow oem unlock even if i was to run the commands below from fastboot mode.
fastboot oem unlock
fastboot flash bootloader bootloader-shamu-moto-apq8084-71.08.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash radio radio-shamu-d4.0-9625-02.95.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash cache cache.img
fastboot oem lock
fastboot reboot
The reason i ask is that you are not booting into android until the bootloader is relocked, so in theory the oem unlock option shouldn't have an effect in this scenario?
Click to expand...
Click to collapse
You really should boot into Android before re-locking. This is where people have run into trouble. Following the re-lock guide is recommended.
Thanks for your reply, much appreciated, but my question wasn't about the need to unlock the bootloader ot flash, my question was, do i still need to enable "allow oem unlock" in developer options if i use the commands listed above when flashing the latest factory image on a Nexus 6 when 100% stock a locked bootloader, this in theory should work as you are not booting into android until the bootloader is relocked?
The main thing to remember, is to remove all security locks and your Google account beforehand. With this device, when fastboot oem lock is issued, the device is wiped again. This is why it is important to be sure you have a working OS before locking. :good:
Evolution_Freak said:
You really should boot into Android before re-locking. This is where people have run into trouble. Following the re-lock guide is recommended.
Click to expand...
Click to collapse
Thanks for that, i will follow the guide, so this option would effect things regardless?
d.chatten said:
Thanks for your reply, much appreciated, but my question wasn't about the need to unlock the bootloader ot flash, my question was, do i still need to enable "allow oem unlock" in developer options if i use the commands listed above when flashing the latest factory image on a Nexus 6 when 100% stock a locked bootloader, this in theory should work as you are not booting into android until the bootloader is relocked?
Click to expand...
Click to collapse
I understand completely. In a sense, you have outlined the process that is shown on the factory image page, by Google. This information needs to be updated as it does not reflect the security changes made in 5.1. I wouldn't risk your device for a few extra minutes needed to verify the OS boots.
---------- Post added at 07:24 AM ---------- Previous post was at 07:20 AM ----------
d.chatten said:
Thanks for that, i will follow the guide, so this option would effect things regardless?
Click to expand...
Click to collapse
I can confirm that several people have bricked by trying to do it the way you were thinking of trying. If for any reason, during the flashing process something didn't flash just right, and a bootloop occurred, you wouldn't be able to fix it with a locked bootloader. That's why it's best to ensure your OS boots before locking.
Evolution_Freak said:
I understand completely. In a sense, you have outlined the process that is shown on the factory image page, by Google. This information needs to be updated as it does not reflect the security changes made in 5.1. I wouldn't risk your device for a few extra minutes needed to verify the OS boots.
---------- Post added at 07:24 AM ---------- Previous post was at 07:20 AM ----------
I can confirm that several people have bricked by trying to do it the way you were thinking of trying. If for any reason, during the flashing process something didn't flash just right, and a bootloop occurred, you wouldn't be able to fix it with a locked bootloader. That's why it's best to ensure your OS boots before locking.
Click to expand...
Click to collapse
Thank you for clarification, much appreciated, the process is still easy enough even with these extra steps.

WIFI mod stock rom!

Heres how to get wifi on the stock rom without root.
Type these commands! and make sure you have fastboot setup on your computer.
Code:
fastboot oem unlock (Unlocks bootloader if your not already unlocked if your just skip this)and now do fastboot flash bootloader WIFIGWR.img
And now you can go do
Code:
fastboot oem lock
if you want to relock your bootloader.
Now enjoy wifi !
Thread closed as member has been proven to supply damaging files

Help - Remove Root, Restore to Original (VTR-L29)

I have the P10 64gb Dual Sim version, VTR-L29C63B162
I have rooted the phone, unlocked the boot loader and upgrated to VTR-L29C63B162
After searching the forums and the web I can't find a successful or comprehensive way to Revert all the changes, can someone provide thier help please?
- Relock bootloader
- Remove root
- flash stock recovery and OS
Thanks:good:
Hey Mate,
First: i never did locked the bootloader again, but i readed something on the internet about it. I also not have a Guide, but maybe i can give you some hints about it.
Flashing Stock Recovery and System via. Bootloader
If you want to flash back the Stock Recvovery and System you have to download the original Firmeware (Update.app from Huawei).
After you got the Update.app (should be like 2 GB) you have to extract the Update.APP to get BOOT.IMG, SYSTEM.IMG, RECOVERY.IMG (plus CUST.IMG).
To extract the UPDATE.APP you can use this tool (HUAWEIUPDATEEXTRACTOR) from worstenbrood:
https://forum.xda-developers.com/showthread.php?t=2433454
Extract the BOOT.IMG, SYSTEM.IMG, RECOVERY.IMG (plus CUST.IMG) to your ADB and Fastboot Platforms Tool.
after that you can flash the Images in the fastboot mode.
I think (i am not 100% sure about it) to flash the Images in this sequence (control that on the internet):
fastboot flash boot BOOT.IMG
fastboot flash recovery RECOVERY.IMG
fastboot flash system SYSTEM.IMG
(fastboot flash cust CUST.IMG)
after that your phone should boot like your unboxing it the first time.
Locking Bootloader again via fastboot
I think you can relock your Bootloader again with one of these fastboot commands:
fastboot oem lock YourCode
fastboot flashing lock
fastboot oem relock YourCode
if one of this is working you can boot your devices (fastboot reboot).
I never tried this and dont know exactly whats your goal (relock, lock whatever) but maybe this is another hint:
https://forum.xda-developers.com/mate-9/how-to/guide-rebrand-chinese-al00-mate9-to-t3554656/page57
Kind Regards
@neuenburg Thanks!
I will try this and let you know if it works for me
It worked , although I had to:
- restore factory settings
- connect device to pc via usb
- click on build to enable developer mode
- enable USB debugging in developer mode
- unplug device, replug and authorise usb debugging for the pc
Then I did this via adb cmd
- adb reboot-bootloader
- fastboot flash boot BOOT.IMG
- fastboot flash recovery RECOVERY.IMG
- fastboot flash system SYSTEM.IMG
- fastboot reboot
Go back into fastboot after device restart
- fastboot oem relock [unlockcodexxxxxxxxx]
dev_don said:
It worked , although I had to:
- restore factory settings
- connect device to pc via usb
- click on build to enable developer mode
- enable USB debugging in developer mode
- unplug device, replug and authorise usb debugging for the pc
Then I did this via adb cmd
- adb reboot-bootloader
- fastboot flash boot BOOT.IMG
- fastboot flash recovery RECOVERY.IMG
- fastboot flash system SYSTEM.IMG
- fastboot reboot
Go back into fastboot after device restart
- fastboot oem relock [unlockcodexxxxxxxxx]
Click to expand...
Click to collapse
:highfive: :good:
Thanks a lot, works great!
When relocking the bootloader does the phone then say *bootloader relocked" or anything like that or is it back to standard as if first unboxed?
Also, on a side note, is there a way to use banking apps with the bootloader unlocked/rooted etc? On my old phone Barclays wouldn't work with the root but it looked like Magisk etc were working on ways top get past this.

Help me , my phone is corrupt data, not boot!

My phone can't boot . The display is " your device is corupt . It cant be trusted and will not boot after I root and install twrp, gapps , i have used the command "fastboot oem lock" "fastboot flashing lock" "fastboot oem relock" .
i can't unlock bootloader ( flasing unlock not allow )
my bootloader is lock
plz help me !
nil3m1 said:
My phone can't boot . The display is " your device is corupt . It cant be trusted and will not boot after I root and install twrp, gapps , i have used the command "fastboot oem lock" "fastboot flashing lock" "fastboot oem relock" .
i can't unlock bootloader ( flasing unlock not allow )
my bootloader is lock
plz help me !
Click to expand...
Click to collapse
You need to enable bootloader unlock through setting in developer option enable oem unlock, and then you can use the ' fastboot flashing unlock'
You can't root with locked bootloader as it will show an error message your device is corrupt,
At you situation now you should flash stock boot and then the phone will open and then you go to settings as i mentioned to enable oem unlock through developer option in settings
Fastboot unlock bootloader with long command, you will see it unlock temporarily till reboot, flash boot.img and recovery.img, reboot into recovery wipe data & cache, utilize USB otg to reinstall rom.
em902566 said:
You need to enable bootloader unlock through setting in developer option enable oem unlock, and then you can use the ' fastboot flashing unlock'
You can't root with locked bootloader as it will show an error message your device is corrupt,
At you situation now you should flash stock boot and then the phone will open and then you go to settings as i mentioned to enable oem unlock through developer option in settings
Click to expand...
Click to collapse
-I cannot boot into os to enable oem unlock ,I can't go into recovery
Hope you will help me,thank you
SuperDroidMe said:
Fastboot unlock bootloader with long command, you will see it unlock temporarily till reboot, flash boot.img and recovery.img, reboot into recovery wipe data & cache, utilize USB otg to reinstall rom.
Click to expand...
Click to collapse
I used the command "fastboot oem nubia_unlock NUBIA_NX629J" ,"fastboot flashing unlock" , command but it reported an error "flashing unlock not allow"
Please help me with what I should do. thank you
nil3m1 said:
I used the command "fastboot oem nubia_unlock NUBIA_NX629J" ,"fastboot flashing unlock" , command but it reported an error "flashing unlock not allow"
Please help me with what I should do. thank you
Click to expand...
Click to collapse
Okay now you have to download the stock cn version from official site, and extract the zip file , now olyou have to flash the stock boot image and recovery image
,Fastboot devices
,Fastboot fastboot oem nubia_unlock NUBIA_NX629J
,Fastboot flash boot boot.img
,Fastboot flash recovery recovery.img
,Fastboot reboot
And wait let it reboot at least 3 time
And it will work just fine ?
em902566 said:
Okay now you have to download the stock cn version from official site, and extract the zip file , now olyou have to flash the stock boot image and recovery image
,Fastboot devices
,Fastboot fastboot oem nubia_unlock NUBIA_NX629J
,Fastboot flash boot boot.img
,Fastboot flash recovery recovery.img
,Fastboot reboot
And wait let it reboot at least 3 time
And it will work just fine
Click to expand...
Click to collapse
it dont work . my device not boot with report " your device is corrupt .It can not be trusted and wil not boot " .
update?
nil3m1 said:
it dont work . my device not boot with report " your device is corrupt .It can not be trusted and wil not boot " .
Click to expand...
Click to collapse
did you fixed it? we have same situation.
godric12 said:
did you fixed it? we have same situation.
Click to expand...
Click to collapse
Use "Fastboot fastboot oem nubia_unlock NUBIA_NX629J" to unlock the bootloader and flash the correct boot img. Or you can go to stock recovery flash the whole system. It is caused by an unsigned boot file.
JerryYin said:
Use "Fastboot fastboot oem nubia_unlock NUBIA_NX629J" to unlock the bootloader and flash the correct boot img. Or you can go to stock recovery flash the whole system. It is caused by an unsigned boot file.
Click to expand...
Click to collapse
I have this error when installing the rom, what should I do to fix it?
mos98p said:
I have this error when installing the rom, what should I do to fix it?
Click to expand...
Click to collapse
Maybe you can check other post and find the solutions, there are someone already fix the phone with same issue

Flashing is not allowed in lock state (nubia_nx629j)

Can somebody help me?
I unlock the bootloader recently via adb fastboot.
My problem is, when i want to instal twrp in my phone, it failed. It says "FLASHING IS NOT ALLOWED IN LOCK STATE'
Why was that?
Appreciate if anyone can guide me.
kyevaldez said:
Can somebody help me?
I unlock the bootloader recently via adb fastboot.
My problem is, when i want to instal twrp in my phone, it failed. It says "FLASHING IS NOT ALLOWED IN LOCK STATE'
Why was that?
Appreciate if anyone can guide me.
Click to expand...
Click to collapse
Hi.
Try this:
Code:
fastboot oem nubia_unlock NUBIA_NX629J
and
Code:
fastboot flash recovery recoveryname.img
, where you replace recoveryname.img with the name of your recovery image.
If you haven't previously unlocked your bootloader, the first command will delete your data, so backup... If the bootloader was previously unlocked, it won't wipe anything.

Categories

Resources