[Android Q&A, Help & Troubleshooting] cpp17:
I have a Moto G Pure XT2163-4 unlocked version. i was trying to downgrade from Android 12 to Android 11. I didn't know about RSA at the time so I found some ROMs online and tried to flash it. Some steps succeeded but some failed saying "prehash validation failed", which I later learned to mean that it wasn't an exact match for the original firmware. Probably due to trying to downgrade. So I guess the device is now "half flashed". If I boot the device normally I'm at the welcome screen, but the touchscreen doesn't work so I can't proceed.

I got the unlock code and tried to run `fastboot oem unlock <code>` but it tells me I have to click Enable OEM Unlock in Developer Settings. But I can't get into my device to do that because the touchscreen is not functioning.

If I use RSA Tool now and tell it that I have an XT2163-4 it tells me "Some key information cannot be read from the device" and refuses to download the ROM. In another place it tells me "No firmware is available for your device". I found from this thread that I might have a mismatched firmware, which lines up.

Below is the output of `fastboot getvar all`. What can I do to unbrick my device? I do have another device which I think is identical if that helps.

(bootloader) version: 0.5
(bootloader) version-bootloader: MBM-2.1-ellis_retail-9769cf3d12-230728
(bootloader) product: ellis
(bootloader) board: ellis
(bootloader) secure: yes
(bootloader) hwrev: PVT1
(bootloader) radio: 5
(bootloader) storage-type: eMMC
(bootloader) emmc: 32GB SAMSUNG DX68MB RV=08 PV=00 FV=0000000000000003
(bootloader) ram: 3GB SAMSUNG N NVM DIE=512Mb M5=01 M6=07 M7=00 M8=0E
(bootloader) cpu: MT6762G
(bootloader) serialno: ZY22HJPFZF
(bootloader) cid: 0x0032
(bootloader) channelid: 0x8d
(bootloader) uid: 756391CF4EBF95B4000000000000
(bootloader) securestate: oem_locked
(bootloader) factory-modes: disabled
(bootloader) iswarrantyvoid: no
(bootloader) max-download-size: 268435456
(bootloader) reason: UTAG "bootmode" configured as fastboot
(bootloader) imei: 355488151214929
(bootloader) imei2:
(bootloader) meid:
(bootloader) date: 08-23-2023
(bootloader) sku: XT2163-4
(bootloader) carrier_sku: XT2163-4
(bootloader) battid: SB18D15207
(bootloader) iccid:
(bootloader) max-sparse-size: 268435456
(bootloader) current-time: "Thu Sep 28 16:58:12 UTC 2023"
(bootloader) ro.build.fingerprint[0]: motorola/ellis_retail/ellis:12/S3R
(bootloader) ro.build.fingerprint[1]: HS32.20-42-10-4-8/1dda5a:user/rele
(bootloader) ro.build.fingerprint[2]: ase-keys
(bootloader) poweroffalarm: 0
(bootloader) ro.build.version.mtk: alps-mp-s0.mp1.tc2sp-V2.84
(bootloader) version-baseband: MT6762_TC2.PR2.SP.V8.2.P24.01.66.57R
(bootloader) kernel.version[0]: Linux version 4.19.191+ (nobody@android-
(bootloader) kernel.version[1]: build) (Android (6443078 based on r38390
(bootloader) kernel.version[2]: 2) clang version 11.0.1 (https://android
(bootloader) kernel.version[3]: .googlesource.com/toolchain/llvm-project
(bootloader) kernel.version[4]: b397f81060ce6d701042b782172ed13bee898b7
(bootloader) kernel.version[5]: 9), LLD 11.0.1 (/buildbot/tmp/tmp6_m7QH
(bootloader) kernel.version[6]: b397f81060ce6d701042b782172ed13bee898b79
(bootloader) kernel.version[7]: )) #1 SMP PREEMPT Fri Jul 28 08:05:28 CD
(bootloader) kernel.version[8]: T 2023
(bootloader) frp-state: protected (77)
(bootloader) ro.carrier: retus
(bootloader) current-slot: a
(bootloader) running-boot-lun: 1
(bootloader) running-slot: _a
(bootloader) slot-successful:_a: yes
(bootloader) slot-successful:_b: no
(bootloader) slot-bootable:_a: Yes
(bootloader) slot-bootable:_b: Yes
(bootloader) slot-retry-count:_a: 1
(bootloader) slot-retry-count:_b: 7
(bootloader) slot-suffixes: _a,_b
(bootloader) slot-count: 2
(bootloader) pcb-part-no: SB28D21323
(bootloader) is-userspace: no
(bootloader) is-logical: