• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[ROM] LineageOS 17.1/18.1 UNOFFICIAL - (Update: 2021-11-29)

Shall F-Droid be included in the ROM(s)?


  • Total voters
    105
Search This thread

rez78

Senior Member
Nov 16, 2017
103
22
Do you mean the option (roughly translated) "Local Terminal - Activate terminal-app with access to local shell"? Maybe a screenshot of the option if you still have it somehow?
What about using any terminal app from the play store? Isn't that enough? I can check it anyway why it may have disappeared.
Yes i mean "local terminal", disappeared with last 18.1 update. Thanks
 

petefoth

Senior Member
... Maybe someone knows someone who has an unused phone, maybe with cracked screen but otherwise working or one which isn't used anymore. Again: I can't promise anything in exchange and I know the XZ1C is still such a good phone that prices aren't exactly low. So this is really meant as an outreach to the community in case anyone has somehow access to an unused phone which I can use for testing and see what I can do with that.
Thanks again for what you do. I'm sorry I can't help directly: I did have a spare device, with a cracked screen, which I used for testing my unofficial /e/OS builds. Unfortunately it first stopped making calls, then a while later stopped booting altogether, so it is now just a doorstop :(

I have posted your plea in the [/e/OS community forum thread](https://community.e.foundation/t/unofficial-build-sony-xperia-xz1-compact-lilac-e-0-13-q/23886/102) about this device (where someone has in the past offered to donate)
 
  • Like
Reactions: Flamefire

Flamefire

Senior Member
Jul 26, 2013
145
238
Sony Xperia XZ1 Compact
Thanks again for what you do. I'm sorry I can't help directly: I did have a spare device, with a cracked screen, which I used for testing my unofficial /e/OS builds. Unfortunately it first stopped making calls, then a while later stopped booting altogether, so it is now just a doorstop :(

I have posted your plea in the [/e/OS community forum thread](https://community.e.foundation/t/unofficial-build-sony-xperia-xz1-compact-lilac-e-0-13-q/23886/102) about this device (where someone has in the past offered to donate)
Thanks for that! I'm currently in contact with @landsome who might be able to get his hands on a working device which he can donate. But always good to have a backup in case that doesn't work out in the end. So thanks again!
 

.kaputnik.

Member
Jan 12, 2012
29
9
Hi all, just a quick info from me and a question: As I already wrote I'm still using LOS 17.1/Android 10 as it allows using the Sony camera which Android 11 does not and the benefits of Android 11 compared to 10 are not worth the switch for me.
However with the recent release of Android 12 switching to that becomes worth it due to various improvements over those 2 versions.
However porting a new LOS to a that device isn't easy and requires quite some testing (and I can't even promise I'll succeed)
So in order to keep supporting multiple LOS/Android versions I'd need a spare device for testing.

Hence I'm asking if anyone would be able to donate an XZ1C to me for that. Maybe someone knows someone who has an unused phone, maybe with cracked screen but otherwise working or one which isn't used anymore. Again: I can't promise anything in exchange and I know the XZ1C is still such a good phone that prices aren't exactly low. So this is really meant as an outreach to the community in case anyone has somehow access to an unused phone which I can use for testing and see what I can do with that.
Of course you can tell me which LOS version you use yourself and I'll try and take a bit of extra effort to support that as long as I can.

Thank you all for your support and the nice words here which motivate me to put in that extra effort to provide you with a ROM that works on more than only my device and even one I don't even use myself!

Sadly I only have the XZ1C I use. The above is duly noted though, if I get hold of another one somehow, or decide to replace mine before you stop developing the rom.

Shipping to your country according to your profile is cheap and simple too, not as prohibitive as shipping overseas last time I did something similar :)
 
  • Like
Reactions: Flamefire

paulquappe

Member
Apr 24, 2018
17
1
You are looking at the security patch level for the vendor. This is basically the level of updates from the Sony ROM which we use to access the hardware etc. And as Sony stopped updating in 2019 the vendor security patch level is correctly1 Sept, 2019. The Android security patch level is that of the release and basically includes the patches for Android itself and the kernel. That is updated to the most recent with every release. Obviously we cannot update the vendor security patch level as we don't have the sources for the Sony blobs.
So there are 2 patch levels in the options and one is 1 September 2019 and the other 1 October 2021
Thank you for the answer but for me both patch levels are at 1 September 2019 as you can see in the screenshot. Or am I looking at the wrong place in settings? Does it say something else in your devices settings?
 

Attachments

  • Screenshot_20211024-101411_Settings.png
    Screenshot_20211024-101411_Settings.png
    86.6 KB · Views: 28

Guntram

Senior Member
Oct 30, 2010
115
13
Can anyone judge which of the 17.1-versions works well?
I'm trying for several hours now - I always get bootloops after some seconds into the "welcome"-screen...
Those bootloops are not stoppable - only running out of battery can stop this vicious cycle ;-). (I can select to shut down - but the phone will reboot itself after some minutes!)

LOS 18.1 does work.

My process: download .228 firmware using xperiafirm (tried two different DE-versions), flashing it via newflasher, booting, setting up, flashing twrp (tried 3.3x and 3.5x), booting into twrp, factory reset (and tried several other wipes), flashing LOS + GApps (tried without gapps - got even less far into booting)...

I tried the oldest and newest LOS 17.1 available at the download link.

What might be the problem?
 
Last edited:

Flamefire

Senior Member
Jul 26, 2013
145
238
Sony Xperia XZ1 Compact
Can anyone judge which of the 17.1-versions works well?
I'm trying for several hours now - I always get bootloops after some seconds into the "welcome"-screen...
Those bootloops are not stoppable - only running out of battery can stop this vicious cycle ;-). (I can select to shut down - but the phone will reboot itself after some minutes!)

LOS 18.1 does work.

My process: download .228 firmware using xperiafirm (tried two different DE-versions), flashing it via newflasher, booting, setting up, flashing twrp (tried 3.3x and 3.5x), booting into twrp, factory reset (and tried several other wipes), flashing LOS + GApps (tried without gapps - got even less far into booting)...

I tried the oldest and newest LOS 17.1 available at the download link.

What might be the problem?
Using 17.1 myself and others reported success too, so no bootloops in general.

What you could try: Enable ADB debugging in developer options, attach USB cable to phone and PC, run `adb shell` on PC and select the "always grant" option on the phone. This is just so there is no further confirmation for the step below.
Then flash the new ROM and once it starts restarting run `adb logcat` on the PC. Hopefully the phone boots far enough that it will spit out some log entries. I'd need them and see if I can do anything for you.
 

petefoth

Senior Member
My process: download .228 firmware using xperiafirm (tried two different DE-versions), flashing it via newflasher, booting, setting up, flashing twrp (tried 3.3x and 3.5x), booting into twrp, factory reset (and tried several other wipes), flashing LOS + GApps (tried without gapps - got even less far into booting)...
With my devices, I always needed to format data (rather than just wiping) before changing Android versions. Without the format data, I would get bootloops wich ended up back in TWRP
 

Guntram

Senior Member
Oct 30, 2010
115
13
With my devices, I always needed to format data (rather than just wiping) before changing Android versions. Without the format data, I would get bootloops wich ended up back in TWRP
So - coming from LOS 18.1 I don't need to reflash original firmware, just flash LOS 17.1 after wiping dalvik, system, cache and data?
 

Guntram

Senior Member
Oct 30, 2010
115
13
That is my experience, except you must **format** data partition not just wipe it.
That's it! Seams to have fixed my issue!
I was confused, as there was no problem with LOS 18 (coming from latest stock --> Android 9 ). So formatting data is important!

Sorry for disturbing this thread and many thanks for all the good work here!
 

Flamefire

Senior Member
Jul 26, 2013
145
238
Sony Xperia XZ1 Compact
Yes i mean "local terminal", disappeared with last 18.1 update. Thanks
I've found that the upstream LineageOS decided to remove the bundled terminal app. Hence that option is indeed gone. As this is an upstream decision I assume they have good reasons for that and won't reintroduce it as there might be issues (bugs, security problems...) with it.
See https://github.com/LineageOS/android/commit/e6c801d03c01d6846f0132805cddcf2285ae1107 for the commit which removed the terminal app (the setting is invisible if the app is gone)
 
  • Like
Reactions: rez78

Rubik.Orange

Senior Member
Mar 5, 2010
192
32
Busan
is there anyone have problem with VoLTE?

on my device, VoLTE is half-broken. LineageOS is recognizing VoLTE is unavailable and disable VoLTE option in Settings app (Mobile Network section) but can receive call through VoLTE. the only problem is can't make a call

*IMS features in Xperia Parts app is enabled and successfully loaded my carrier's modem config.
 

cabroncitos

Member
Jan 14, 2019
8
6
Strangest thing happend: Voice upstream does not work since two or three weeks ago (malfunction started more or less when there was this gale storm in Germany; had LOS17 September update and now stays the same with the October Update) - when I initiate the call. When I receive a call, it works. Does not matter if 2G/3G/4G or VoLTE. Also: only happens in the Telefonica Network - I tried AldiTalk and FONIC Germany. Strangly enough, with a different phone (Nexus5 + LineageOS): same thing. Both phones work perfectly with Vodafone and Telekom (congstar) SIM cards. Any idea anyone what could be wrong?

@Flamefire: Thanks for keeping this ROM alive! Da es so aussieht als sind wir aus derselben Stadt (DD), lade ich Dich dafür gern mal zum Bier ein!
 
Last edited:

gladykov

Member
Jul 12, 2010
29
3
Hi all, just a quick info from me and a question: As I already wrote I'm still using LOS 17.1/Android 10 as it allows using the Sony camera which Android 11 does not and the benefits of Android 11 compared to 10 are not worth the switch for me.
However with the recent release of Android 12 switching to that becomes worth it due to various improvements over those 2 versions.
However porting a new LOS to a that device isn't easy and requires quite some testing (and I can't even promise I'll succeed)
So in order to keep supporting multiple LOS/Android versions I'd need a spare device for testing.

Hence I'm asking if anyone would be able to donate an XZ1C to me for that. Maybe someone knows someone who has an unused phone, maybe with cracked screen but otherwise working or one which isn't used anymore. Again: I can't promise anything in exchange and I know the XZ1C is still such a good phone that prices aren't exactly low. So this is really meant as an outreach to the community in case anyone has somehow access to an unused phone which I can use for testing and see what I can do with that.
Of course you can tell me which LOS version you use yourself and I'll try and take a bit of extra effort to support that as long as I can.

Thank you all for your support and the nice words here which motivate me to put in that extra effort to provide you with a ROM that works on more than only my device and even one I don't even use myself!
Maybe you could kickstart money to buy it? I'm willing to contribute if it will help you. And thanks for great work - amazing story of keeping it alive!
 

Flamefire

Senior Member
Jul 26, 2013
145
238
Sony Xperia XZ1 Compact
Strangest thing happend: Voice upstream does not work since two or three weeks ago (malfunction started more or less when there was this gale storm in Germany; had LOS17 September update and now stays the same with the October Update) - when I initiate the call. When I receive a call, it works. Does not matter if 2G/3G/4G or VoLTE. Also: only happens in the Telefonica Network - I tried AldiTalk and FONIC Germany. Strangly enough, with a different phone (Nexus5 + LineageOS): same thing. Both phones work perfectly with Vodafone and Telekom (congstar) SIM cards. Any idea anyone what could be wrong?

@Flamefire: Thanks for keeping this ROM alive! Da es so aussieht als sind wir aus derselben Stadt (DD), lade ich Dich dafür gern mal zum Bier ein!
I tried a call in the Telefonica network (winSIM) with the october version and that works. Both receiving and initiating works.
I'd guess the storm destroyed some stuff in your area? Especially as it happens for 2 different ROMs and phones I don't think we can do anything
I mean you can check the logcat if it shows anything useful but I doubt it

You are from DD too? Nice :D
 

gladykov

Member
Jul 12, 2010
29
3
LOS 18.1 20211019 works without issues for me :) Also I see Gabeldorsche Bluetooth stack from developer options is fixed somehow in that version (used to be broken on previous). Thank you!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    Currently uploading the new builds. Gonna take a bit...
    The 18.1 version seemingly works, passes SafetyNet etc. but as usual, I don't really test that version although I can now say that it flashes clean over the previous release and boots fine. Thanks to the test phone by @landsome
    I tested the 17.1 version the same way: Flash over previous release, boot and SafetyNet is working. However I'll flash that on my own phone tomorrow and test it a bit more "in production". Hence you'll find that in the "Testing Only" folder on AFH until I verified it a bit more. No time left for that today but if you want to give it a try feel free.
    As mentioned I fixed the IMS bug on 17.1 and on my phone (October build with only that patch applied) VoLTE and VoWIFI work fine.

    As for GPS: The XZ1C has known hardware issues with the GPS antenna. The ROM if flashed correctly works ok although I noticed that GPS is shaky too. Some users reported that squeezing the left edges often helps...

    I'll tackle the HD audio stuff later. That needs some more work to do it properly.

    Donations: See the initial post and my profile (About section). Always welcome and keeps me motivated to put in a bit of extra effort :) Please note that I often integrate changes from others, like modpunk/derfelot, linckandrea etc. On Github you can usually see that as "authored by X, committed by Flamefire" as I try to keep the author unchanged. So others deserve credit (and donations) too.
    7
    I'm writing this from my phone updated to 17.1 November build. Hence I consider it stable :)

    December update will be there mid December, I'd say. Not sure if I manage to fix HD audio till then

    So far, wish you a nice Advent season!
    6
    I never tested on 18.1. VoLTE works well on stock and Havoc OS. only have a problem on this LineageOS 17.1 ROM(prior to july build)
    I tested SKTelecom and LGU+ SIM cards and on both environment, VoLTE is broken
    Ok great. Then I think I found and fixed the issue. I'll wait for the November security updates until I provide a new release as this isn't super critical. Shouldn't be more than a week I'd say.

    @kenbw2 @Guntram no idea about GPS though. Works fine here with 17.1, I. E. Google maps Navigation works well although it says something about bad precision. But my current location is quite accurate
    5
    Updates will be there as soon as I got time. Likely in the next 2 days as usual ;)
    5
    Next update to keep you guys posted and tell a bit where the donations go:
    I was successfully able to reproduce a working ROM at the state of the October build. This is good news because it means at least I'm able to publish a fixed 17.1 version where IMS (VoLTE, VoWifi) works again if the November sources really don't work anymore and more importantly also means I have a starting point to bisect which changeset breaks the boot process. This is still VERY cumbersome but at least something.

    This trial&error method would NOT be possible without the test phone, as a failed attempt (soft brick) means I have to completely reset the phone, flash stock etc. which I obviously can't do on my own phone (which I especially now really rely on)
    The donations allowed me to upgrade my build machine with more RAM and SSD memory. This was still expensive but due to the donations it wasn't that much any more and at least the RAM (but not the SSD) is also useful for myself as I have my games on another partition on the same PC ;-) The SSD(s) were required as LOS (especially multiple versions) takes a lot of space and having that and the extended RAM allows for faster turnaround times in building making testing a bit easier. For comparison: A full LOS build from scratch on my old machine took ~8hrs, now on my new PC with the extended RAM and SSD I'm down to about 2hrs.

    So far... Now comes the painful work of figuring out what breaks the boot.
    Still: If anyone has information on how to debug such soft bricks that would help a lot!
  • 33
    LineageOS 17.1/18.1 for Sony Xperia XZ1 Compact

    logo.png


    RELEASE

    This is an alternative ROM for the Sony Xperia XZ1 Compact.

    Creating this to honor the great work of modpunk and derf elot from https://forum.xda-developers.com/t/rom-lineageos-18-1-unofficial-2-0-update-2021-01-20.4047763/ which seems to be discontinued. Posting an own thread to keep the latest versions visible, I'm NOT claiming authorship over the ROM.
    I basically just build the ROM using the latest changes from upstream LineageOS/Google and kernel updates (usually incorporated by derf elot ) See my post.

    FEATURES
    • Signed with dev keys
    • EAS kernel
    • Passes SafetyNet out of the box (thanks Rooted_Ansh, Havoc-OS Team and kdrag0n)
    • Seedvault (Video)
    • IMS support (thanks to Rooted_Ansh and also Shujath)
    • 17.1 has stock Sony camera (not possible on 18.1)

    DOWNLOAD

    You can download the latest release here.
    HINT: Download both the ZIP and md5sum file so TWRP can check the consistency of the upload/download.
    REQUIRED FIRMWARE: 47.2.A.11.228

    IMPORTANT:
    I only test the 17.1 releases myself. The 18.1 are build from mostly the same sources and hopefully work.

    INSTALLATION

    Put the zip file of the ROM on you sdcard or internal store and boot into recovery.
    I suggest to use modpunks TWRP recovery. Again: Don't forget the md5sum file!
    TWRP 3.3.1-0 by modpunk for LineageOS 17.1
    TWPR 3.5.0-0 by derf elot for LineageOS 18.1
    Or use the latest TWRP from https://twrp.me/sony/sonyxperiaxz1compact.html.

    I heavily recommend to make a full backup before any installation so you can go back in case of issues. Flashing an older ROM usually helps to recover bootloops etc.

    KNOWN ISSUES
    • UnifiedNlp doesn't work with LineageOS 18.1 yet
    • Spell checking doesn't switch if you change keyboards
    SUPPORT

    There is NONE. If you have any issues or question ask in the thread so maybe someone else knows the answer.
    I'm just providing the ROM (Lineage 17.1 variant) I use myself for others to try to and just build the Lineage 18.1 ROM without much testing.
    If you prefer to use a more well-tested Android 11 ROM, I suggest to look at Havoc-OS.
    Contributions to the sources are welcome and likely get integrated into the next release.

    Contributors
    modpunk, derf elot, Rooted_Ansh, Flamefire, linckandrea
    Source Code: https://github.com/Flamefire/android_device_sony_lilac, Original: https://github.com/whatawurst/

    If you want to buy me a coffee/beer, I'll appreciate it but it is not necessary.
    Also please consider donating to the original authors too or to local charities as requested by @modpunk

    Special thanks to landsome for donating a test phone for bug hunting and development.

    ROM OS Version: Android 10/11
    ROM Kernel: Linux 4.4.x
    Based On: LineageOS

    Version Information
    Status:
    Stable
    Stable Release Date: 2021-10-19
    12
    CHANGELOG


    2021-11-29

    • November security patches
    • Kernel 4.4.291
    • Fix IMS on 17.1
    • Fix/enhance Wifi-Display
    • Fix some power hints
    • Update APNs
    2021-10-19
    • October security patches
    • Kernel 4.4.288
    2021-09-18
    • September security patches
    • Include some more security patches from AOSP
    • Clang 11 for LOS 17.1 version (same as 18.1, improved optimizations)
    • Misc bugfixes backported from Android 11 to Android 10
    • Kernel 4.4.283
    2021-08-11
    • August security patches
    • Fix bug with switch 3G->4G in XperiaParts not working on slow boot
    • Include some more security patches from AOSP
    • Kernel 4.4.279
    2021-07-20
    • July security patches
    • Kernel 4.4.275
    2021-07-03
    • June security patches
    • Update to Linux Kernel 4.4.272
    • Updated APNs
    10
    Currently uploading the new builds. Gonna take a bit...
    The 18.1 version seemingly works, passes SafetyNet etc. but as usual, I don't really test that version although I can now say that it flashes clean over the previous release and boots fine. Thanks to the test phone by @landsome
    I tested the 17.1 version the same way: Flash over previous release, boot and SafetyNet is working. However I'll flash that on my own phone tomorrow and test it a bit more "in production". Hence you'll find that in the "Testing Only" folder on AFH until I verified it a bit more. No time left for that today but if you want to give it a try feel free.
    As mentioned I fixed the IMS bug on 17.1 and on my phone (October build with only that patch applied) VoLTE and VoWIFI work fine.

    As for GPS: The XZ1C has known hardware issues with the GPS antenna. The ROM if flashed correctly works ok although I noticed that GPS is shaky too. Some users reported that squeezing the left edges often helps...

    I'll tackle the HD audio stuff later. That needs some more work to do it properly.

    Donations: See the initial post and my profile (About section). Always welcome and keeps me motivated to put in a bit of extra effort :) Please note that I often integrate changes from others, like modpunk/derfelot, linckandrea etc. On Github you can usually see that as "authored by X, committed by Flamefire" as I try to keep the author unchanged. So others deserve credit (and donations) too.
    7
    I'm writing this from my phone updated to 17.1 November build. Hence I consider it stable :)

    December update will be there mid December, I'd say. Not sure if I manage to fix HD audio till then

    So far, wish you a nice Advent season!
    6
    Updated with the July security patches.
    Note: AndroidFileHost was quite quirky today, so use the md5sum files to verify the integrity of the files