Can't seem to lock my bootloader

easyrider77

Senior Member
Dec 3, 2009
793
169
0
Firstly I will say this before I get a slew of why's and how come's that you are locking the bootloader. Personally it shouldn't matter "why" but I guess that'ss me. Anyways, I am locking the bootloader because I want to give the phone to my daughter, and trust me when I say she is nowhere tech savvy, so giving her a phone with an unlocked bootloader/rooted phone is like giving a 1 yr old a loaded gun, not a good idea. She also uses a bank app, and currently cannot use it, due to the bootloader being unlocked. This is the main reason I want to lock the bootloader.

Now that we have that out of the way....my specs:
Moto g5s plus
XT1806
32gb/3gb
US variant

I have tried fastboot command "fastboot oem lock", I have also added this to a flash batch file no luck.
I have searched online at some of the how-to's and tried them, such as flashing this:
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
But have not had luck with that either.

Currently I am on stock with root, nothing custom at all.
The current build I am on is NPSS26.116-45-14 and I got this from an OTA I recieved, because as far as I am aware of there is no 14 build out there for download. The latest one I found if I recall right is NPSS26.116-45-12, and you have to OTA up to 14 from that one.

So I am curious why I cannot for whatever reason lock my bootloader at all no matter what I do. Do I have the wrong variant of zip file.....ie: xt1806 is the 45 correct?
It's been a bit but if I recall right I did something one time to get it locked, it notified me that it had locked, but when I rebooted the bootloader message was still present.

So, given all that I am open for ideas.
 
Last edited:

____Mdd

Senior Member
Jul 26, 2016
721
330
63
24
45-12 is April security patch for US, that's right zip.. ( update to 45-14will be June's ? )

Did you check system sparschunk in zip up to 6 or 7 ?
Flash all system sparschunk, here you listed only up to 4..

Also check Command Prompt result, when command ends..
 

easyrider77

Senior Member
Dec 3, 2009
793
169
0
Your are right, there are 6, that was my bad.

I did however find later about a method I had not tried yet.
I was reading on Lenovo forums, a guy with the exact same issue and nothing worked until he tried this.
When you issue the oem lock command, and a message something like you need a verified stock rom, or something ( I don't recall right now what it said exactly) but once you see this message, proceed with flashing the above commands. After he did that he said it locked just fine.

I was always under the impression that was a generic message or something and always hit out of it and could never move on because I thought I had a wrong zip file I was flashing.

The "one" thing I did not try, so I will try that and report back with my findings and let you know how it went.
 

easyrider77

Senior Member
Dec 3, 2009
793
169
0
I found out why I can't lock the bootloader now.
With the g5s plus, it's a must that you have the latest firmware to lock the bootloader.
Scenario:
You updated to firmware B, which is the absolute newest there is, but only have firmware A zip file. In this scenario firmware A is not the newest, and since you updated to B the latest, you now need B firmware in a zip file to flash it, because flashing firmware A will no longer work now.
Don't get this confused with flashing will not work, it works fine with ANY flash, ANY firmware, only difference is you cannot lock the bootloader unless you have the latest firmware.
Since I do not have the latest firmware zip file, I cannot simply flash it and lock the bootloader, because it's looking for B not A.
If no one ever releases a B firmware, the bootloader is not lockable indefinitely.
Sad that motorola did this without giving us the latest firmware to download.
I am growing a great disdain for Lenovo company.

Anyways, there you have it, bootloader cannot be locked except in the case someone releases the latest zip.