[ROM] LineageOS 17/18/19 UNOFFICIAL - (Update: 2023-08-26)

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


  • Total voters
    219
Search This thread

Flamefire

Senior Member
Jul 26, 2013
260
740
Sony Xperia XZ1 Compact
April updates are out, enjoy! Again I had to backport every security patch from 18.1 to 17.1 so it really seems to be dying...
I might switch to building LOS 20 though as derfelot doesn't seem to be providing updates anymore. And especially the battery charge/protection service that might be coming there looks promising...

Could you provide LineageOS recovery for this device?

Sorry no. I'd need to research how to create that recovery and maintaining 3/6 different ROM versions is already enough work especially with the hugely increased time/effort to keep LOS 17, so I can't afford to do even more.
 

sieghartRM

Senior Member
April updates are out, enjoy! Again I had to backport every security patch from 18.1 to 17.1 so it really seems to be dying...
I might switch to building LOS 20 though as derfelot doesn't seem to be providing updates anymore. And especially the battery charge/protection service that might be coming there looks promising...



Sorry no. I'd need to research how to create that recovery and maintaining 3/6 different ROM versions is already enough work especially with the hugely increased time/effort to keep LOS 17, so I can't afford to do even more.
First thank you for still releasing security updates for LOS 17.1, it would really great if you could build LOS 20 for this device, since your LOS builds are really stable and bug-free and I was planning to upgrade to LOS 19.1 but will wait for your builds of LOS 20.

Second thank you taking your time to reply my request. I will look into seeing if I can build it myself.
 
  • Like
Reactions: android666

Arcline

Senior Member
Sep 11, 2016
193
91
April updates are out, enjoy! Again I had to backport every security patch from 18.1 to 17.1 so it really seems to be dying...
I might switch to building LOS 20 though as derfelot doesn't seem to be providing updates anymore. And especially the battery charge/protection service that might be coming there looks promising...



Sorry no. I'd need to research how to create that recovery and maintaining 3/6 different ROM versions is already enough work especially with the hugely increased time/effort to keep LOS 17, so I can't afford to do even more.
Yeah imo making 20 and 17.1 builds would make more sense. Android 11 is very similar to 10 but with out stock camera and 13 is basically a better 12.
 

decsimon

Senior Member
Aug 12, 2015
87
8
hello, in lineageos19 is there the possibility To adjust the speed of adaptation of the automatic brightness?
 

HATA28-1

New member
May 10, 2023
4
0
Earth
Sony Xperia XZ1 Compact
@Flamefire amazing work keeping this device alive!
I'm already on my 3th XZ1C (2 others were damaged), and unable to find a good replacement.. And looking at the amount of people that voted for the poll, possible still 100-200 users of your LineageOS roms, so your work is very valued.

I was wondering if you, or anyone else could shed some light on the use of Adoptable Storage ?
Recently bought a new SD card and installed LineageOS 18.1 (from this thread). However, there is no option to "Format as Internal". Does anyone know if there is another option to use SD card as internal storage, or to selectively move apps to it? My biggest problem is that 32gb internal storage is no longer enough.

Thanks in advance for anyone's help!

EDIT: Forcing adoptable storage via ADB just causes bootloops. Maybe there is some other way to move apps to SD?
 
Last edited:

Flamefire

Senior Member
Jul 26, 2013
260
740
Sony Xperia XZ1 Compact
Yeah imo making 20 and 17.1 builds would make more sense. Android 11 is very similar to 10 but with out stock camera and 13 is basically a better 12.
Currently derfelot is still providing LOS 20 builds and he recently updated his kernel branch so I guess that's still active and hence I see no need to build that.
And judging by the download counter of AFH people use all 3 of my versions, i.e. some seemingly prefer A11 over 10&12 so doesn't look like I can drop that.

Hence I stick to 17, 18 & 19 for now.

BTW: May updates are out!

 

Kracien

New member
Apr 2, 2023
4
1
Does someone use Magisk on 17.1 ? I'm unsure on installation instructions about vbmeta.
I would like to root the device only in order to use a battery management magisk module (auto stop charge when 80% loaded).

EDIT : I successfully installed Magisk with the “Patch vbmeta in boot image” option. It's all right.
 
Last edited:

android666

