[Moto Z Questions & Answers] rodrigolopez0551:
I see in the post's comments that Moto Z XT1650 is unsupported. Should I try anyway?

EDIT: It doesn't recognise my device (I think it's because I sideloaded the LineageOS zip).

EDIT2: Output of my attempt to flash.

max-sparse-size: 268435456
Finished. Total time: 0.004s
OKAY [ 0.001s]
Finished. Total time: 0.005s
(bootloader) has-slot:partition: not found
(bootloader) is-logical:partition: not found
Sending 'partition' (142 KB) OKAY [ 0.053s]
Writing 'partition' (bootloader) Validating 'gpt.default.xml'
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Security version downgrade
(bootloader) Image primary_gpt failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote: '')
fastboot: error: Command failed
< waiting for any device >
(bootloader) has-slot:bootloader: not found
(bootloader) is-logical:bootloader: not found
Sending 'bootloader' (7076 KB) OKAY [ 0.287s]
Writing 'bootloader' (bootloader) Validating 'bootloader.default.xml'
(bootloader) Security version downgrade
(bootloader) Image aboot failed validation
(bootloader) Preflash validation failed
(bootloader) Security version downgrade
(bootloader) Image rpm failed validation
(bootloader) Preflash validation failed
(bootloader) Security version downgrade
(bootloader) Image pmic failed validation
(bootloader) Preflash validation failed
(bootloader) Security version downgrade
(bootloader) Image hyp failed validation
(bootloader) Preflash validation failed
(bootloader) Image tz failed validation
(bootloader) Preflash validation failed
(bootloader) Image devcfg failed validation
(bootloader) Preflash validation failed
(bootloader) Cancelling 'bootloader.default.xml'
FAILED (remote: '')
fastboot: error: Command failed
(bootloader) has-slot:modem: not found
(bootloader) is-logical:modem: not found
Sending 'modem' (80886 KB) OKAY [ 2.426s]
Writing 'modem' OKAY [ 1.076s]
Finished. Total time: 3.613s
(bootloader) has-slot:fsg: not found
(bootloader) is-logical:fsg: not found
Sending 'fsg' (2356 KB) OKAY [ 0.119s]
Writing 'fsg' OKAY [ 0.361s]
Finished. Total time: 0.546s
(bootloader) has-slot:bluetooth: not found
(bootloader) is-logical:bluetooth: not found
Sending 'bluetooth' (4296 KB) OKAY [ 0.174s]
Writing 'bluetooth' OKAY [ 0.418s]
Finished. Total time: 0.660s
(bootloader) has-slot:dsp: not found
(bootloader) is-logical:dsp: not found
Sending 'dsp' (16384 KB) OKAY [ 0.529s]
Writing 'dsp' OKAY [ 0.450s]
Finished. Total time: 1.044s
(bootloader) has-slot:logo: not found
(bootloader) is-logical:logo: not found
Sending 'logo' (2933 KB) OKAY [ 0.135s]
Writing 'logo' OKAY [ 0.361s]
Finished. Total time: 0.562s
(bootloader) has-slot:boot: not found
(bootloader) is-logical:boot: not found
Sending 'boot' (32768 KB) OKAY [ 1.052s]
Writing 'boot' (bootloader) Image not signed or corrupt
OKAY [ 0.550s]
Finished. Total time: 1.667s
(bootloader) has-slot:recovery: not found
(bootloader) is-logical:recovery: not found
Sending 'recovery' (32772 KB) OKAY [ 1.044s]
Writing 'recovery' (bootloader) Image not signed or corrupt
OKAY [ 0.551s]
Finished. Total time: 1.658s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (262141 KB) OKAY [ 7.702s]
Writing 'system' OKAY [ 2.725s]
Finished. Total time: 10.703s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (245512 KB) OKAY [ 7.279s]
Writing 'system' OKAY [ 1.805s]
Finished. Total time: 9.317s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (256002 KB) OKAY [ 7.495s]
Writing 'system' OKAY [ 1.784s]
Finished. Total time: 9.522s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (242073 KB) OKAY [ 7.115s]
Writing 'system' OKAY [ 1.864s]
Finished. Total time: 9.203s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (256909 KB) OKAY [ 7.594s]
Writing 'system' OKAY [ 1.751s]
Finished. Total time: 9.565s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (261011 KB) OKAY [ 7.718s]
Writing 'system' OKAY [ 1.840s]
Finished. Total time: 9.788s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (262141 KB) OKAY [ 7.797s]
Writing 'system' OKAY [ 2.134s]
Finished. Total time: 10.569s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (262141 KB) OKAY [ 7.779s]
Writing 'system' OKAY [ 1.908s]
Finished. Total time: 9.966s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (254656 KB) OKAY [ 7.553s]
Writing 'system' OKAY [ 1.650s]
Finished. Total time: 9.527s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (262143 KB) OKAY [ 7.811s]
Writing 'system' OKAY [ 1.866s]
Finished. Total time: 9.967s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (261022 KB) OKAY [ 7.914s]
Writing 'system' OKAY [ 2.006s]
Finished. Total time: 10.157s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (261217 KB) OKAY [ 7.855s]
Writing 'system' OKAY [ 1.787s]
Finished. Total time: 10.023s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (253734 KB) OKAY [ 7.516s]
Writing 'system' OKAY [ 1.813s]
Finished. Total time: 9.564s
(bootloader) has-slot:system: not found
(bootloader) is-logical:system: not found
Sending 'system' (63148 KB) OKAY [ 1.912s]
Writing 'system' OKAY [ 0.420s]
Finished. Total time: 2.402s
(bootloader) has-slot:oem: not found
(bootloader) is-logical:oem: not found
Sending 'oem' (70336 KB) OKAY [ 2.115s]
Writing 'oem' OKAY [ 0.820s]
Finished. Total time: 3.008s
(bootloader) has-slot:modemst1: not found
Erasing 'modemst1' OKAY [ 0.164s]
Finished. Total time: 0.224s
(bootloader) has-slot:modemst2: not found
Erasing 'modemst2' OKAY [ 0.172s]
Finished. Total time: 0.233s
(bootloader) has-slot:cache: not found
Erasing 'cache' OKAY [ 0.354s]
Finished. Total time: 0.416s
(bootloader) has-slot:userdata: not found
Erasing 'userdata' OKAY [ 1.974s]
Finished. Total time: 2.037s
(bootloader) has-slot:customize: not found
Erasing 'customize' OKAY [ 0.335s]
Finished. Total time: 0.398s
(bootloader) has-slot:clogo: not found
Erasing 'clogo' (bootloader) Permission denied
FAILED (remote: '')
fastboot: error: Command failed
(bootloader) has-slot:ddr: not found
Erasing 'ddr' OKAY [ 0.283s]
Finished. Total time: 0.342s
(bootloader) has-slot:fsg: not found
(bootloader) is-logical:fsg: not found
Sending 'fsg' (2356 KB) OKAY [ 0.120s]
Writing 'fsg' OKAY [ 0.352s]
Finished. Total time: 0.535s
(bootloader) has-slot:bluetooth: not found
(bootloader) is-logical:bluetooth: not found
Sending 'bluetooth' (4296 KB) OKAY [ 0.175s]
Writing 'bluetooth' OKAY [ 0.411s]
Finished. Total time: 0.650s
OKAY [ 0.001s]
Finished. Total time: 0.004s

EDIT3: Finally managed to get my device working again.

I followed this: https://xdaforums.com/showpost.php?p=76932000&postcount=104

Is there anyway to check the legitimate of that ROM?

EDIT4: I downloaded the original stock rom from LMSA (because my phone now has a valid rom, the LMSA can detect my phone correctly).

Thanks.