[Galaxy S III Android Development] walteweiss:
Failed to map file

I changed the way I use my phone (it's now a basic organizer with just few apps), and seems like I'm no longer need Google Play Store for that, which I believe makes it uncomfortably slow. So I decided to commit an update, gaining both newer security patch and lack of Google Play Store. I had very little time to explore among the available options, so I picked this ROM.

It looks the most popular among LOS16-based to me, and I remember I saw the author somewhere before, so it gives me a bit more confidence to continue.

My Process was as follows.

1. First, I updated my TWRP recovery, with TWRP. I downloaded the latest, sent it to my device with

adb push twrp-3.3.1-0-i9300.img /sdcard/Downloads/

then flashed this file via TWRP (you need to chose recovery partition), it rebooted into the system, then I rebooted back into recovery.

2. I formatted my data (it had some errors, it said, but reported success upon completion)

3. Then I formatted Data, Cache, Dalvik

4. Then I did

adb push lineage-16.0-20200103-UNOFFICIAL-i9300.zip /sdcard

and tried to install the zip via TWRP. (Optionally, before copying the archive you can check md5 sum of it, to be sure it is not corrupted.)

5. It gave me an error first while formatting data (I forgot to take the screenshot). And it gave me an error during flashing, I attach the screenshot, with irrelevant information cleared from the view. I formatted and wiped everything I could. Shouldn't I? I thought that would make the cleanest install, was I wrong?

The error is:

Failed to map file '/sdcard/lineage-16.0-20200103-UNOFFICIAL-i9300.zip'
Error installing zip file '/sdcard/lineage-16.0-20200103-UNOFFICIAL-i9300.zip'

Error Screenshot.

I tried to copy zip-file to / and repeat the step, same error with different address. I pressed reboot and it stuck on the very first logo (Samsung Galaxy SIII GT-i9300).

Any ideas anyone?

---------- Post added at 12:59 PM ---------- Previous post was at 12:47 PM ----------

Quick Update: I couldn't get into recovery, so I took off the battery, then put it back, then pressed Home + Volume Up + Power to boot into recovery, which was successful. I tried to flash the zip once again, but got the same error, but since there's no other operations I performed, it's clearly visible from More clean screenshot that there's a problem with decrypting FBE device. I have no idea what that is, Google led me to File-Based Encryption article. My device was encrypted. I would prefer to have it being encrypted and I don't mind losing any data on the device (I actually would prefer it being nuked).

What can my next steps be to succeed with the install?

---------- Post added at 01:52 PM ---------- Previous post was at 12:59 PM ----------

I have tried to install twrp-3.1.1-0-i9300.img and it gave me different error – 7 (screenshot), claiming my device is different (it isn't). Also, before the downgrading to twrp-3.1.1-0, I attempted to install different ROM (PixelExperience), getting the same error.

Looks like I broke something with the formatting process, but I have no idea what. Should I try to reflash stock image now, or is there's another workaround?

---------- Post added at 02:08 PM ---------- Previous post was at 01:52 PM ----------

Weird.

Seems like I succeeded with TWRP 3.2.3-0, it gave me no errors. Maybe 3.3.1-0 was too new for this, as it was released just recently, on Jan 09, 2020, four weeks ago. There was a successful install.

First boot took 2 minutes for me.

Going to play around with the device, and if there'll be bugs I'll encounter, I'll keep you updated.

Hope my post will help someone.