[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

zpunout

Senior Member
Aug 26, 2015
401
92
Samsung Galaxy S5
Moto G5 Plus
@zpunout Ditto, is there a link with the fact that people say they hear me very weakly?
I can't say for sure if no DRM backup/restore is the cause, but I thought it's worth asking in case it helps narrow down the cause.

As a side note, DRM backup is generally desired for Xperia phones, but requires discovering exploits in the stock operating system to make doing it possible. Once the bootloader is unlocked without DRM backup of the TA partition, the unique DRM keys for your phone are lost forever. Link to XZ1 DRM key backup guide: https://forum.xda-developers.com/t/...ploit-to-backup-drm-keys-implemented.3795510/
 
Last edited:

Dfis

Senior Member
Sep 21, 2022
178
14
I can't say for sure if no DRM backup/restore is the cause, but I thought it's worth asking in case it helps narrow down the cause.

As a side note, DRM backup is generally desired for Xperia phones, but requires discovering exploits in the stock operating system to make doing it possible. Once the bootloader is unlocked without DRM backup of the TA partition, the unique DRM keys for your phone are lost forever. Link to XZ1 DRM key backup guide: https://forum.xda-developers.com/t/...ploit-to-backup-drm-keys-implemented.3795510/
If there's no backup, I think it's the only option is to focus on finding a specific module that restores the Call's Microphone settings.
 
  • Like
Reactions: zpunout and Maflo

decsimon

Senior Member
Aug 12, 2015
87
8
Hi guys, is there a way to make the connection between the phone and the (pioneer) bluetooth car stereo automatic?...because in my case it stays connected for a day and then I have to re-pair it every time because it doesn't do it automatically. I disabled the android auto app because I don't use it.
I use Lineageos 17.
Thank you
 

Maflo

Senior Member
Apr 4, 2020
107
26
After a long reflection (and while waiting for Havoc OS to be out of stand-by and release their 6.X version), I switched to LineageOS17 especially for the argument that it is the last version with stock app camera and that this is the version used by whoever builds the ROM.
First of all, a huge thank you to all the contributors of this version <3

Very satisfied so far with my switch to this version; just a few remarks:
- In "Styles and wallpapers", it lacks diversity of clock choices (like one with seconds which I like). But I quibble.
- The default "Gallery" application does not offer a dark theme. I quibble too => EDIT1: I found an alternative using Sony's Album app available at this address (take the version that does not contain the word ROM)

In short, once again, a big thank you for this version
 
Last edited:

7alvoo

Senior Member
Jul 18, 2019
185
58
Anyone? The phone is useless like this. Can't make normal calls anymore
I have experienced similar, faint echoing microphone only during gsm calls but hands free flawless. I have two phones, the first one was like this when I bought it, the bl was closed and I saved the ta partition unfortunately I didn't test the operation in closed state so I didn't notice that the rom replacement would have changed the situation. However, there are some facts you can read about, it happened in small series that the microphone rubber is not properly fixed so it moves during repair or when replacing the battery it falls off. If the installer is not aware of this type specific problem, it is easy to miss.In my case, this must have been the problem, because after a few months this phone required assembly after a slight drop, during which it turned out that the service had also left out the closing part of the display connector, which is why the display connector was able to release, so when the phone was completely disassembled, it became visible that the lower microphone rubber is missing. The bottom microphone and the speaker are very close to each other, and in the absence of rubber they cancel each other out. The malfunction of the microphone can happen spontaneously, you can see it is available on aliexpress because there was a demand for it. Only 1-2% of users report their phone malfunctioning on a forum, and even less in full detail.
 
Last edited:

Arcline

Senior Member
Sep 11, 2016
193
91
Hello.
The microphone is a very low volume on normal calls but ok on Speaker mode...
Does anyone else experience a similar issue?
Sounds like a bug in the software, otherwise the mic would be bad at all times. Try installing the latest stock rom and test, then install this rom and test again. You could also try Los 20 before reflashing to stock. My point is, try things out.
Drm keys have nothing to do with the microphone.
Also, any magisk modules? They migh be conflicting with the mic.
 

Maflo

Senior Member
Apr 4, 2020
107
26
Anyone else using LineageOS17 and TikTok? No matter how hard I look, the application does not want to launch and hangs on startup. However, I haven't touched much except deleting stock Gallery via ADB AppControl
 

7alvoo

Senior Member
Jul 18, 2019
185
58
Anyone else using LineageOS17 and TikTok? No matter how hard I look, the application does not want to launch and hangs on startup. However, I haven't touched much except deleting stock Gallery via ADB AppControl
I think you should consider switching to 18.1, the gallery works well, what you lose is the sony camera app 720p 960fps and the selfie wide-view, but opencamera gives the same beautiful picture as the sony app. Many thanks to flamefire for keeping 17.1 alive, but he wrote earlier that its improvement is finite, so I think sooner or later the wind of change will catch up. I don't know much about Tiktok, maybe try the tiktok lite version.
 

Maflo

Senior Member
Apr 4, 2020
107
26
I think you should consider switching to 18.1, the gallery works well, what you lose is the sony camera app 720p 960fps and the selfie wide-view, but opencamera gives the same beautiful picture as the sony app. Many thanks to flamefire for keeping 17.1 alive, but he wrote earlier that its improvement is finite, so I think sooner or later the wind of change will catch up. I don't know much about Tiktok, maybe try the tiktok lite version.
Well done, the lite application works perfectly. The lite version was not available in my region so I couldn't find it on the store.

Weird that the classic version doesn't work though, this is the first rom that does this to me (and I've tested Havoc 3.X, 4.X, 5.X as well as LineageOS 20)

