Couldn't install lineage-17.1-20200307_153746
Just in case if anyone run into the similar issues, always take a backup first.
While trying to install the latest ROM lineage-17.1-20200307_153746 through TWRP, I ran into Error: 7.
Error message I got in TWRP:
Code:
Patching system image unconditionally.
E1001: Failed to update system image.
Updater process ended with ERROR: 7.
Error installing zip file '/sdcard/LineageOS/lineageos-17.1-20200307_153746-UNOFFICIAL-natrium.zip'
I had removed Magisk before installing the ROM. Luckily, using USB-OTG, I was able to flash Luk's ROM from lineage-17.1-20200209_155551.
Though even after flashing Feb 09 RM, the phone wouldn't boot, so flashed the ROM again and this time flashed open_gapps-arm64-10.0-pico-20200307, rigth afterwards, and finally was able to log into the phone.
Then somehow permissions of all the apps including Play store, Play services etc were reset to none. So had to correct the permissions too.
Edit: I was updating the ROM from Feb 09 to Mar 07.