[Moto G5S  Questions & Answers] grpelloi:
Hello!

I trying to re-lock the bootloader of my moto g5s xt1792. I tried multiple commands, stock roms and a LMSA downloaded rom but i still receive the message "Still require signed boot.img".

I tried to do a rescue in lmsa but without success.

I searched too alot in xda and in similar forums, i have been in this problem for several months.

fastboot oem lock
fastboot oem lock
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 oem oem.img
fastboot erase cache
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot oem lock
fastboot reboot

Microsoft Windows [versão 10.0.17763.1397]
(c) 2018 Microsoft Corporation. Todos os direitos reservados.

C:\Users\henrique\Desktop\retbr>fastboot oem lock
(bootloader) WARNING: This command erases all user data.
(bootloader) Please re-run this command to continue.
OKAY [ 0.010s]
Finished. Total time: 0.010s

C:\Users\henrique\Desktop\retbr>fastboot oem lock
(bootloader) Flash valid Android images now
(bootloader) Then re-run this command to lock
OKAY [ 0.009s]
Finished. Total time: 0.009s

C:\Users\henrique\Desktop\retbr>fastboot getvar max-sparse-size
max-sparse-size: 268435456
Finished. Total time: 0.000s

C:\Users\henrique\Desktop\retbr>fastboot oem fb_mode_set
OKAY [ 0.000s]
Finished. Total time: 0.000s

C:\Users\henrique\Desktop\retbr>fastboot flash partition gpt.bin
(bootloader) is-logical:partition: not found
Sending 'partition' (45 KB) OKAY [ 0.170s]
Writing 'partition' (bootloader) Validating 'gpt.default.xml'
(bootloader) Committing 'gpt.default.xml'
(bootloader) - flashing 'gpt_main0.bin' to 'partition:0'
(bootloader) Flashing primary GPT image...
(bootloader) Flashing backup GPT image...
OKAY [ 0.090s]
Finished. Total time: 0.295s

C:\Users\henrique\Desktop\retbr>fastboot flash bootloader bootloader.img
(bootloader) is-logical:bootloader: not found
Sending 'bootloader' (5179 KB) OKAY [ 0.349s]
Writing 'bootloader' (bootloader) Validating 'bootloader.default.xml'
(bootloader) Committing 'bootloader.default.xml'
(bootloader) - flashing 'emmc_appsboot.mbn' to 'aboot'
(bootloader) - flashing 'rpm.mbn' to 'rpm'
(bootloader) - flashing 'tz.mbn' to 'tz'
(bootloader) - flashing 'devcfg.mbn' to 'devcfg'
(bootloader) - flashing 'cmnlib.mbn' to 'cmnlib'
(bootloader) - flashing 'cmnlib64.mbn' to 'cmnlib64'
(bootloader) - flashing 'keymaster.mbn' to 'keymaster'
(bootloader) - flashing 'prov.mbn' to 'prov'
(bootloader) - flashing 'sbl1.mbn' to 'sbl1'
OKAY [ 0.557s]
Finished. Total time: 0.940s

C:\Users\henrique\Desktop\retbr>fastboot flash modem NON-HLOS.bin
(bootloader) is-logical:modem: not found
Sending 'modem' (67978 KB) OKAY [ 2.838s]
Writing 'modem' OKAY [ 1.074s]
Finished. Total time: 3.990s

C:\Users\henrique\Desktop\retbr>fastboot flash fsg fsg.mbn
(bootloader) is-logical:fsg: not found
Sending 'fsg' (3560 KB) OKAY [ 0.335s]
Writing 'fsg' OKAY [ 0.120s]
Finished. Total time: 0.500s

C:\Users\henrique\Desktop\retbr>fastboot erase modemst1
Erasing 'modemst1' OKAY [ 0.041s]
Finished. Total time: 0.041s

C:\Users\henrique\Desktop\retbr>fastboot erase modemst2
Erasing 'modemst2' OKAY [ 0.030s]
Finished. Total time: 0.050s

C:\Users\henrique\Desktop\retbr>fastboot flash dsp adspso.bin
(bootloader) is-logical:dsp: not found
Sending 'dsp' (16384 KB) OKAY [ 0.835s]
Writing 'dsp' OKAY [ 0.316s]
Finished. Total time: 1.207s

C:\Users\henrique\Desktop\retbr>fastboot flash logo logo.bin
(bootloader) is-logical:logo: not found
Sending 'logo' (2195 KB) OKAY [ 0.220s]
Writing 'logo' OKAY [ 0.113s]
Finished. Total time: 0.404s

C:\Users\henrique\Desktop\retbr>fastboot flash boot boot.img
(bootloader) is-logical:boot: not found
Sending 'boot' (16384 KB) OKAY [ 0.630s]
Writing 'boot' (bootloader) Image signed with key bad key
OKAY [ 0.480s]
Finished. Total time: 1.327s