Senior Member
Jun 19, 2010
102
19
Update: for T-Mobile mobile/data problems with LineageOS. I fixed this issue and here is how I did it (but it doesn't mean you may not fix it better way):
1) "deactivate screen-lock"; then TWRP backup of your recent installation
2) backup of internal storage to your PC (you may do it, in time of TWRP backup in 1) )
3) install latest vendor firmware with NewFlasher /download XperiFirm; decrypt FlashTool/ (copy/overwrite modem/oem.sin from Custom->vendor;and test LTE,...): link
4) install TWRP to vendor firmware (and backup of LTE-working vendor firmware)
(when you want decrypted phone / using DM-Verity...., install DM-Verity..zip before Lineage; + Data change format to ext2, then back to ext4 ; then install Lineage ; then DM-Verity again)
5) install Lineage ("wipe/install as directed" for LineageOS distribution; reboot; check if LTE works; TWRP backup /no screen-lock/; install Magisk; (optional if you do not like crypted storage Universal DM-Verity, ForceEncrypt, Disk Quota Disabler ), ...)
6) restore/install your apps/settings/internal storage (i did internal storage restore pc->phone while restarted in TWRP recovery)

XperiFirm (downloading vendor + custom firmwares): link
FlashTool (decrypt xperifirm downloads): link
NewFlasher - installing vendor firmware: link , howto

T-Mobile using VoLTE implementaion from Mavenir: info1 , info2

How to restore Wifi-networks (in case you lost them):
From TWRP backup, extract /data/misc/apexdata/com/android/wifi/WifiConfigStore.xml - can be achieved by (e.g.) NandroidManager (or extract by 7zip) and copy it to your system (i did it by TWRP filemanager) and file attribute is 0600
(adb shell chown -R 1000:1000 /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml)
Bluetooth pairing: /data/misc/bluedroid/bt_config.xml with 0660
 
Last edited:
  • Like
Reactions: Rataplan626

victor126

Senior Member
Sep 30, 2017
73
16
Does someone use Magisk on 17.1 ? I'm unsure on installation instructions about vbmeta.
I would like to root the device only in order to use a battery management magisk module (auto stop charge when 80% loaded).

EDIT : I successfully installed Magisk with the “Patch vbmeta in boot image” option. It's all right.
i just flash the rom gapps then magisk one after another.
 

DaniJaponezu

Member
Apr 6, 2019
23
1
Really now? I tried it on both and during calls i had the echo and feedback on both. Can you test it during a call and report back?
But be careful because the feedback loop may be dangerously loud.

Anyway, right now I'm on 17.1, previous build, and the phone works so damn well, it's amazing. I am really grateful to the developer.
Man, i flashed LineageOS 17 build 20230429 without wipe , over existing Lineage 16 and all good except the noise with wired headphones !
How do i fix this wired headphone issue? Someone said a clean flash wont fix it or im wrong ? Did you find the solution ?
 

foresto

Senior Member
Feb 13, 2010
161
61
@Flamefire I've run into a problem with the latest 17.1 source build. In case you don't get a github notification, could you have a look at lineage_lilac issue #1?
 
all good except the noise with wired headphones !
I have the same problem during calls, even on Discord. It's really annoying.
Admittedly, some people have written about changing TTY to VC0 in the accessibility options of the dialer, but I have yet to see if that helps on Discord as well.
What surprised me the most is that suddenly the first check of Play Integrity failed, so Google Pay no longer works. SafetyNet passes all checks. I tried clean reflashing, older builds, different GAPPS. Nothing. It seems that Google has changed something.
1684283730600.png
 

Attachments

  • photo_2023-05-16_20-07-58.jpg
    photo_2023-05-16_20-07-58.jpg
    39.4 KB · Views: 15
Last edited:

foresto

Senior Member
Feb 13, 2010
161
61
I just want to share some public appreciation for @Flamefire and all the work going into this project. Especially lately, with LineageOS having discontinued Android Security Bulletin patches on the 17.1 branch. Flamefire has been individually evaluating each one, and wrangling the applicable ones into applying on this branch.

Thank you so much for sharing your work, and keeping this excellent phone viable long after Sony abandoned it (and us). Cheers!
 

andifor

Member
Aug 20, 2016
43
13
Currently derfelot is still providing LOS 20 builds and he recently updated his kernel branch so I guess that's still active and hence I see no need to build that.
And judging by the download counter of AFH people use all 3 of my versions, i.e. some seemingly prefer A11 over 10&12 so doesn't look like I can drop that.

Hence I stick to 17, 18 & 19 for now.

BTW: May updates are out!


Thanks for all the updates. To relieve you from the V18.1 work, I'd love to switch to a V19 build. But last time I checked, there was still the opengapps missing for the corresponding Android version. And I didn't find any information, whether the opengapps project is still active or not (I guess not, as the last update is more than a year old).

Does somebody know, whether there is an alternative, as simple to use as opengapps with the same memory footprint as opengapps nano?
 

Flamefire

Senior Member
Jul 26, 2013
260
740
Sony Xperia XZ1 Compact
Does somebody know, whether there is an alternative, as simple to use as opengapps with the same memory footprint as opengapps nano?
Yeah looks like there won't be updates to opengapps, but I'm not sure if that is important for the existing versions.

