Related
BISSMILLAH
Hi, this guide will help you to relock your bootloader, in a few commands.
We know that it's was a tabu on Moto G3 environment, but a few times a go.
Requirement
OSPREY with considerable charge
PC/LAPTOP running Windows or Ubuntu (or other Linux Based OS also)
Only For Windows Users
Drivers: http://bit.ly/1WMv2L1
Only For Linux Users
Open TERMINAL and run the following:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install android-tools-adb android-tools-fastboot
Both Of Users
Official Images: http://bit.ly/1GfUqwr
Fastboot Files: http://bit.ly/1OncC0H
BEFORE PROCEED:
Relocking your bootloader means that you will no longer be a"tweaker" no TWRP no ROOT, no any other mods.
And its required to full flash the official images, so say goodbye for Custom ROMs.
In this process you'll lose all you data stored on internal storage, including all accounts, musics, videos, pic, installed apps. So, it's a good time to BackUp your important files.
After lock, on bootloader screen you should see:
Device is LOCKED. Status Code: 2
Software status: Modified
(For Now) We Cant Change to 0 and official, but's locked.
The bootloader warning messege will appear, after all procedure change the official logo.bin with modified.
You'll need to factory reset your device before.
Ubuntu users will need permission to use fastboot commands, so run su before.
The system.img_sparsechunk files are variable, so make sure you have flashed sequentially until the last.
FQA:
Q: If I relock my bootloader, will I have my warranty alive again?
A: No.
Q: Can i install TWRP or Root after lock my device's bootloader?
A: No, maybe with some unknown tricks by me.
Q: How to (re)unlock?
A: In order to unlock your devices again you need to allow it on developer settings and also you'll need your bootloader code.
for security reason don't expose these information, turn off OEM unlock on developer setting and hide your unlock code given by Moto.
PROCEED:
Download required files, and place on easy-find-place.
Extract both of files and the images files on [adb-fastboot-latest_win_linux] folder.
And open CMD or TERMINAL on this folder
Connect your device to via USB CABLE
Test it, if everything is fine by running this command:
fastboot devices
You'll see [SERIAL NUMBER] fastboot
Meaning everything is OK.
Now just run this sequence of commands:
fastboot oem lock begin
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot oem lock
fastboot reboot
Now Your Bootloader will locked Successfully
All Credit Goes To:
@lost101
@mobs84
Sorry for my mistakes
And I hope this helps someone!
ExaHamza said:
FQA:
Q: If I relock my bootloader, will I have my warranty alive again?
A: I don't know, probably no. Even after relocking your bootloader, it's possible to see if the smartphone was previously unlocked or not.
Click to expand...
Click to collapse
It will not allow you regain your warranty... Get the code, lose your warranty, the actual state of the device being locked, unlocked, modified or stock is not relevant.
From Moto's Legal Terms and Conditions
5. The following applies to all devices, except for Developer Edition devices: Obtaining an unlock code voids all warranties. Once you get the unlock code, your device is no longer covered by the Motorola warranty, or any other warranty provided with the device. Neither Motorola, nor your wireless carrier shall have any duty to provide warranty or customer support for unlocked devices.
Click to expand...
Click to collapse
(5) THE FOLLOWING APPLIES TO ALL UNLOCKED DEVICES EXCEPT FOR DEVELOPER EDITION DEVICES, BY OBTAINING THE UNLOCK CODE FOR THIS DEVICE, IRRESPECTIVE OF WHETHER THE DEVICE’S BOOTLOADER IS SUBSEQUENTLY UNLOCKED OR ITS SOFTWARE OR OPERATING SYSTEM IS MODIFIED, USER AGREES TO WAIVE AND VOID ALL WARRANTIES THAT MAY HAVE BEEN PROVIDED BY MOTOROLA OR YOUR WIRELESS CARRIER, BOTH EXPRESS AND IMPLIED, INCLUDING ANY WRITTEN WARRANTY THAT ACCOMPANIED THE DEVICE AT THE TIME OF PURCHASE OR DELIVERY, AND AGREES THAT ANY RIGHTS OR REMEDIES PROVIDED BY SUCH A WARRANTY ARE NULL AND VOID. NEITHER MOTOROLA, NOR YOUR WIRELESS CARRIER, MAKES ANY WARRANTIES OF ANY KIND, AND MOTOROLA AND YOUR WIRELESS CARRIER DISCLAIM ALL WARRANTIES OF EVERY KIND, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE IN CONNECTION WITH AN UNLOCKED DEVICE. USER ACKNOWLEDGES AND AGREES THAT ALL SUCH WARRANTIES ARE HEREBY EXCLUDED AND THAT ALL UNLOCKED DEVICES ARE PROVIDED "AS IS," WITH NO WARRANTY OF ANY KIND;
Click to expand...
Click to collapse
acejavelin said:
It will not allow you regain your warranty... Get the code, lose your warranty, the actual state of the device being locked, unlocked, modified or stock is not relevant.
From Moto's Legal Terms and Conditions
Click to expand...
Click to collapse
Thank you, for clarifying us!!
ExaHamza said:
Thank you, for clarifying us!!
Click to expand...
Click to collapse
Many people think this is the key to getting their warranty back... I didn't want anyone to be misinformed.
Sent from my MotoG3 using Tapatalk
acejavelin said:
Many people think this is the key to getting their warranty back... I didn't want anyone to be misinformed.
Sent from my MotoG3 using Tapatalk
Click to expand...
Click to collapse
Miscommunication of people, probably!
acejavelin said:
Many people think this is the key to getting their warranty back... I didn't want anyone to be misinformed.
Sent from my MotoG3 using Tapatalk
Click to expand...
Click to collapse
you're completely in the right, but sometimes local retailers only look at the bootloader status to check the warranty. so in theory you can gain your warranty back.
HelpMeruth said:
you're completely in the right, but sometimes local retailers only look at the bootloader status to check the warranty. so in theory you can gain your warranty back.
Click to expand...
Click to collapse
No, you're not gaining your warranty back, you are being deceptive and in most countries breaking the law as well.
Remember that in most EU countries the bootloader lock/unlock status is not relevant though, due to local laws in most countries there. (I noticed you were from the Netherlands)
Sent from my MotoG3 using Tapatalk
My question is: in bootloader, after the commands, the device status is locked, software status is official and status code is 0? That's the information in a never-unlocked bootloader.
And the unlocked bootloader mensage desapear?
In my case I have device LOCKED software status Modified and status code is 2 and the warning message didn't disappeared...
I don't know with your details...
Enviado de meu MotoG3 usando Tapatalk
coolizard said:
My question is: in bootloader, after the commands, the device status is locked, software status is official and status code is 0? That's the information in a never-unlocked bootloader.
And the unlocked bootloader mensage desapear?
Click to expand...
Click to collapse
but if you're seeing warning message you can flash different logo.bin
My guide is always on update, please check new information.
I have a query. If someone locks his bootloader using this, and wants to unlock again, will he need the code that he got from motorola again or just fastboot oem unlock will open it up? This is my first moto so I don't know the details. Any ideas mate?
Broadcasted from Zeta Reticuli
Gravemind2015 said:
I have a query. If someone locks his bootloader using this, and wants to unlock again, will he need the code that he got from motorola again or just fastboot oem unlock will open it up? This is my first moto so I don't know the details. Any ideas mate?
Broadcasted from Zeta Reticuli
Click to expand...
Click to collapse
Read carefully the guide, on FAQ section, I have explained that!
@ExaHamza - It is impossible to permanently lock Bootloader once it has been unlocked. I don't know how else to say this.
fastboot oem lock is not a miracle cure. It can simply be undone by anyone with fastboot access to your handset. Once you have unlocked the Bootloader, anyone can flash TWRP and has access to every partition on your phone. It's impossible for you to stop this. FRP partition can be wiped, so FRP does not exist either. FRP can only function as designed if the handset has never had it's Bootloader unlocked.
On every possibility you're speaking I have tried, and no way to install TWRP after relocking. I'm not saying in theory, I have this device, and I have tested. So if you still able to install TWRP after locking the bootloader, believe me that's issue of your smartphone!
lost101 said:
@ExaHamza - It is impossible to permanently lock Bootloader once it has been unlocked. I don't know how else to say this.
fastboot oem lock is not a miracle cure. It can simply be undone by anyone with fastboot access to your handset. Once you have unlocked the Bootloader, anyone can flash TWRP and has access to every partition on your phone. It's impossible for you to stop this. FRP partition can be wiped, so FRP does not exist either. FRP can only function as designed if the handset has never had it's Bootloader unlocked.
Click to expand...
Click to collapse
[emoji17]
ExaHamza said:
On every possibility you're speaking I have tried, and no way to install TWRP after relocking. I'm not saying in theory, I have this device, and I have tested. So if you still able to install TWRP after locking the bootloader, believe me that's issue of your smartphone!
Click to expand...
Click to collapse
ExaHamza said:
On every possibility you're speaking I have tried, and no way to install TWRP after relocking. I'm not saying in theory, I have this device, and I have tested. So if you still able to install TWRP after locking the bootloader, believe me that's issue of your smartphone!
Click to expand...
Click to collapse
What happens if you type fastboot oem unlock and then try to flash TWRP?
lost101 said:
What happens if you type fastboot oem unlock and then try to flash TWRP?
Click to expand...
Click to collapse
See the screenshot
don't worry about nexus.... is just a folder that i stored the file.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
@ExaHamza - Over the years people have posted problems with Moto G (1st Gen) and have mentioned they have relocked the Bootloader. These experiences have given me the impression that it's something that can be undone easily. This is why I believed fastboot oem unlock would be enough.
After typing: fastboot oem lock begin - is it possible to flash TWRP?
lost101 said:
@ExaHamza - Over the years people have posted problems with Moto G (1st Gen) and have mentioned they have relocked the Bootloader. These experiences have given me the impression that it's something that can be undone easily. This is why I believed fastboot oem unlock would be enough.
After typing: fastboot oem lock begin - is it possible to flash TWRP?
Click to expand...
Click to collapse
I showed in screenshot, even if I try fastboot oem lock begin will not work, I think that they have fixed this issue. Once locked no longer be able to flash TWRP unless you have reunlock.
I just factory reset my Moto G4 and I don't intend to root or have a custom recovery. Can I lock my bootloader using fasboot oem lock? If I want to unlock my bootloader again, will I be able to use the unlock code Motorola sent to my email when I first unlocked the phone?
Thanks.
stkpxl said:
Yes to all of those. That code is unique to your phone so it will always work. In my experience though, it always asked to flash the stock firmware when you start the OEM lock procedure. Not sure if it does it no matter what, or only if you've made modifications. Either way, it's good to have a stock firmware file on hand when you do it.
Click to expand...
Click to collapse
Yeah well I'm having another problem, can't find the XT1622 reteu stock firmware...
I see plenty of guides on how to unlock the bootloader which as I understand voids the warranty. Is there any way to relock the bootloader if I need to? Maybe someone could link me to a guide?
I've had bad experiences with dodgy solder in 3 LG G4 handsets so I sort of see the value in a manufacturer's warranty these days.
In fastboot
"Fastboot oem relock YourCode"
Fastboot relock still show that the phone was unlocked before but to revert to original state you have to flash stock firmware using this guide https://forum.xda-developers.com/mate-9/how-to/guide-rebrand-chinese-al00-mate9-to-t3554656/page57
This will lock the bootloader without any trace
Many many thanks.
gm007 said:
Fastboot relock still show that the phone was unlocked before but to revert to original state you have to flash stock firmware using this guide https://forum.xda-developers.com/mate-9/how-to/guide-rebrand-chinese-al00-mate9-to-t3554656/page57
This will lock the bootloader without any trace
Click to expand...
Click to collapse
Hi can you write me step by step how lock again bootloader becuase i read this link and i dont know how. Please.
I want debrand my P10 to clear soft Huawei and again lock boot loader to have full warranty. please help me
gm007 said:
Fastboot relock still show that the phone was unlocked before but to revert to original state you have to flash stock firmware using this guide https://forum.xda-developers.com/mate-9/how-to/guide-rebrand-chinese-al00-mate9-to-t3554656/page57
This will lock the bootloader without any trace
Click to expand...
Click to collapse
Is the adb relock bootloader "Code" command connected with a factory reset? Do I keep my data?
Hello Guys,
I am trying to relock the bootloader of MiA1 but if I type command- "fastboot oem unlock" then my mobile cause stuck on bootloop. The same thing also happens with AIO Tool.
So please help me if anyone knows how to relock bootloader again? And also let me know whether unlocking bootloader affect warranty or not?
I know one method to lock bootloader that is, you can install stock ROM by mi flash tool but I need to install magisk and that require to unlock bootloader and if I unlocked once then unable to relock again.
The command in fastboot is fastboot oem lock
Have you done some modifications to the stock boot.img file, such as using magisk or something else?
goofball2k said:
The command in fastboot is fastboot oem lock
Have you done some modifications to the stock boot.img file, such as using magisk or something else?
Click to expand...
Click to collapse
yes
Dipesh17 said:
yes
Click to expand...
Click to collapse
Simply use MIflashtool bro. Flash a nougat fastboot rom via MIFlashtool. Choose option to lock and all
Rajeev said:
Simply use MIflashtool bro. Flash a nougat fastboot rom via MIFlashtool. Choose option to lock and all
Click to expand...
Click to collapse
Bro I need to install Magisk and Magisk need twrp and twrp need to unlock bootloader.
Now once I unlocked bootloader then I am unable to relock bootloader.
I tried miflashtool and fastboot oem lock command but none of them works for me.
What's wrong here I didn't understand, help me please
Dipesh17 said:
Bro I need to install Magisk and Magisk need twrp and twrp need to unlock bootloader.
Now once I unlocked bootloader then I am unable to relock bootloader.
I tried miflashtool and fastboot oem lock command but none of them works for me.
What's wrong here I didn't understand, help me please
Click to expand...
Click to collapse
U did something wrong bro. MI Flashtool can lock bootloader easily with a full firmware flash
Dipesh17 said:
Bro I need to install Magisk and Magisk need twrp and twrp need to unlock bootloader.
Now once I unlocked bootloader then I am unable to relock bootloader.
I tried miflashtool and fastboot oem lock command but none of them works for me.
What's wrong here I didn't understand, help me please
Click to expand...
Click to collapse
Not sure if I understood correctly, but it seems that you want to have Magisk + TWRP + locked bootloader. That is simply not possible. For locked bootloader you must have stock ROM (no root, in fact absolutely no modification).
Dipesh17 said:
Bro I need to install Magisk and Magisk need twrp and twrp need to unlock bootloader.
Now once I unlocked bootloader then I am unable to relock bootloader.
I tried miflashtool and fastboot oem lock command but none of them works for me.
What's wrong here I didn't understand, help me please
Click to expand...
Click to collapse
Bootloader lock is like a door.
If its open you can put nice things like magisk, root, modification like custom rom and kernel.
Now if you try to relock it it won't lock until and unless you take all the modifications out.
Hope this helps.
If you need technical information just let me know
flash stock boot.img and then probably you will be able to lock bootloader. I have done the same way.
mahla13 said:
flash stock boot.img and then probably you will be able to lock bootloader. I have done the same way.
Click to expand...
Click to collapse
With Nougat i flashed stock image selecting "save user data" and i had bootloader relocked without losing data. Root and twrp were gone. I don't know if it is so with Oreo.
So you need TWRP and Magisk root but want a locked bootloader? That just isn't a possible combination.
To install TWRP, you need unlocked bootloader.
If you need root and TWRP, you need to leave the bootloader unlocked.
You can't have both worlds bro. If you unlock and install Magisk and other stuff, you simply can't relock bootloader. That's why you get bootloop
alkesh95 said:
Bootloader lock is like a door.
If its open you can put nice things like magisk, root, modification like custom rom and kernel.
Now if you try to relock it it won't lock until and unless you take all the modifications out.
Hope this helps.
If you need technical information just let me know
Click to expand...
Click to collapse
Thanks man I'll try it on nougat. Please tell me one more thing, unlocking bootloader cause lose warranty or not?
Dipesh17 said:
Thanks man I'll try it on nougat. Please tell me one more thing, unlocking bootloader cause lose warranty or not?
Click to expand...
Click to collapse
Some people might say yes some might say no.
It depends on manufacturer.
OEMs don't explicitly say that it won't void your warranty.
So its grey area.
I am going to email Xiaomi about this and update this thread when i get reply.
Had various experiences with unlocked bootloader. So better to follow safe path.
Edit: Called xiaomi helpline two times.
1st said it will void warranty
2nd said it won't.
Emailed them.
I chatted with a support representative and they said that unlocking bootloader won't void the warranty
nicolasmart said:
I chatted with a support representative and they said that unlocking bootloader won't void the warranty
Click to expand...
Click to collapse
That's just what he said it to you. I got two responses.
Support representatives aren't authorised to send you sms or mail.
If there's an issue with your device (Unlocked BL) and you took it to service center. They might say out of warranty due to bootloader unlocking and what would be your reply to that?
Support representatives said it won't void warranty.
You can't back it up with anything since you dont have any proof of that conversation.
So unless it is written somewhere by xiaomi. Words are just words.
Is it possible to unlock the bootloader, root, make some minor modifications (activation of camera api, copying fm radio apk to system folder, etc), unroot, and finally relock (flashing stock boot.img before, of course) ?
I want to have it unrooted because of bank payments, banks apps and streaming TV apps, but I would like to have proper camera and fm radio... Is it possible??
erunamor said:
Is it possible to unlock the bootloader, root, make some minor modifications (activation of camera api, copying fm radio apk to system folder, etc), unroot, and finally relock (flashing stock boot.img before, of course) ?
I want to have it unrooted because of bank payments, banks apps and streaming TV apps, but I would like to have proper camera and fm radio... Is it possible??
Click to expand...
Click to collapse
Short answer:no.
Long answer: locked bootloader must have stock system and boot partition. Stock boot image will boot only unmodified system partition. However you can have bank and streaming apps with Magisk - use systemless modifications and magisk hide feature.
Lock bootloader after uninstalling Magisk in Mi A1
Thank you for information about Mi Flash Tool but I wanted to ask if it is possible to relock boot loader in Mi A1 after uninstalling Magisk by fastboot commands ?
I haven't tried locking again ,but I wanted to relock again so...
Why oem unlocking appears grey, now why is that am not able to install magisk
alkesh95 said:
Some people might say yes some might say no.
It depends on manufacturer.
OEMs don't explicitly say that it won't void your warranty.
So its grey area.
I am going to email Xiaomi about this and update this thread when i get reply.
Had various experiences with unlocked bootloader. So better to follow safe path.
Edit: Called xiaomi helpline two times.
1st said it will void warranty
2nd said it won't.
Emailed them.[/QUOTE
How to unlock oem unlock,
It appears grey
I unlocked mi account
And installed pixel camera and later I changed the settings in camera from Nexus 6p to pixel and it got stuck, and I uninstalled the application, now oem unlocking appears grey, how to unlock oem
Below It appears bootloader is unlocked, but oem cant be unlocked
Click to expand...
Click to collapse
I am Not able to Unlock Bootloader of my moto g5 plus it is showing unlock data unavailable even my cid is 0x0000.
agarain5 said:
I am Not able to Unlock Bootloader of my moto g5 plus it is showing unlock data unavailable even my cid is 0x0000.
Click to expand...
Click to collapse
Try flashing bootloader and gpt codes then give it a try.(note:- use the latest firmware to flash the bootloader and gpt, so your device won't get bricked)
riyan65 said:
Try flashing bootloader and gpt codes then give it a try.(note:- use the latest firmware to flash the bootloader and gpt, so your device won't get bricked)
Click to expand...
Click to collapse
Please tell me the procedure
if you launch:
Code:
fastboot devices
Do you get something, if not you must setup your system
massima said:
if you launch:
Do you get something, if not you must setup your system
Click to expand...
Click to collapse
Got my device id
agarain5 said:
Got my device id
Click to expand...
Click to collapse
What have you tried to unlock your BL until now?
Was the BL unlocked before?
Sent from my Moto G5 Plus using XDA Labs
agarain5 said:
Please tell me the procedure
Click to expand...
Click to collapse
Connect your device to PC and enter the command in fastboot (assuming you are having stock firmware in fastboot file)
Fastboot flash bootloader bootloader.img
Fastboot flash partition gpt.bin
And then try unlocking your bootloader.
agarain5 said:
Got my device id
Click to expand...
Click to collapse
Good!!! Do you follow this guide??? it worked for me
Hi there, I have the variant XT1680, I'm trying to get the key to unlock the bootloader but then something happened, the page says:
"PUID Not found in your identifier, please try again." and then it says: "Your device does not qualify for bootloader unlocking." What should I do?
Fersho said:
Hi there, I have the variant XT1680, I'm trying to get the key to unlock the bootloader but then something happened, the page says:
"PUID Not found in your identifier, please try again." and then it says: "Your device does not qualify for bootloader unlocking." What should I do?
Click to expand...
Click to collapse
I think you get the serial code from your phone but you can't get the unlock code from Motorola, right??
Is it an amazon or similar edition?? i found this
Did you contact the Motorola support??