[ROM][NIGHTLIES][7.1] LineageOS 14.1 for Xperia ZL

Astra7525

Member
Apr 1, 2017
16
2
0
Volume up boots the latest TWRP, volume down boots the same "Android Recovery" you mentioned. I'm kinda confused which one is FOTA now...
Okay, now I am getting a picture here:
Sony phones have the recovery-in-boot setup, so you cannot install a custom recovery, because there is no separate recovery partition.
But Custom ROMs can use the Firmware OTA (FOTA) partition, since it's only used by Stock ROMs.

If I understand correctly, LineageOS comes with the "Android Recovery" as a minimal recovery in-boot solution and TWRP in FOTA.
What I didn't know was that FOTA is an actual, writeable partition that allows you to update the TWRP as you would on a regular phone.
The storage access errors my TWRP was giving me stemmed from it being a buggy version that I didn't update, because I thought I could not do that without futzing with the boot image.
After I used TWRP's internal update to bring it to 3.1.1, I still had to manually select the new ROM image (autoupdate doesn't work), but it went through without problems.

So, I guess you also use FOTA Recovery on your phone and never knew :)
 

Edwrib

Senior Member
Sep 22, 2010
427
43
0
Hello, please:

So, if we use fastboot flash recovery twrp-x.x.x-x-odin.img like are in official lineage site, will soft-brick the device? The correctly is we need to flash this modded boot (and to boot partition, not recovery), that contains the TWRP?

Or oficial build worked out to get TWRP working in recovery partition?

https://wiki.lineageos.org/devices/odin/install
 

Astra7525

Member
Apr 1, 2017
16
2
0
Hello, please:

So, if we use fastboot flash recovery twrp-x.x.x-x-odin.img like are in official lineage site, will soft-brick the device? The correctly is we need to flash this modded boot (and to boot partition, not recovery), that contains the TWRP?

Or oficial build worked out to get TWRP working in recovery partition?

https://wiki.lineageos.org/devices/odin/install
I don't know.
If your device is still on stock ROM, it should not be possible to flash TWRP to recovery, because stock Xperia phones do not have an available recovery partition (-> recovery-in-boot configuration) to use as the flash target.
You should have to flash a boot.img from the custom ROM of your choice, which supports extracting the FOTA partition, and then you can flash any recovery to the FOTA partition.
I know that when you flash the boot.img from LineageOS you can use the minimal, inbuilt "Android Recovery" to install Lineage without having to flash TWRP.
TWRP can be flashed to the FOTA recovery either via ADB or Terminal Emulator app inside Lineage (Link)

I think the LOS guide is not accurate and I don't know who to contact to get the faulty instructions off the internet.
 

Kran007

Senior Member
Aug 24, 2015
120
55
0
Bacoor City
I just want some clarification. I just installed lineage and its my first time in this rom, iskip installing addonsu since it think it have recovery like cyanogen recovery but finding out it has stock.

So the question is. If i can managed to install twrp using either terminal app by pushing it to fota, adb fastboot or twrp app. How can i access it, by holding down volume down or up? Just to clarify.

Also, can i alternate the addonsu by using magisk v14 and get also root privilage, or addonsu then flash magisk?

Thanks. I think this rom is awesome. I just flashed back to stock rom since it tried adb fastboot an twrp image for odin but cannot go to custom recov, finding out the img was corrupted. But i give another try this rom and looking forward for 15 for oreo update ?

Sent from my Sony Xperia ZL using XDA Labs
 

Astra7525

Member
Apr 1, 2017
16
2
0
I just want some clarification. I just installed lineage and its my first time in this rom, iskip installing addonsu since it think it have recovery like cyanogen recovery but finding out it has stock.
Don't you need a recovery that allows you to flash any ROM first before you can a custom Android image or does the Sony stock recovery allow you to flash any ROM?
So the question is. If i can managed to install twrp using either terminal app by pushing it to fota, adb fastboot or twrp app. How can i access it, by holding down volume down or up? Just to clarify.
Volume UP is for FOTA recovery, Volume down is for the standard recovery.
 

Kran007

Senior Member
Aug 24, 2015
120
55
0
Bacoor City
Don't you need a recovery that allows you to flash any ROM first before you can a custom Android image or does the Sony stock recovery allow you to flash any ROM?
I have Dual-Nut Recovery installed in my stock LP rom. Yes, i read that you should flash first the boot.img from lineage zip. I skip that. Well, i will try again to flash twrp and make sure it wasn't corrupted. Up for FOTA, thanks anyway.

Sent from my Sony Xperia ZL using XDA Labs
 

Astra7525

Member
Apr 1, 2017
16
2
0
Did an upgrade to latest build 20171201 last night. Went through without problems until my phone crashed.
After reboot the android has reset itself and started the first time setup again. All my settings have been lost.

Is anyone else encountering this problem too?
 

poamber

Member
Sep 22, 2017
6
4
0
Did an upgrade to latest build 20171201 last night. Went through without problems until my phone crashed.
After reboot the android has reset itself and started the first time setup again. All my settings have been lost.

Is anyone else encountering this problem too?
Nope. How did you update? Clean or dirty?
 

poamber

Member
Sep 22, 2017
6
4
0
Sorry, I forgot to mention I was coming from LOS 14.1 build 20171124, the second to latest image, and I used TWRP 3.1.0 in FOTA.
I am pretty sure I did not order TWRP to wipe data if that's what you mean by dirty flashing.
I was on 20171124 also. By dirty flashing I mean that you don't format /system, /cache and /dalvik-cache in TWRP before updating. It's always better to format them (and before that do a backup in TWRP) and then flash.

I hope you did a backup :)
 

Astra7525

Member
Apr 1, 2017
16
2
0
I was on 20171124 also. By dirty flashing I mean that you don't format /system, /cache and /dalvik-cache in TWRP before updating. It's always better to format them (and before that do a backup in TWRP) and then flash.

I hope you did a backup :)
Well.. the good news is that my personal data was still intact, I just lost all the android settings like accounts, ringtones, choice of background image.
Should I always format system, cache and dalvik then or do I lose the Android System settings again when I do that? I assumed they would be stored in data.
 

esgwpl

Member
Jan 21, 2017
17
5
0
Is there any way to download old versions? Yu-Gi-Oh! Duel Links runs better on the unofficial builds and (I think) the early official builds, I tried the latest version (lineage-14.1-20171208-nightly-odin-signed.zip) and the game is still quite slow.
 

156and

Member
Aug 18, 2016
14
3
0
Step Counter not working in Lineage 14.1 on Xperia ZL since the very first build.

On other Roms, stock or unofficial nougat or oreo 8.0 or 8.1 the step counter is working.

Please fix it, googgle fit say 0 counts, everyday. :(