Re-lock bootloader moto G5 plus Brazilian variant

Search This thread

reuber

Senior Member
Feb 14, 2017
63
17
Aparecida de Goiânia
With the help of @Nirbhay2 I managed to block my bootloader, however what I wanted to share here is that to block the bootloader of the Brazilian variant it is necessary the last ROM with january security patch POTTER_NPNS25.137-92-4. Here you will find the guide to block your Brazilian device.

Have minimal ADB
Have Motorola drivers installed on your PC
Have the january patch ROM stock: https://rsdsecure-cloud.motorola.co...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

Extract the ROM to any folder and paste the minimal ADB along with the extracted ROM.

Open a command prompt in the folder and with the device in fastboot mode make a flash of the entire ROM stock on your device, to facilitate copying all the commands at once and paste at the command prompt and it will install automatic to your ROM , then do the same with the commands to re-block the bootloader and at the end of this process your device will be started with bootloader locked.

Commands to re-lock bootloader, do this after the full ROM flash

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

Command link for flash ROM stock
https://pastebin.com/ZWTaWuyr

We thank @Nirbhay2 for this great guide.
 
Last edited:
  • Like
Reactions: MarcosHenriqueHQM

pss34

Senior Member
Apr 17, 2015
209
56
Kyiv
Google Pixel 6
I have a problem relocking bootloader:
...
pseudo@m2 at 12:34:24 ~/tmp/potter/POTTER_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml> fastboot flash boot boot.img
(bootloader) has-slot:boot: not found
target reported max download size of 536870912 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.870s]
writing 'boot'...
(bootloader) Image signed with key bad key
OKAY [ 0.465s]
finished. total time: 1.335s
...
pseudo@m2 at 12:36:36 ~/tmp/potter/POTTER_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml> fastboot oem lock
...
(bootloader) Still require signed boot.img
OKAY [ 0.002s]
finished. total time: 0.002s

So, bootloader remains unlocked.