C:\Users\henrique\Desktop\retbr>fastboot flash recovery recovery.img
(bootloader) is-logical:recovery: not found
Sending 'recovery' (16484 KB) OKAY [ 0.820s]
Writing 'recovery' (bootloader) Image signed with key bad key
OKAY [ 1.015s]
Finished. Total time: 1.865s

C:\Users\henrique\Desktop\retbr>fastboot flash system system.img_sparsechunk.0
(bootloader) is-logical:system: not found
Sending 'system' (256294 KB) OKAY [ 10.125s]
Writing 'system' OKAY [ 4.450s]
Finished. Total time: 14.725s

C:\Users\henrique\Desktop\retbr>fastboot flash system system.img_sparsechunk.1
(bootloader) is-logical:system: not found
Sending 'system' (256762 KB) OKAY [ 10.182s]
Writing 'system' OKAY [ 3.325s]
Finished. Total time: 13.580s

C:\Users\henrique\Desktop\retbr>fastboot flash system system.img_sparsechunk.2
(bootloader) is-logical:system: not found
Sending 'system' (255764 KB) OKAY [ 10.380s]
Writing 'system' OKAY [ 3.540s]
Finished. Total time: 14.040s

C:\Users\henrique\Desktop\retbr>fastboot flash system system.img_sparsechunk.3
(bootloader) is-logical:system: not found
Sending 'system' (260630 KB) OKAY [ 10.360s]
Writing 'system' OKAY [ 3.420s]
Finished. Total time: 13.882s

C:\Users\henrique\Desktop\retbr>fastboot flash system system.img_sparsechunk.4
(bootloader) is-logical:system: not found
Sending 'system' (257521 KB) OKAY [ 10.419s]
Writing 'system' OKAY [ 3.372s]
Finished. Total time: 13.880s

C:\Users\henrique\Desktop\retbr>fastboot flash system system.img_sparsechunk.5
(bootloader) is-logical:system: not found
Sending 'system' (245941 KB) OKAY [ 9.810s]
Writing 'system' OKAY [ 3.210s]
Finished. Total time: 13.080s

C:\Users\henrique\Desktop\retbr>fastboot flash system system.img_sparsechunk.6
(bootloader) is-logical:system: not found
Sending 'system' (258569 KB) OKAY [ 10.242s]
Writing 'system' OKAY [ 3.265s]
Finished. Total time: 13.550s

C:\Users\henrique\Desktop\retbr>fastboot flash system system.img_sparsechunk.7
(bootloader) is-logical:system: not found
Sending 'system' (251493 KB) OKAY [ 10.060s]
Writing 'system' OKAY [ 3.770s]
Finished. Total time: 13.990s

C:\Users\henrique\Desktop\retbr>fastboot flash system system.img_sparsechunk.8
(bootloader) is-logical:system: not found
Sending 'system' (257933 KB) OKAY [ 10.150s]
Writing 'system' OKAY [ 3.770s]
Finished. Total time: 14.147s

C:\Users\henrique\Desktop\retbr>fastboot flash system system.img_sparsechunk.9
(bootloader) is-logical:system: not found
Sending 'system' (214096 KB) OKAY [ 8.465s]
Writing 'system' OKAY [ 3.831s]
Finished. Total time: 12.360s

C:\Users\henrique\Desktop\retbr>fastboot flash oem oem.img
(bootloader) is-logical:oem: not found
Sending 'oem' (247426 KB) OKAY [ 9.880s]
Writing 'oem' OKAY [ 3.290s]
Finished. Total time: 13.240s

C:\Users\henrique\Desktop\retbr>fastboot erase cache
Erasing 'cache' OKAY [ 0.010s]
Finished. Total time: 0.020s

C:\Users\henrique\Desktop\retbr>fastboot erase userdata
Erasing 'userdata' OKAY [ 4.688s]
Finished. Total time: 4.695s

C:\Users\henrique\Desktop\retbr>fastboot erase DDR
Erasing 'DDR' OKAY [ 0.020s]
Finished. Total time: 0.030s

C:\Users\henrique\Desktop\retbr>fastboot oem fb_mode_clear
OKAY [ 0.000s]
Finished. Total time: 0.000s

C:\Users\henrique\Desktop\retbr>fastboot oem lock
(bootloader) Still require signed boot.img
OKAY [ 0.000s]
Finished. Total time: 0.010s

C:\Users\henrique\Desktop\retbr>fastboot oem lock
(bootloader) Still require signed boot.img
OKAY [ 0.000s]
Finished. Total time: 0.009s

I would appreciate any help

Thank you