How can I do that with TWRP not being able to decrypt my partitions? Is downgrading TWRP the only option?
---------- Post added at 12:45 PM ---------- Previous post was at 12:11 PM ----------
Flash 5.1.7 firmware and then try upgrading to a newer build.
Reading helps: https://download.lineageos.org/cheeseburger/changes/
I'm sorry! I completely forgot that my phone is already on 5.1.7 firmware. I should have thought about that before posting.
Because TWRP was unable to read anything from my encrypted phone on TWRP v3.2.2 and v3.2.3, I downgraded TWRP to v3.2.1-1. So reading encrypted phones with these versions is broken. The bug tracker of TWRP has a lot of issue related to that, so it seems best to avoid these versions at all (https://github.com/TeamWin/Team-Win-Recovery-Project/issues?utf8=✓&q=decrypt).
Just to be sure, I reflashed OOS stable 5.1.7 firmware (https://forum.xda-developers.com/showpost.php?p=76943628&postcount=8). But upgrading to LineageOS build from Dec. 1st still fails. This time, I found a way in TWRP to show the log:
But I already flashed 5.1.7.
Why does TWRP fail to recognize my correct firmware version?