Moreover:
pseudo@m2 at 12:36:38 ~/tmp/potter/POTTER_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml> fastboot flash bootloader bootloader.img(bootloader) has-slot:bootloader: not found
target reported max download size of 536870912 bytes
sending 'bootloader' (5115 KB)...
OKAY [ 0.271s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Security version downgrade
(bootloader) Image tz failed validation
(bootloader) Preflash validation failed
(bootloader) Security version downgrade
(bootloader) Image devcfg failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'bootloader.default.xml'
FAILED (remote failure)
finished. total time: 0.551s

How can I flash original bootloader, boot and lock bootloader?
 
  • Like
Reactions: mnoguti

reuber

Senior Member
Feb 14, 2017
63
17
Aparecida de Goiânia
I have a problem relocking bootloader:
...
pseudo@m2 at 12:34:24 ~/tmp/potter/POTTER_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml> fastboot flash boot boot.img
(bootloader) has-slot:boot: not found
target reported max download size of 536870912 bytes
sending 'boot' (16384 KB)...
OKAY [ 0.870s]
writing 'boot'...
(bootloader) Image signed with key bad key
OKAY [ 0.465s]
finished. total time: 1.335s
...
pseudo@m2 at 12:36:36 ~/tmp/potter/POTTER_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml> fastboot oem lock
...
(bootloader) Still require signed boot.img
OKAY [ 0.002s]
finished. total time: 0.002s

So, bootloader remains unlocked.


Moreover:
pseudo@m2 at 12:36:38 ~/tmp/potter/POTTER_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml> fastboot flash bootloader bootloader.img(bootloader) has-slot:bootloader: not found
target reported max download size of 536870912 bytes
sending 'bootloader' (5115 KB)...
OKAY [ 0.271s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) Security version downgrade
(bootloader) Image tz failed validation
(bootloader) Preflash validation failed
(bootloader) Security version downgrade
(bootloader) Image devcfg failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'bootloader.default.xml'
FAILED (remote failure)
finished. total time: 0.551s

How can I flash original bootloader, boot and lock bootloader?
friend, you need to use this ROM that I made available on the link, if you have a moto G5 plus brazilian you can get the lock, but use this link ROM.

Enviado de meu XT1683 usando Tapatalk
 

KiRiLVR

New member
Aug 25, 2017
2
0
I tried the same thing.

I had TWRP and SuperSu on my phone a few days back. But weirdly, I lost network connectivity and after a botched attempt at installing V4A, the audio died as well. Even the camera and the flash had stopped working. More weirdly, the Root Checker app I had now showed me that root access was not properly installed.
SInce my phone was on the November patch (25-137-92), I found the stock ROM of it online and flashed it with the Moto G5 Plus ToolKit.
Now all the issues I've had are fixed. Everything works perfectly. TWRP has been removed along with SuperSu.
But the bootloader still shows me that software status is modified. The warning on boot-up which tells that the device has been unlocked is still there.
I don't know if it's related but I've got WiFi speed issues now, apps won't download quickly or is it my damn internet?
The bootloader IS locked, though. That I can say confidently because the bootloader unlock option in developer options is now not selected.


Moto G(5) Plus XT1686 4/32 GB Indian Version
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    With the help of @Nirbhay2 I managed to block my bootloader, however what I wanted to share here is that to block the bootloader of the Brazilian variant it is necessary the last ROM with january security patch POTTER_NPNS25.137-92-4. Here you will find the guide to block your Brazilian device.

    Have minimal ADB
    Have Motorola drivers installed on your PC
    Have the january patch ROM stock: https://rsdsecure-cloud.motorola.co...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

    Extract the ROM to any folder and paste the minimal ADB along with the extracted ROM.

    Open a command prompt in the folder and with the device in fastboot mode make a flash of the entire ROM stock on your device, to facilitate copying all the commands at once and paste at the command prompt and it will install automatic to your ROM , then do the same with the commands to re-block the bootloader and at the end of this process your device will be started with bootloader locked.

    Commands to re-lock bootloader, do this after the full ROM flash

    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

    Command link for flash ROM stock
    https://pastebin.com/ZWTaWuyr

    We thank @Nirbhay2 for this great guide.
    1
    I have a problem relocking bootloader:
    ...
    pseudo@m2 at 12:34:24 ~/tmp/potter/POTTER_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml> fastboot flash boot boot.img
    (bootloader) has-slot:boot: not found
    target reported max download size of 536870912 bytes
    sending 'boot' (16384 KB)...
    OKAY [ 0.870s]
    writing 'boot'...
    (bootloader) Image signed with key bad key
    OKAY [ 0.465s]
    finished. total time: 1.335s
    ...
    pseudo@m2 at 12:36:36 ~/tmp/potter/POTTER_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml> fastboot oem lock
    ...
    (bootloader) Still require signed boot.img
    OKAY [ 0.002s]
    finished. total time: 0.002s

    So, bootloader remains unlocked.


    Moreover:
    pseudo@m2 at 12:36:38 ~/tmp/potter/POTTER_NPNS25.137-35-5_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml> fastboot flash bootloader bootloader.img(bootloader) has-slot:bootloader: not found
    target reported max download size of 536870912 bytes
    sending 'bootloader' (5115 KB)...
    OKAY [ 0.271s]
    writing 'bootloader'...
    (bootloader) Validating 'bootloader.default.xml'
    (bootloader) Security version downgrade
    (bootloader) Image tz failed validation
    (bootloader) Preflash validation failed
    (bootloader) Security version downgrade
    (bootloader) Image devcfg failed validation
    (bootloader) Preflash validation failed
    (bootloader) Cancelling 'bootloader.default.xml'
    FAILED (remote failure)
    finished. total time: 0.551s

    How can I flash original bootloader, boot and lock bootloader?