[Moto Z Questions & Answers] rodrigolopez0551:
Hi xda-developers, how is it going? For me, not good news...

Ok, let me explain. I tried to install LineageOS on my Moto Z (XT-1650-03) with not the expected results. The phone got stucked on the unlocked bootloader message. Ok, I tried to install the stock rom (obtained from: lolinet.com mirrors, griffin/RETEU) and it didn't work. When I turned on the phone, the classic message "no command" was displayed on the screen. After, I tried to convert flashfile.xml to shell script (using motoflash2sh by dlenski on GitHub), and now my phone is on bootloop.

I tried to blank flash with the tool provided by lolinet, but qboot cannot detect my device (but fastboot can).

// First attempt ("no command" message)

fastboot flash bootloader bootloader.img
fastboot flash partition gpt.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
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 system system.img_sparsechunk.10
fastboot flash system system.img_sparsechunk.11
fastboot flash system system.img_sparsechunk.12
fastboot flash system system.img_sparsechunk.13
fastboot flash system system.img_sparsechunk.14
fastboot flash system system.img_sparsechunk.15
fastboot flash system system.img_sparsechunk.16
fastboot flash oem oem.img
fastboot erase cache
fastboot erase userdata
fastboot reboot

// Second attempt (bootloop)

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 bluetooth BTFM.bin
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 system system.img_sparsechunk.10
fastboot flash system system.img_sparsechunk.11
fastboot flash system system.img_sparsechunk.12
fastboot flash system system.img_sparsechunk.13
fastboot flash oem oem.img
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot erase ddr
fastboot oem fb_mode_clear
fastboot reboot

// fastboot getvar all

(bootloader) version: 0.5
(bootloader) version-bootloader: moto-msm8996-92.03
(bootloader) product: sheridan
(bootloader) board: sheridan
(bootloader) secure: yes
(bootloader) hwrev: P3B
(bootloader) radio: 2
(bootloader) storage-type: ufs
(bootloader) ufs: 32GB SAMSUNG KLUBG4G1CE-B0B1 FV=0800
(bootloader) ram: 4GB SAMSUNG LP4 DIE=8Gb M5=01 M6=05 M7=00 M8=08
(bootloader) cpu: MSM8996
(bootloader) serialno: ZY223HPT7F
(bootloader) cid: 0x0032
(bootloader) channelid: 0x40
(bootloader) uid: BDB29AD600000000000000000000
(bootloader) securestate: flashing_unlocked
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 536870912
(bootloader) reason: Volume down key pressed
(bootloader) imei: 358180070393267
(bootloader) meid:
(bootloader) date: 08-28-2016
(bootloader) sku: XT1650-03
(bootloader) battid:
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Thu Jan 1 1:29:33 UTC 1970"
(bootloader) ro.build.fingerprint: <not found>
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.full: <not found>
(bootloader) ro.build.version.qcom: LA.HB.1.3.2-15400-8x96.0
(bootloader) version-baseband: <not found>
(bootloader) kernel.version[0]: Linux version 3.18.24-perf-g03414fd-0000
(bootloader) kernel.version[1]: 2-g9465f65 (hudsoncm@ilclbld36) (gcc ver
(bootloader) kernel.version[2]: sion 4.9.x-google 20140827 (prerelease)
(bootloader) kernel.version[3]: (GCC) ) #1 SMP PREEMPT Fri Jul 22 05:40:
(bootloader) kernel.version[4]: 29 CDT 2016
(bootloader) xbl.git: git=MBM-NG-V92.03-0-gcdce58f
(bootloader) rpm.git: git=MBM-NG-V92.03-0-g722a114
(bootloader) tz.git: git=5b45243-dirty
(bootloader) hyp.git: git=5b45243-dirty
(bootloader) devcfg.git: git=5b45243-dirty
(bootloader) keymaster.git: git=5b45243-dirty
(bootloader) cmnlib.git: git=5b45243-dirty
(bootloader) cmnlib64.git: git=5b45243-dirty
(bootloader) prov.git: git=5b45243-dirty
(bootloader) pmic.git: git=MBM-NG-V92.03-0-gcdce58f
(bootloader) aboot.git: git=MBM-NG-V92.03-0-gfb81184
(bootloader) qe: qe 0/0
(bootloader) frp-state: no protection (0)
(bootloader) ro.carrier: reteu
all: listed above
Finished. Total time: 0.156s

I can reboot into fastboot, also I can boot TWRP with fastboot.

Even I tried to wipe all data (factory reset), but the recovery (stock) cannot wipe /cache because it doesn't exist.

EDIT: When I press Reboot to Recovery or Bootloader on TWRP, a message (in blue) appears: "No OS Installed! Are you sure you wish to reboot?"

Any ideas? Thanks in advance!

Best regards.