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

[ROM] LineageOS 17.1/18.1 UNOFFICIAL - (Update: 2021-09-18)

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


  • Total voters
    88
Search This thread

arthurbolotov

Member
Nov 12, 2018
21
0
Please tell me! Previously, I did not have a phone with Android 9 and higher, so I do not know how and what works. I have successfully installed LineageOS 17.1 (I love this ROM). I did everything through tvrp downloaded from here https://twrp.me/sony/sonyxperiaxz1compact.html

I like to experiment with the firmware later. I will edit the ROM for myself. Well, you will need a backup. Someone did a backup in the TWRP that I installed. Will it recover successfully? What should I back up (save)? Mark everything except image ? Or vice versa, only save the image? I'm sorry, I don't speak English well.

Thank you so much for supporting LineageOS. Note the ROM

I'm afraid to make a backup. It's just that I used to take everything on the 4pda forum. And there were problems with restoring the backup. Simply nothing was restored. Just a topic on this device is dead on that forum
 
Last edited:

7alvoo

Senior Member
Jul 18, 2019
120
27
oem, vendor, efs, data - in a separate package without pass protection, the first three only if you reset if there is a problem so there will be no problem with the restore data - the 'system' is not because you are flashing again
 

arthurbolotov

Member
Nov 12, 2018
21
0
oem, vendor, efs, data - in a separate package without pass protection, the first three only if you reset if there is a problem so there will be no problem with the restore data - the 'system' is not because you are flashing again
I wrote you a personal message. Please read it! I won't bother you anymore! I just want to make sure that I do it right. In" system", there are also system applications. I will just install my favorite applications, for example, I will delete the standard browser and change it to Via Browser, and so on. Therefore, if I delete something wrong, I will be able to restore "system". I thought so.
 

7alvoo

Senior Member
Jul 18, 2019
120
27
recovery - twrp
oem - from stock 47.2.A.11.228
vendor - from stock 47.2.A.11.228
efs - from stock 47.2.A.11.228
boot - 'kernel' inside the lineage pack
system - lineage pack
data - you personal apps, settings, etc

you only save the system if you have made root-level changes
if there is no root it will not save the system because there is the lineage package
 

jmbattle

Member
Jul 3, 2015
14
2
No only 17.1. Basically building with the same compiler as 18.1 which has better optimizations (3 versions difference) and found a few bugs through that...
Okay, I see.

This is a kind offer but no. I don't really have time to do much dev on this. When building the 17.1 I use it myself and see that works. Then I provide this here for others to benefit too. The 18.1 is just a bonus as changes to 17.1 usually work on 18.1. But as mentioned I don't have time for dev or testing on something I don't use myself anyway
Okay, no problem. I thought it might help with development to have a second device for experimenting with.

Just out of curiosity, may I ask why you're still using 17.1 instead of 18.1?
Is it simple for the Sony camera app?

Once again, keep up the good work!
 

arthurbolotov

Member
Nov 12, 2018
21
0
recovery - twrp
oem - from stock 47.2.A.11.228
vendor - from stock 47.2.A.11.228
efs - from stock 47.2.A.11.228
boot - 'kernel' inside the lineage pack
system - lineage pack
data - you personal apps, settings, etc

you only save the system if you have made root-level changes
if there is no root it will not save the system because there is the lineage package
Thanks. I also understood yesterday. Well, I rolled back to the native firmware 228 (9 Android). I didn't like Android 10 and 11. You can't delete anything from the firmware, the new Google rules. In general, I flashed it through newflasher yesterday. Then I deleted a lot of things, I set up the ROM for 3 hours. And now the battery holds for a very long time. It charges 3 times faster. Heaven and earth. I deleted the gapps via sd maid and looked at its remnants in mt search manager. I am completely satisfied. Well, in the future, I will definitely not buy a smartphone with Android 10 and higher. This is already iOS and not Android

It's just that if you freeze the application, it can still work exactly. I know this for sure, experience. It is necessary to remove the cavity from the firmware. For autonomy, this is very good. The only thing I don't like about the native ROM is that I can't turn off the vibration completely. I pulled the vibrator lib and the firmware did not start. And the vibration in the settings is not completely disabled. Maybe I'll find a way later. I experimented with different ROMs for 3 days.
 

