[Moto G7 Plus ROMs, Kernels, Recoveries, & Other De] Lupask:
flash bootloader permission denied

Hello everyone. I am trying to relock the bootloader on my 7+ lake. I would also like to update to the newest software patch on the way because I had rooted before and as we know there is not yet a way to patch with OTA's with unlocked bootloaders.

I downloaded all required files (FastBootAddOnFiles.zip and the newest system img from lolinet) and tried to run the following from the command line at the mfastboot.exe: (i deleted the full path because it was very long)

mfastboot oem lock begin
...
(bootloader) ***************************************
(bootloader) WARNING: This command erases user data!
(bootloader) Please re-run this command to confirm.
(bootloader) ***************************************
OKAY [ 0.010s]
finished. total time: 0.011s

mfastboot oem lock begin
...
(bootloader) Bootloader is now locked
OKAY [ 0.166s]
finished. total time: 0.169s

flashfile.bat
mfastboot getvar max-sparse-size
max-sparse-size: 268435456
finished. total time: 0.001s

mfastboot oem fb_mode_set
...
OKAY [ 0.002s]
finished. total time: 0.003s

mfastboot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (37 KB)...
OKAY [ 0.002s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Committing 'gpt.default.xml'
(bootloader) - flashing 'gpt_main0.bin' to 'partition:0'
OKAY [ 0.133s]
finished. total time: 0.137s

mfastboot flash bootloader bootloader.img
target max-sparse-size: 256MB
sending 'bootloader' (9520 KB)...
OKAY [ 0.218s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) flash permission denied
(bootloader) flash permission denied
! repeated many times
(bootloader) flash permission denied
(bootloader) Cancelling 'bootloader.default.xml'
FAILED (remote failure)
finished. total time: 0.271s

mfastboot flash modem NON-HLOS.bin
target max-sparse-size: 256MB
sending 'modem' (76456 KB)...
OKAY [ 1.630s]
writing 'modem'...
(bootloader) flash permission denied
FAILED (remote failure)
finished. total time: 1.637s

_regulatory-DEFAULT_CFC.xml>mfastboot getvar max-sparse-size
max-sparse-size: 268435456
finished. total time: 0.001s

mfastboot oem fb_mode_set
...
OKAY [ 0.002s]
finished. total time: 0.003s

mfastboot flash partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (37 KB)...
OKAY [ 0.002s]
writing 'partition'...
(bootloader) Validating 'gpt.default.xml'
(bootloader) Committing 'gpt.default.xml'
(bootloader) - flashing 'gpt_main0.bin' to 'partition:0'
OKAY [ 0.133s]
finished. total time: 0.137s

mfastboot flash bootloader bootloader.img
target max-sparse-size: 256MB
sending 'bootloader' (9520 KB)...
OKAY [ 0.218s]
writing 'bootloader'...
(bootloader) Validating 'bootloader.default.xml'
(bootloader) flash permission denied
(bootloader) flash permission denied
! repeated many times
(bootloader) flash permission denied
(bootloader) Cancelling 'bootloader.default.xml'
FAILED (remote failure)
finished. total time: 0.271s

mfastboot flash modem NON-HLOS.bin
target max-sparse-size: 256MB
sending 'modem' (76456 KB)...
OKAY [ 1.630s]
writing 'modem'...
(bootloader) flash permission denied
FAILED (remote failure)
finished. total time: 1.637s

I am cutting the remaining error messages they're all the same in each step

mfastboot flash system system.img_sparsechunk.0
target max-sparse-size: 256MB
^CTerminate batch job (Y/N)? y

and I stopped it here because it was pointles to wait to load the installer and get errors

Does anyone have an idea how to proceed? The system otherwise boots normally But I succeded in erasing userdata during some of the previous attempts :D. So thankfully no bricking so far (fingers crossed) In dev settings the option 'oem unlocking' is greyed out (says I should contact the carrier)

Also, if possible, I would like to get rid of the unlocked bootloader warning at boot and the verity disabled message during boot.

I thought of just erasing everything with TWRP and trying to flash the system anew but I don;t really know it that would help and I dont want to brick it. When I tried twrp backup it failed with createtarfork process error 255 and only proceeded when I excluded userdata so I'm not sure that's enough

Thank you for any suggestions