[Moto G7 Questions & Answers] dnsource:
I successfully unlocked my bootloader last night. I went through the process of patching the img file through magisk to root and flashed it via fastbooot. I have been stuck in a loop since. I can still get into fastboot. I have tried Smart Assistant and RSD but they wont detect my phone.

I tried a using different firmware as others have posted and i'm still stuck.

here is my process on powershell:

PS C:\Android> fastboot flash partition gpt.bin

target reported max download size of 536870912 bytes

sending 'partition' (45 KB)...

OKAY [ 0.002s]

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.092s]

finished. total time: 0.095s

PS C:\Android> fastboot flash bootloader bootloader.img

target reported max download size of 536870912 bytes

sending 'bootloader' (7419 KB)...

OKAY [ 0.179s]

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_30.mbn' to 'cmnlib'

(bootloader) - flashing 'cmnlib64_30.mbn' to 'cmnlib64'

(bootloader) - flashing 'keymaster64.mbn' to 'keymaster'

(bootloader) - flashing 'prov.mbn' to 'prov'

(bootloader) - flashing 'sbl1.mbn' to 'sbl1'

OKAY [ 0.317s]

finished. total time: 0.497s

PS C:\Android> fastboot reboot-bootloader

rebooting into bootloader...

OKAY [ 0.001s]

finished. total time: 0.002s

PS C:\Android> fastboot flash modem NON-HLOS.bin

target reported max download size of 536870912 bytes

sending 'modem' (65900 KB)...

OKAY [ 1.527s]

writing 'modem'...

OKAY [ 0.512s]

finished. total time: 2.040s

PS C:\Android> fastboot flash fsg fsg.mbn

target reported max download size of 536870912 bytes

sending 'fsg' (11612 KB)...

OKAY [ 0.270s]

writing 'fsg'...

OKAY [ 0.089s]

finished. total time: 0.361s

PS C:\Android> fastboot erase modemst1

erasing 'modemst1'...

OKAY [ 0.015s]

finished. total time: 0.015s

PS C:\Android> fastboot erase modemst2

erasing 'modemst2'...

OKAY [ 0.015s]

finished. total time: 0.016s

PS C:\Android> fastboot flash bluetooth BTFM.bin

error: cannot load 'BTFM.bin'

PS C:\Android> fastboot flash dsp dspso.bin

error: cannot load 'dspso.bin'

PS C:\Android> fastboot flash dsp dspso.bin

error: cannot load 'dspso.bin'

PS C:\Android> fastboot flash dsp adspso.bin

target reported max download size of 536870912 bytes

sending 'dsp' (16384 KB)...

OKAY [ 0.380s]

writing 'dsp'...

OKAY [ 0.104s]

finished. total time: 0.486s

PS C:\Android> fastboot flash logo logo.bin

target reported max download size of 536870912 bytes

sending 'logo' (2633 KB)...

OKAY [ 0.062s]

writing 'logo'...

OKAY [ 0.044s]

finished. total time: 0.107s

PS C:\Android> fastboot flash boot boot.img

target reported max download size of 536870912 bytes

sending 'boot' (32768 KB)...

OKAY [ 0.789s]

writing 'boot'...

(bootloader) Image signed with key bad key

OKAY [ 0.641s]

finished. total time: 1.431s

PS C:\Android> fastboot flash system system.img_sparsechunk.0

target reported max download size of 536870912 bytes

sending 'system' (256852 KB)...

OKAY [ 5.933s]

writing 'system'...

OKAY [ 1.093s]

finished. total time: 7.028s

PS C:\Android> fastboot flash system system.img_sparsechunk.1

target reported max download size of 536870912 bytes

sending 'system' (262141 KB)...

OKAY [ 6.062s]

writing 'system'...

OKAY [ 1.102s]

finished. total time: 7.166s

PS C:\Android> fastboot flash system system.img_sparsechunk.2

target reported max download size of 536870912 bytes

sending 'system' (234600 KB)...

OKAY [ 5.424s]

writing 'system'...

OKAY [ 0.955s]

finished. total time: 6.379s

PS C:\Android> fastboot flash system system.img_sparsechunk.3 target reported max download size of 536870912 bytes

sending 'system' (259529 KB)...

OKAY [ 5.998s]

writing 'system'...

OKAY [ 1.075s]

finished. total time: 7.075s

PS C:\Android> fastboot flash system system.img_sparsechunk.4

target reported max download size of 536870912 bytes

sending 'system' (262141 KB)...

OKAY [ 6.061s]

writing 'system'...

OKAY [ 1.114s]

finished. total time: 7.177s

PS C:\Android> fastboot flash system system.img_sparsechunk.5

target reported max download size of 536870912 bytes

sending 'system' (252895 KB)...

OKAY [ 5.852s]

writing 'system'...

OKAY [ 1.144s]

finished. total time: 6.997s

PS C:\Android> fastboot flash system system.img_sparsechunk.6

target reported max download size of 536870912 bytes

sending 'system' (262140 KB)...

OKAY [ 6.070s]

writing 'system'...

OKAY [ 1.092s]

finished. total time: 7.163s

PS C:\Android> fastboot flash system system.img_sparsechunk.7

target reported max download size of 536870912 bytes

sending 'system' (260863 KB)...

OKAY [ 6.071s]

writing 'system'...

OKAY [ 1.883s]

finished. total time: 7.955s

PS C:\Android> fastboot flash system_b system_other.img

error: cannot load 'system_other.img'

PS C:\Android> fastboot flash oem oem_other.img

target reported max download size of 536870912 bytes

sending 'oem' (43696 KB)...

OKAY [ 1.012s]

writing 'oem'...

OKAY [ 0.219s]

finished. total time: 1.233s

PS C:\Android> fastboot flash oem oem.img

target reported max download size of 536870912 bytes

sending 'oem' (68308 KB)...

OKAY [ 1.584s]

writing 'oem'...

OKAY [ 0.300s]

finished. total time: 1.887s

PS C:\Android> fastboot erase carrier

erasing 'carrier'...

OKAY [ 0.032s]

finished. total time: 0.033s

PS C:\Android> fastboot erase userdata

erasing 'userdata'...

OKAY [ 0.082s]

finished. total time: 0.083s

PS C:\Android> fastboot erase ddr

erasing 'ddr'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.004s

PS C:\Android> fastboot erase ddr

erasing 'ddr'...

(bootloader) Permission denied

FAILED (remote failure)

finished. total time: 0.004s

PS C:\Android> fastboot reboot

rebooting...

finished. total time: 0.001s