Sprnza

Member
Mar 15, 2018
9
1
Do you guys have issues with email client? I'm unable to start it after upgrade to the latest 17.1 release. It just closes imidiately after opening.
 

Zzyrc

New member
Aug 28, 2021
1
0
Thanks for your work!

However, after updating from lineage-17.1-20201217-UNOFFICIAL-v1.7 to lineage-17.1-20210811-UNOFFICIAL-lilac, VoLTE works only partially: When receiving a call, the phone stays in 4G and clearly uses VoLTE. However, placing a call always falls back to GSM. There are no VoLTE options in the settings, and within the service app (*#*#4636#*#*), the VoLTE settings are greyed out. Incoming and outgoing VoLTE worked fine before the update.

SIM card is CallYa from Vodafone Germany, XPeria Parts correctly autoselected ams_fsc_lilac_vodafone_volte_vowifi

Anyone here using VoLTE with Vodafone Germany successfully?
 

rez78

Senior Member
Nov 16, 2017
100
22
In my 18.1 i see screen record,i see restart option and open camera work fine. I've tried both and prefer 18.1. With magisk,on 18.1,work perfect sony album and sony music,but not on 17.1!
 
  • Like
Reactions: 7alvoo and Dean F

jmbattle

Member
Jul 3, 2015
14
2
What benefits do you see for 18.1 ?
- no sony camera app
- no screen record
- no restart options
- limited sharing options
I came to 18.1 of this rom directly from another device (Samsung S4 Mini - RIP), so do not have any experience of the Sony camera app. I tried Open Camera briefly, it looks great, however I don't need that level of fine-grain adjustment. Screen recorder and Restart options also work fine on 18.1 for me.

Again, I'm coming to the XZ1 from a much slower device, so am delighted with how snappy and performant everything feels. The general stability and battery life on this rom are also fantastic. Great job devs!
 

paulquappe

Member
Apr 24, 2018
15
1
Hello!
For the last 10 days or so I had some problems with the battery run time. It seems that the phone doesn't go into deep sleep anymore and that drains the battery in less than 24 hours even if I don't use it.
Before that (since the update to the new EAS kernel) battery life was actually outstanding, i could sometimes use the phone for three days with a single charge.

It just happened out of nowhere, i can't remember that i changed anything or installed new apps..
I'm using the 17.1 version and a few days ago i updated from 20210720 to 20210811 by dirty flashing but the battery issues were there even before the update.

Does anyone have some recommendations what i could do about that? Or had a similar issue?
I would really like to avoid a clean new install.
Everything else works really well!
 

[email protected]

Senior Member
Jul 26, 2019
65
57
Hello!
For the last 10 days or so I had some problems with the battery run time. It seems that the phone doesn't go into deep sleep anymore and that drains the battery in less than 24 hours even if I don't use it.
Before that (since the update to the new EAS kernel) battery life was actually outstanding, i could sometimes use the phone for three days with a single charge.

It just happened out of nowhere, i can't remember that i changed anything or installed new apps..
I'm using the 17.1 version and a few days ago i updated from 20210720 to 20210811 by dirty flashing but the battery issues were there even before the update.

Does anyone have some recommendations what i could do about that? Or had a similar issue?
I would really like to avoid a clean new install.
Everything else works really well!
Yes. Had exactly the same issue using july 17.1. After upgrading to 18.1, it was gone. Somewhere in 18.1 release notes I read about extended SIM protocol support for 18.1, can't remember exactly.

To find out if that is the case for you, remove the SIM card overnight and see if battery drain gets any better.
 

paulquappe

Member
Apr 24, 2018
15
1
Yes. Had exactly the same issue using july 17.1. After upgrading to 18.1, it was gone. Somewhere in 18.1 release notes I read about extended SIM protocol support for 18.1, can't remember exactly.

To find out if that is the case for you, remove the SIM card overnight and see if battery drain gets any better.

Thanks for the hint!
I checked the mobile network settings and i noticed that something was changed in APN settings. I don't know how this happend but a wrong APN was selected.
After resetting it back to default, i have now again like 2 days of estimated battery run time.
 

Top Liked Posts

  • 1
    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 :)
  • 5
    Excellent! I'd be happy to test both Casting and Safetynet for the October version of 18.1 for you. Sounds like I may be re-flashing August anyway if I can't get this worked out, so its not like I'm risking much :p Shouldn't be a problem to dirty-flash a version with an earlier build date, right? I wouldn't think TWRP would care.


    (Feel free to send me an email or DM with your beta version of October 18.1, if you don't want to release the untested verion publically yet @Flamefire and I'll test Safetynet immediately)
    I uploaded the new versions. If you could give the 18.1 a try and check if safetynet passes it would be great. If it does not send me the output of `adb shell getprop` and I'll rebuild with a fix as required.
    See https://androidfilehost.com/user/?w=settings-dev-files&flid=327069 for the download
    2
    After updating to the September 18th version of 18.1 I've found that Chromecast no longer works on this device. The Cast device search works correctly but hangs upon actually trying to connect. Tried with an original release Chromecast and a Chromecast Ultra, and they both exhibit the same issue. It was working on the August 11th version of 18.1.

    Can anyone reproduce this issue? Is Casting working for you on the September 18th version of 17.1 @Flamefire ? In any other situation, I would just downgrade, but my retinas are very grateful that the Sony logo is dimmed on the phone's startup now and I don't know if I can go back lol
    I don't have a chromecast to test and no idea where to start looking for the issue... Is there anything in the logcat that may hint at the issue? Maybe compare the output for the working and broken version to see if that turns up anything.

    In any case I just built the October update for 17.1 which caused some trouble with getting CTS/Safetynet to pass. Trying the same on the 18.1 build now and will upload that later. Would need someone to test the 18.1 version anyway to check if safetynet passes there as well. And maybe the chromecast issue is also resolved there already. Could be something from Lineage upstream which they may have fixed there.
    1
    Thanks very much for your help! To me there is an annoying issue with Gboard or swiftkey keyboard that there is a keyboard selection bar, when enabling gestures.

    How do you remove the bar? It is really a waste of space for a small screen.

    Thanks!
    1
    @7alvoo thanks for the link. I tried to understand it with google translate. They seemed to solve the issue with the navigation bar? However I couldn't find the setting after check nearly every possible setting.
    1
    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 :)
  • 28
    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 any chance to actually test it myself.
    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
    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

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

    Version Information
    Status:
    Stable
    Stable Release Date: 2021-07-20
    11
    CHANGELOG

    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
    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
    6
    "Major performance improvement" sounds great!

    This would be for both 17.1 and 18.1, yes?

    By the way, would it be worthwhile donating a device to allow you to develop and test both 17.1 and 18.1 simultaneously?
    No only 17.1. Basically building with the same compiler as 18.1 which has better optimizations (3 versions difference) and found a few bugs through that...

    This is a kind offer but no. I don't really have time to do much dev on this. When building the 17.1 I use it myself and see that works. Then I provide this here for others to benefit too. The 18.1 is just a bonus as changes to 17.1 usually work on 18.1. But as mentioned I don't have time for dev or testing on something I don't use myself anyway :)
    6
    Im confused so u continue with updating the security patches every month correct ?
    Im confused about the 18.1 u also only update it with securitypatches or also other stuf like making stable and fixing problems orwhatnot ?
    I'm using an XZ1C with 17.1 myself and am keeping that updated as much as possible. This includes security patches and kernel patches and updates. I also included some stuff I need for myself (e.g. the SafetyNet fix w/o Magisk to use GooglePay) But I'm not really doing any development, e.g. adding new features beyond that.
    What I do for 17.1 I also add to 18.1 but I have no way to test that myself as I only have that one device, hence the disclaimer at the top. Adding stuff or fixing bugs in 18.1 is hence to dangerous for you guys, as I won't know if that bricks your phones. So I really only add what I tested in 17.1 and assume to be fine in 18.1

    TLDR: 99.9% security patches only. The ROM is already stable enough thanks to the original authors.