[Moto G9 Plus Guides, News, & Discussion] tzanoello:
Guys, I've made a mess and I need help.

My Moto G9 Plus was very bad and I decided to use a custom ROM with android 12 on it.

After a lot of effort, I finally managed to get the ROM to work, but I found out that because I had a bootloader unlocked and a custom ROM, some applications for two-step security and the credit card on Google pay, they could not be used.

It was at this time that I made the mistake of closing the bootloader with the command "fastboot oem lock" and now I was left with only the fastboot screen with the flashing_locked mark, would it be possible to solve the problem?

When I start the device, I get the message "no valid operating system could be found" and I can only go to fastboot, but with the flashing_locked tag and I can't do anything else.

I appreciate any help that can be provided!

I tried the "fastboot oem unlock" command but got the following message:

D:\platform-tools>fastboot oem unlock

(bootloader) Check 'OEM unlocking' in Android Settings > Developer

(bootloader) Options

FAILED (remote: '')

fastboot: error: Command failed

As I can no longer access the system to check the 'OEM unlocking' option. I got stuck in fastboot and any attempt to perform any flash returns the message "(bootloader) Permission denied".

D:\platform-tools>fastboot getvar max-sparse-size

max-sparse-size: 268435456

Finished. Total time: 0.002s

D:\platform-tools>fastboot oem fb_mode_set

OKAY [ 0.001s]

Finished. Total time: 0.002s

D:\platform-tools>fastboot flash partition gpt.bin

Warning: skip copying partition image avb footer (partition partition size: 0, partition image size: 211712).

Sending 'partition' (206 KB) OKAY [ 0.006s]

Writing 'partition' (bootloader) Validating 'gpt.default.xml'

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) Cancelling 'gpt.default.xml'

FAILED (remote: '')

fastboot: error: Command failed

D:\platform-tools>fastboot flash bootloader bootloader.img

Warning: skip copying bootloader image avb footer (bootloader partition size: 0, bootloader image size: 14136064).

Sending 'bootloader' (13804 KB) OKAY [ 0.321s]

Writing 'bootloader' (bootloader) Validating 'bootloader.default.xml'

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) Cancelling 'bootloader.default.xml'

FAILED (remote: '')

fastboot: error: Command failed

D:\platform-tools>fastboot flash vbmeta vbmeta.img

Sending 'vbmeta_b' (4 KB) OKAY [ 0.001s]

Writing 'vbmeta_b' (bootloader) flash permission denied

FAILED (remote: '')

fastboot: error: Command failed

D:\platform-tools>fastboot flash radio radio.img

Warning: skip copying radio image avb footer (radio partition size: 0, radio image size: 97769216).

Sending 'radio' (95477 KB) OKAY [ 2.066s]

Writing 'radio' (bootloader) Validating 'radio.default.xml'

(bootloader) flash permission denied

(bootloader) flash permission denied

(bootloader) Permission denied

(bootloader) Permission denied

(bootloader) Cancelling 'radio.default.xml'

FAILED (remote: '')

fastboot: error: Command failed

D:\platform-tools>fastboot flash bluetooth BTFM.bin

Warning: skip copying bluetooth_b image avb footer due to sparse image.

Sending 'bluetooth_b' (672 KB) OKAY [ 0.015s]

Writing 'bluetooth_b' (bootloader) flash permission denied

FAILED (remote: '')

fastboot: error: Command failed

D:\platform-tools>fastboot flash dsp dspso.bin

Sending 'dsp_b' (32768 KB) OKAY [ 0.701s]

Writing 'dsp_b' (bootloader) flash permission denied

FAILED (remote: '')

fastboot: error: Command failed

D:\platform-tools>fastboot flash logo logo.bin

Sending 'logo_b' (9340 KB) OKAY [ 0.204s]

Writing 'logo_b' (bootloader) flash permission denied

FAILED (remote: '')

fastboot: error: Command failed

D:\platform-tools>fastboot flash boot boot.img

Sending 'boot_b' (65536 KB) OKAY [ 1.402s]

Writing 'boot_b' (bootloader) flash permission denied

FAILED (remote: '')

fastboot: error: Command failed

D:\platform-tools>fastboot flash dtbo dtbo.img

Sending 'dtbo_b' (24576 KB) OKAY [ 0.526s]

Writing 'dtbo_b' (bootloader) flash permission denied

FAILED (remote: '')

fastboot: error: Command failed

D:\platform-tools>fastboot flash recovery recovery.img

Sending 'recovery_b' (37480 KB) OKAY [ 0.805s]

Writing 'recovery_b' (bootloader) flash permission denied

FAILED (remote: '')

fastboot: error: Command failed

In another area of this forum, I was given the tip to try to do a blank flash, but I tested some procedures I found and I was unsuccessful.

Any tips would be of great help!