For the rest, thank you for your advice but as long as @Flamefire will continue to use version 17 in its daily life, I plan to stay with it... Unless 17 and 18 have the same optimizations and differ only by the camera app.
 

rez78

Senior Member
Nov 16, 2017
172
40
I think you should consider switching to 18.1, the gallery works well, what you lose is the sony camera app 720p 960fps and the selfie wide-view, but opencamera gives the same beautiful picture as the sony app. Many thanks to flamefire for keeping 17.1 alive, but he wrote earlier that its improvement is finite, so I think sooner or later the wind of change will catch up. I don't know much about Tiktok, maybe try the tiktok lite version.

I think you should consider switching to 18.1, the gallery works well, what you lose is the sony camera app 720p 960fps and the selfie wide-view, but opencamera gives the same beautiful picture as the sony app. Many thanks to flamefire for keeping 17.1 alive, but he wrote earlier that its improvement is finite, so I think sooner or later the wind of change will catch up. I don't know much about Tiktok, maybe try the tiktok lite version.

I've just modified some icons and now open camera remember sony camera.
 

Maflo

Senior Member
Apr 4, 2020
107
26
Well, despite the disassembly and replacement of the loudspeaker (earpiece), still no sound coming out... I'm going to have to say goodbye to my XZ1C and use it as a backup phone. No choice therefore to switch to the Xperia 5 or the Xperia 10. It will have been a great adventure on the XZ1C for 3 years.
 

Dfis

Senior Member
Sep 21, 2022
178
14
Sounds like a bug in the software, otherwise the mic would be bad at all times. Try installing the latest stock rom and test, then install this rom and test again. You could also try Los 20 before reflashing to stock. My point is, try things out.
Drm keys have nothing to do with the microphone.
Also, any magisk modules? They migh be conflicting with the mic.
Tried to restore to the stock version and still same behavior... Tried to disable the modules and had no luck, the microphone was still low. I hope someone has a solution for this
 

Arcline

Senior Member
Sep 11, 2016
193
91
Tried to restore to the stock version and still same behavior... Tried to disable the modules and had no luck, the microphone was still low. I hope someone has a solution for this
In that case sounds like a hardware problem. Before doing anything drastic, try cleaning the microphone with those sprays (I forgot how they're called). It might be due to dirt.
 

Dfis

Senior Member
Sep 21, 2022
178
14
In that case sounds like a hardware problem. Before doing anything drastic, try cleaning the microphone with those sprays (I forgot how they're called). It might be due to dirt.
Hi. Doesn't make any sense... Before unlocking bootloader it worked perfect. Musr be something else
 

DaniJaponezu

Member
Apr 6, 2019
23
1
Im on Lineage 17 after 16 and i can see its much faster but it seems the battery is draining quicker than on 16. Anyone can confirm this? Also, how is the battery doing on 18 ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    Vacation season, so updates were a bit slow especially as I had to wait for LOS to release to 18.1 version so I could start backporting it to 17.1

    However I was able to add the Sony camera app from https://gitlab.com/xperiance/camera to the 18.1 & 19.1 builds in addition to the Snap camera. It seems to work but has flaws (e.g. with slow-motion) which I won't fix (I just take what is provided by that repo and include it in the ROMs so Magisk isn't required to install it)
    Let me hear your feedback as it isn't fully decided that this will be kept, e.g. if it causes other issues/incompatibilities which I didn't notice as I'm still on 17.1 on my main phone.
    5
    Thank you so much for regular updates.
    Just one thing - is this a typo or a reuploaded July build? Just to be sure
    Damn. Uploaded the wrong files. 6 builds a 2 files keeping the previous version cluttered the folder so much I selected the wrong pair of the 17.1 files. And I had to leave before the upload finished so couldn't double check after uploading yet.
    So yeah, reupload. Removed and uploading the correct 17.1 files. Thanks for the notification!
    4
    Thank you so much for regular updates.
    Just one thing - is this a typo or a reuploaded July build? Just to be sure
    1693049198338.png
    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
  • 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.