[Moto G5 Plus Guides, News, & Discussion] aSaro12:
Hi guys, finally I succed in relock my XT1685 Bootloader on RETEU, so I will guide you to relock your bootloader.

DISCLAIMER:

I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed.
YOU are choosing to make these modifications,
and if you point the finger at me for messing up your device, I will laugh at you.
and I am also not responsible for anything happens as a result of flashing these files

What you need :

1- Motorola drivers :

64-bit

32-bit

2- Minimal ADB and Fastboot:

Minimal ADB and Fastboot

3- Stock Fastboot flashable official firmware.

Here is the donwload of NPNS25.133-37-11 it should be perfect for lock BL for all RETEU users:

Mirror 1 (MEGA)

Mirror 2 (GoogleDrive)

ATTENTION:

You will need the appropriate version of the firmware according to your device version

You need the same or later version of firmware that you have when you unlock your BL

Example: If when you unlock your bl you was on NPNS25.137-33-11 you need the same (or later) complete firmware because you can't downgrade.

Now let's start with the guide.

1- Install Minimal ADB and Fastboot.

2- Extract stock firmware to any folder.

3- Now copy all the stuff that is in Minimal ADB and Fastboot folder in the folder where you extract the firmware.

4- Connect your device in fastboot mode (power off the device and while you press VOL down button insert the USB cable).

5- Open ADB and Fastboot terminal (press SHIFT+right click on the folder where you extract the firmware and select "open command window here").

6- Now type in Fastboot terminal "fastboot devices" (without commas) to be sure that your device is recognized.

7- Type these command one by one on terminal

fastboot oem lock
fastboot oem lock
fastboot flash oem oem.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 boot boot.img
fastboot oem lock

Now your device will restart and your BL will be locked.

Now for be sure reflash all the complete firmware repeat the point from 5 to 7 but insert this code now

fastboot oem fb_mode_set
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 dsp adspso.bin
fastboot flash oem oem.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 modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot oem fb_mode_clear
fastboot reboot

Now you will be able to receive the OTA update with your locked BL.

[IMG="Here the result that you have to obtain"]http://i66.tinypic.com/23leedx.jpg[/IMG]

Thanks to [MENTION=5486547]Nirbhay2[/MENTION]