[Moto Z Guides, News, & Discussion] saifprvz:
Hi All,

NOTE: I am not responsible for anything that might happen to your device while doing this. (it most likely is not).

I have made this tutorial just to help other people I noticed there was no step by step tutorial on how to Relock the bootloader on moto z xt-1650-03 so I have decided to make a guide explaining How to Relock the bootloader on moto z xt-1650-03. Submit a Thanks to lesbianu, he helped me out figuring this...

1 - Download GRIFFIN_OPLS27.76-51-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip Rom ( I used https://androidfilehost.com/?fid=5862345805528054929 )

2 - Download the Android SDK Platform-Tools ( I used the latest from Google: https://developer.android.com/studio...platform-tools )

3 - Extract the Android SDK Platform-Tools and within that same folder also extract the ROM

4 – On the address bar. Type CMD and Hit Enter.

5 – To Check device connectivity. Type “adb devices”

6 – Boot into bootloader mode. type “adb reboot bootloader”

7 – Ones you are into bootloader mode. Check the Device connectivity Again. Type “fastboot devices”

As soon as you press enter key, you’ll see a message saying ‘List of devices attached’ along with some random numbers. This will confirm that your Moto Z has properly connected to your computer.

8 - Run the first set of commands i.e.

fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp adspso.bin
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 system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash system system.img_sparsechunk.11
fastboot flash system system.img_sparsechunk.12
fastboot flash system system.img_sparsechunk.13
fastboot flash system system.img_sparsechunk.14
fastboot flash oem oem.img
fastboot erase carrier
fastboot erase cache
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear

9 – Once the Flashing is Done. Directly press the power button to boot the device. let the device boots up completely.

10 – complete the first time phone configuration process. (Make sure Internet is working on your device)

11 - after completing the setup go to the setting - system - about phone - tap on the built no several time to unlock the developer options.

12 – Go to the developer option and click on "OEM unlocking" and “Allow USB debugging”

13 – Don’t reboot your Device. And Connect your Phone to PC.

14 - Again open the same folder, where you extracted your ROM and SDK tools and within that same folder again open a command prompet and type “ adb reboot bootloader “

ones again you will come back to the bootloader mode.

15 - after the phone is back to bootloader mode, run the second set of commands I.e.

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 system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash system system.img_sparsechunk.11
fastboot flash system system.img_sparsechunk.12
fastboot flash system system.img_sparsechunk.13
fastboot flash system system.img_sparsechunk.14
fastboot flash boot boot.img
fastboot oem lock

14 – After the last set of commands if everything goes well then Congrats you just relocked your Bootloader... Successfully....