[Nexus 4 Android Development] walteweiss:
I have read it should be Nexi :)

What do you mean by the difference with this one and Official version? I have this one 3.2.3-0 and the official one is 3.3.1.-0, and the ROM developers say I need to have the latest TWRP. Is it a mandatory, or more like a best-practice? I assume 3.2.3-0 isn't that old, is it?

I have tried to install CarbonROM | CR-7.0 and then LineageOS 16, both with GApps (Arm, pico) and with no luck.

The recovery.log is here: https://paste.ubuntu.com/p/txvrwvjPFH/, and as far as I understand, this log is not just for my current attempt, but for my previous bootloop issue, as you can see a lot of the same MTP-messages.

And two screenshots indicating Error-7. I have Googled about this Error and it's recommended to remove verification. Here comes the question: is this protection mechanism is against me failing to download the right ROM, or is it also against the wrong TWRP? As this TWRP is not the latest, but — again — I assume it's not a huge difference, is it?

Also, my time is wrong, it's the year 1970 for my Nexus 4, and as far as I got it from the relevant thread it's so for everyone, isn't it? I cannot change the date and time due to my touchscreen is partially broken, as you may know it's infamous issue of the Nexi 4 line. It's so broken I barely can swipe for installing anything in TWRP, but I've learned the trick how to make it work, so it works at least till the point my touchscreen won't get worse.

---------- Post added at 07:45 PM ---------- Previous post was at 07:29 PM ----------

Well, I decided to give that a try, and did as it was recommended in the thread I have linked, in short:

Unzip Archive

Find`META-INF/com/google/android/updater-script`

Get rid of the line starting with “assert” to next semi-colon. Usually this is the first line or one of the first lines at the top of the text file. Just delete them.

3. Zip The Archive back

The line was:

assert(getprop("ro.product.device") == "mako" || getprop("ro.build.product") == "mako" || abort("E3004: This package is for device: mako; this device is " + getprop("ro.product.device") + "."););

Didn't help, got the same error 7:

Updater process ended with ERROR: 7
Error installing zip file '/sdcard/lineage-166.0-20191120-UNOFFICIAL-mako-signed-FIXED.zip'
Updating Partition details...
...done

I'm attaching all the errors I have mentioned as screenshots, just in case I've missed something valuable. They're available here: https://imgur.com/a/GCftlVJ

Pardon me if it's not relevant to this TWRP, I just don't know whether it is or it is not.

---------- Post added at 07:49 PM ---------- Previous post was at 07:45 PM ----------

Also I have just checked and Carbon ROM that I've mentioned here earlier has no 'assert line' in its updater-script. So it may be either irrelevant, or just TWRP shows wrong error, or anything else.

---------- Post added at 07:55 PM ---------- Previous post was at 07:49 PM ----------

Yeah, seems like the problem is in this TWRP, I have tried to nuke this TWRP with

fastboot erase recovery

, then install the newest one with

fastboot flash recovery twrp-3.3.1-0-mako.img

and it all went just fine, screenshot attached.