For LOS 19+: I don't know how it compares but what works is mindthegapps, as mentioned in the OP.
 
  • Like
Reactions: sieghartRM

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    @Flamefire is the Man. Amazing job.
    2
    Quick question - What does it mean"Increased headset volume" in the latest release?
    I had an issue during phone calls that the other side heard my voice very low.
    Does this fix improve that?
    Likely not, I just noticed that I often had to turn up the volume of my (wired) headset to max in some apps and it was (only) just enough, so I increased that (output) volume a bit.
    maybe it's just my impression, but it seems to me that sony camera takes better pictures with lineageos 17.1 rather than with 18.1 and 19.1....
    I'd actually expect that because there is some tight system integration of the Sony camera on 17.1 which isn't possible on 18+ anymore (which is why it was excluded) and the port seemingly just gets the app itself back without the full integration
    But now finally my bank supports registering a browser, and that all works fine on my xz1c! So I don't need the banking app anymore, and can use my phone perfectly fine for everything I want!
    FWIW the basic & CTS attestation (aka SafetyNet) works on the ROM which seems to be enough for most banking apps and at least Google Pay/Wallet. But I guess you already tried that it isn't enough for your banks app so I'm happy you found a workaround at least.
    I wanted to make a donation/ beer but no link for that? Even if you do it for fun, it's nice to get some appreciation so you can actually get that nice triple beer right? So, is there a place to donate?
    I had only added the links to my profiles about page so far, but now added it also to the OP.
    And yes I do appreciate the couple donations I received so far from various people as while it is fun it is also quite some work, especially with the backports to 17.1 and the occasional feature addition
    1
    Thanks @Flamefire for the hard work!
    Quick question - What does it mean"Increased headset volume" in the latest release?
    I had an issue during phone calls that the other side heard my voice very low.
    Does this fix improve that?
    1
    Wanted to share my story and thank the maintainer. I found this ROM while searching for recent Android 10 options for Z5 Compact and thought to myself, wow that's exactly what I need and even though I also also have a XZ2 Compact I went and bought an XZ1 Compact just to try it out. Guess what, it's a great experience so far! Maybe I keep it and give the XZ2C to my wife... 😊. Thank you so much @Flamefire for your effort to backport current security stuff to Android 10 for this great device!
  • 56
    LineageOS 17/18/19 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+)

    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.
    Make sure you download the right version, vanilla LineageOS is named lineage-*UNOFFICIAL-lilac.zip while the MicroG version is named lineage-*-MICROG--lilac.zip

    REQUIRED FIRMWARE: 47.2.A.11.228

    IMPORTANT:
    I only test the 17.1 releases myself. The 18.1/19.1 are build from mostly the same sources and hopefully work. I only test them roughly.
    Backup download

    INSTALLATION

    IMPORTANT:
    Magisk seems to cause issues (bootloops) on update, so remove it first and reinstall if required. Note that Magisk is usually not required unless you want root.
    1. Put the zip file of the ROM on your SD card or internal store and boot into recovery.
    2. When coming from stock ROM, do a full wipe (i.e. factory reset) via "Wipe". You don't need to wipe system. When flashing the stock ROM you can select to not keep user data which is equivalent to this step.
    3. Go to "Install", select the zip file and add optionally the gapps zip. Then flash it.
    4. After updates you may now wipe cache&dalvik (option after install)
    I suggest to use modpunks TWRP recovery. Again: Don't forget the md5sum file!
    TWRP 3.3.1-0 by modpunk / derf elot
    Or use the latest TWRP for 17.1/18.1 or TWRP for 19.1.
    3.7.0 Seems to work well with latest updates (decryption working) but LineageOS 19.1 (Android 12) requires the ones with "_12" suffix, e.g. 3.6.2_12.

    For ease of use I suggest to flash this recovery (only required once):
    1. Boot in Fastboot mode: Hold "Volume Up" while connecting the USB cable to phone and PC
    2. Flash TWRP by running this on the PC: fastboot flash recovery twrp-3.3.1-0-lilac-android10-1.img
      (adjust the filename if necessary)
    3. From now you can boot TWRP by turning on the phone with "Volume Down" + Power
    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.

    Upgrades between versions​

    Dirty-flashing (e.g. from 17.1 to 18.1) works well but you have to also flash a GApps version matching the Android version or the device will bootloop.
    For the upgrade to 19.1 you may need to fully remove OpenGapps by wiping /system and install e.g. MindTheGapps.

    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/12
    ROM Kernel: Linux 4.4.x
    Based On: LineageOS
    GApps: None included, except for the MICROG builds. Recommended is OpenGApps for 17/18 and MindTheGapps for 19.
    26
    CHANGELOG


    2023-09-16

    • September security patches (backports from 18.1 to 17.1)
    • Kernel updates (CIP tag -st44)
    2023-08-25
    • August security patches (backports from 18.1 to 17.1)
    • Kernel updates (CIP tag -st43)
    • Increased headset volume
    • Add Sony camera app to 18 & 19 (files copied from xperiance)
    2023-07-26
    • July security patches (backports from 18.1 to 17.1)
    • Kernel updates (CIP tag -st42)
    2023-06-16
    • June security patches (backports from 18.1 to 17.1)
    • Kernel updates (CIP tag -st41)
    • Fix noise when calling with a headset
    • Configurable fingerprint sensor when screen is off (Settings->Lockscreen)
    2023-05-19
    • Fix Play Integrity checks --> Google Wallet works
    • Minor improvements that were missed earlier
    • May security patches (backports from 18.1 to 17.1)
    • Kernel updates (CIP tag -st40)
    2023-04-30
    • April security patches (backports from 18.1 to 17.1)
    • Kernel updates (CIP tag -st39)
    2023-03-31
    • March security patches (backports from 18.1 to 17.1)
    • Kernel updates (CIP tag -st38)
    • Fix possible camera issues on 18.1
    2023-02-25
    • February security patches
    • Kernel updates (e.g. CIP tag -st37, also add some missing patches to 19.1 kernel)
    • Use newer compiler (Clang 12.0.7) for kernel, possibly improving performance/battery life
    • Add "Re-apply Modem" setting to XperiaParts to help with connection/modem-crash issues
    • Clear some space on /system & /vendor partitions by removing files no longer needed
    • Fix Android Auto connection
    2023-01-20
    • January security patches
    • Kernel updates
    • MicroG builds added (build date 31st Jan, but same sources)
    2022-12-27
    • December security patches
    • AGPS fix (using Google servers)
    • Kernel updates (e.g. Wireguard v1.0.20220627, improved security against stack attacks)
    2022-11-15
    • November security patches
    • WLAN driver update
    • Huge APN update
    2022-10-13
    • October security patches
    • Kernel update
    • APN for DIGI HU
    • Option to switch temporarily to 2G on boot
    2022-09-29
    • September security patches
    • Kernel update
    • APN update
    2022-08-12
    • August security patches
    • Kernel update (CIP st20)
    2022-07-25/28
    • July security patches
    • Kernel update
    2022-06-30
    • June security patches
    • Kernel update
    • Backport fix for CVE-2021-39686
    • Workaround fixing bootloop with recent OpenGapps (20220503 tested)
    2022-05-16
    • May security patches
    • Fix mic volume issue with wired headsets
    • Known issue: OpenGapps after 15/2 result in bootloop
    2022-05-03
    • April security patches
    • Kernel update (CIP st5-tag)
    • Removed LineageOS updater (unused application here)
    • Added Sony identification packages (Compatibility for some Sony apps from other sources)
    2022-03-20
    • March security patches
    • Updated some carrier configs (mostly Indian&Chinese) for IMS (VoLTE...)
    • Better support for flip covers
    • Allow disabling battery optimizations for the SMS app
    2022-02-20
    • February security patches
    • Kernel 4.4.302 (final LTS kernel)
    • Re-enable VoLTE toggle switch (there were reports of modem crashes when VoLTE is disabled, can't reproduce this, hence added the setting back)
    2022-01-23
    • January security patches
    • Kernel 4.4.299
    • Wireguard v1.0.20211208
    • Enhanced display brightness range
    • Experimental Ultra-Dim mode
    2021-12-19
    • December security patches
    • Kernel 4.4.295
    • QCom driver updates
    • Fix some permission issues
    • Reset phone ID to XZ1C
    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
    20
    I'm happy to announce the June update. Took a lot more work as I backported quite a bit to our kernel to fix CVE-2021-39686 although I'm not sure we were ever really affected by that. Anyway the backport fixes that hole and a few potential others making the device a bit safer!
    18
    April updates are out, enjoy! Again I had to backport every security patch from 18.1 to 17.1 so it really seems to be dying...
    I might switch to building LOS 20 though as derfelot doesn't seem to be providing updates anymore. And especially the battery charge/protection service that might be coming there looks promising...

    Could you provide LineageOS recovery for this device?

    Sorry no. I'd need to research how to create that recovery and maintaining 3/6 different ROM versions is already enough work especially with the hugely increased time/effort to keep LOS 17, so I can't afford to do even more.
    15
    @MarkMRL Update 20220516 is out which should also fix the headset issue. Reproduced, found and fixed it as far as I can tell.