New build released
- Updated to Android 12.1.0_r5 with May security patches.
- Upstream updates and fixes.
Here you go, should be fine as my build for Xperia Z.Can you please make a same Rom for Xperia ZL ? Or can you teach me how to modify the rom for ZL ?Thank you
Omg thanks for your hard work!!
Flash most recent TWRP image on boot with ADB in fastboot (fastboot devices; fastboot flash boot twrpfilename.img), then in TWRP flash the TWRP zip creating a recovery partition if not there already, then flash the TWRP image over that. Then flash Lineage 18.1 or whatever as zip.Thanks for the new release guys! I recently got my Xperia back after years and have tried installing this. Unfortunately, I am now stuck in bootloop. I cannot enter the recovery either, but I can get into fastboot mode. Can anyone advice what's the quickest method to install this ROM given my current circumstances? Thanks in advance!
Thanks for your quick response, Alias, i appreciate it!Flash most recent TWRP image on boot with ADB in fastboot (fastboot devices; fastboot flash boot twrpfilename.img), then in TWRP flash the TWRP zip creating a recovery partition if not there already, then flash the TWRP image over that. Then flash Lineage 18.1 or whatever as zip.
Oh, and you may need a driver so Windows accepts the device in fastboot mode.
Because these Sonys don't have a classic recovery partition. It first needs to be created in another area, called FOTA (something for OTA updates on Stock). Confused me at first too. Basically, there's a zip on XDA which runs a script creating that FOTA recovery and then flashes TWRP 3.2.x, after that you want to update it to 3.6.x. So including the temporary install on boot you have to flash TWRP 3 times:Thanks for your quick response, Alias, i appreciate it!
I am on Linux so drivers are not an issue, I can see my device in fastboot mode. I only have one question at this stage. I have flashed the TWRP recovery but how do I create a recovery partition? Also, why do I need to flash the recovery twice? Thanks again in advance!
Okay yes, I think I understand the process a bit better now, thanks a lot for the additional information, Alias. I have done the first two steps successfully, but now I'm getting an error if I try to flash the newer version of TWRP on recovery via fastboot:Because these Sonys don't have a classic recovery partition. It first needs to be created in another area, called FOTA (something for OTA updates on Stock). Confused me at first too. Basically, there's a zip on XDA which runs a script creating that FOTA recovery and then flashes TWRP 3.2.x, after that you want to update it to 3.6.x. So including the temporary install on boot you have to flash TWRP 3 times:
1. img on boot with your PC to be able to even flash other stuff on the device
2. zip creating recovery
3. img on recovery
Not much effort thought. Then you can flash any ROM and overwrite boot with it, cause you now have a recovery.
Sending 'recovery' (13308 KB) OKAY [ 0.427s]
Writing 'recovery' FAILED (remote: 'Command not allowed')
fastboot: error: Command failed
Kind of does, but only TWRP recognizes it, not ADB. That's the reason why we've been flashing boot in the first place, so you can flash recovery on device in a working TWRP. Understood? As soon as you flashed boot successfully, leave fastboot, restart device into TWRP, mount, push the files on the internal storage/sd and then send your PC to sleep. THEN flash recovery zip then recovery image then any system imagine, and GApps or whatever.Okay yes, I think I understand the process a bit better now, thanks a lot for the additional information, Alias. I have done the first two steps successfully, but now I'm getting an error if I try to flash the newer version of TWRP on recovery via fastboot:
Code:Sending 'recovery' (13308 KB) OKAY [ 0.427s] Writing 'recovery' FAILED (remote: 'Command not allowed') fastboot: error: Command failed
Do you know why I may be getting this error?
UPDATE: I searched around a bit and it seems to be related to what you where saying, that these Sony phones don't have a dedicated recovery partition, so I could not flash the recovery directly in the recovery partition. However, that confuses me, as I ran the FOTA script, so shouldn't a recovery partition now exist?
Thanks, the process is all clear to me now. I have followed all the steps (including reflashing TWRP.img on recovery again directly after flashing Rom.zip and before rebooting) but I'm still getting the same error.Kind of does, but only TWRP recognizes it, not ADB. That's the reason why we've been flashing boot in the first place, so you can flash recovery on device in a working TWRP. Understood? As soon as you flashed boot successfully, leave fastboot, restart device into TWRP, mount, push the files on the internal storage/sd and then send your PC to sleep. THEN flash recovery zip then recovery image then any system imagine, and GApps or whatever.
Oh, and small warning, some ROMs may automatically install their own, less capable Lineage recovery (Lin 15.1 microG for example). Because you can't flash recovery with ADB on this device, and Lineage recovery can't flash TWRP, you may be locked out and have to repeat flashing boot, unless you flash TWRP.img on recovery again directly after flashing Rom.zip before rebooting.
Wait, you are flashing 19.1? That one is currently broken, I reported it a few posts ago, no matter how well you follow the steps. Go with 18.1Thanks, the process is all clear to me now. I have followed all the steps (including reflashing TWRP.img on recovery again directly after flashing Rom.zip and before rebooting) but I'm still getting the same error.
Not sure what it may be at this point. Perhaps I should try flashing a different ROM? I'll report back here after trying.
Oh, I feel silly for missing that, my bad! I have tried with 18.1 but I'm still getting the same error. The big difference here is that when I get the "Encryption Unsuccessful" error I can click on "Erase data" and the "Factory data reset" starts, but gets stuck in there. Oh, and I can see the clock and battery indicators now, as well as the nav buttons and power menu, so I think it's progress xD Also, the recovery has been flashed successfully as I can now access it directly from the phone. Do you know what else I could try?Wait, you are flashing 19.1? That one is currently broken, I reported it a few posts ago, no matter how well you follow the steps. Go with 18.1
Not sure honestly. An encryption error is odd, considering it shouldn't even try to encrypt. Testet the last official Lineage 15.1 yet?Oh, I feel silly for missing that, my bad! I have tried with 18.1 but I'm still getting the same error. The big difference here is that when I get the "Encryption Unsuccessful" error I can click on "Erase data" and the "Factory data reset" starts, but gets stuck in there. Oh, and I can see the clock and battery indicators now, as well as the nav buttons and power menu, so I think it's progress xD Also, the recovery has been flashed successfully as I can now access it directly from the phone. Do you know what else I could try?
Just installed 15.1 and it works correctly, so the problem seems to be with the newer versions. I wonder what that may be. I'll do some more research, but thanks for your help so far!Not sure honestly. An encryption error is odd, considering it shouldn't even try to encrypt. Testet the last official Lineage 15.1 yet?
Are older versions also broken? E.g.Wait, you are flashing 19.1? That one is currently broken, I reported it a few posts ago, no matter how well you follow the steps. Go with 18.1
Are older versions also broken? E.g.
lineage-19.1-20220408-UNOFFICIAL-yuga.zip
And do I necessarily need root to flash with this guide? Currently, LineageOS 15.1 is on it. I have rooted then with an app and currently have no root.
And if I need to root, what root instructions do I need to follow? Where can I find a suitable guide for installing TWRP?
Exactly the same also with me with 19.1. and 18.1.I have tried with 18.1 but I'm still getting the same error. The big difference here is that when I get the "Encryption Unsuccessful" error I can click on "Erase data" and the "Factory data reset" starts, but gets stuck in there.
Which ROM for 15.1 did you use? I tried with some older ones in the forum here and then here with the following: Download Last Nightly Build (2020-02-21)Just installed 15.1 and it works correctly, so the problem seems to be with the newer versions. I wonder what that may be.
Problem solved!I also tried with "LineageOS for microG": download.lineage.microg.org/yuga/
The error message comes again:
Android process media has stopped
And also: F-Droid isn't responding!? ...Updater has stopped
What could be the reason that it does not work?
* Your warranty is now void.
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/