[ROM] LineageOS 17.1/18.1 UNOFFICIAL - (Update: 2022-11-15)

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


  • Total voters
    182
Search This thread

[email protected]

Senior Member
Jul 26, 2019
73
62
Currently testing the September builds. AFH seems to reject uploads right now, so might take another day or 2. Also checking the 19.1 sources from derfelot and integrating some of the changes into the new build, e.g. new APN settings.

BTW: Is there anyone who would prefer the 18.1 version over the 19.1 version? Thinking about porting my changes to 19.1 and not building 18.1 anymore, so 17.1 for those who want the Sony camera app and 19.1 for those who want a fresh system. Not sure if there is any advantage of the 18.1 version over 19.1
UX of 19.1 is a drawback in my eyes, but I'd prefer to keep up with the development of android. Feel free to drop 18.1.
 

mxbndr

Senior Member
Sep 29, 2010
51
5
Where does 3G networks have been turned off?


FWIW, the switcher does actually seem to work sometimes, it just takes up to 5 minutes, which is much longer than doing it manually. I have also experimented with using an app that blocks 3G connections and locks LTE and that might be helping (it certainly speeds up the connection, anyway).
 

mxbndr

Senior Member
Sep 29, 2010
51
5
I'm using 17.1 (because of the stock camera and I think also the faster storage access framework). I noticed VoLTE isn't provisioned as shown in the *#*#4636#*#* Phone Info settings. To get VoLTE working, do I need to reinstall stock firmware to get it enabled before reinstalling LOS again? My carrier says they are VoLTE in their FAQ.

I think two things have to be true:
  1. The voLTE needs to have worked on your stock firmware (USA in my case, which incidentally does not affect fingerprint reading despite that firmware disabling it)
  2. In settings, there is an "Xperia Parts" section that lets you turn on IMS (which is responsible for Wi-Fi calling, voLTE, etc). I had to toggle this to on before mine worked.
 
  • Like
Reactions: zpunout

rez78

Senior Member
Nov 16, 2017
155
32
first install magisks (through TWRP / zip (just rename the .apk to .zip) or using the APK itself, in order to get root. Reboot phone, put both attached files in your downloads folder, enable developer options and run adb shell: (or from your phone locally using a terminal app like connectbot):

adb shell
su -
remount
cp /sdcard/Download/com.sony.device.jar /system/framework
cp /sdcard/Download/com.sony.device.xml /system/etc/permissions
chmod 644 /system/framework/com.sony.device.jar
chmod 644 /system/etc/permissions/com.sony.device.xml
reboot


You can remove magisk and developer options if you want to unroot. I personally don't have my phone rooted.
Don't work on lineage 19.1 or 20.0. Any solution? Thanks
 

Flamefire

Senior Member
Jul 26, 2013
220
535
Sony Xperia XZ1 Compact
Thanks, I did have that activated. It didn't seem to change anything. I wonder if it's because it is seeking 3G networks that have been turned off, rather than 2G ("GSM").
I'm currently getting the October Update ready and am developing an option for XperiaParts to switch to 2G instead of 3G which may help for your case. Let's see if that works out
 

7alvoo

Senior Member
Jul 18, 2019
159
50
I think this is a very good development and I think that the developer has a better idea of which version is the better choice, the minimal difference in the interface doesn't matter much to me, it's the little tricks that are important, root free, safetynet fix, etc. I think the image quality of the Open Camera is good.
I think that GSM operators will use VoLTE forcing in the future to reduce their own costs so that the lifetime of the device may be affected by the VoLTE capability.
If there is a way to update the modem list it would be necessary to have an up to date github database, I'm with a very small eastern provider for example, here is a list of devices that are able to do this, can I get the compatible modem file list from this?
Thank you for the improvements.

 
Last edited:

petefoth

Senior Member
Dec 12, 2015
160
131
Whaley Bridge
Sony Xperia Z3 Compact
BTW: September builds are now finally uploaded
New UNOFFICIAL & CUSTOM lienageos4microg builds are now available. AndroidFileHost is unwell again, so, for now, the builds can be found on my eCloud account

Details of these builds can be found on this wiki page

Both builds have received basic testing: they boot, make & receive calls & texts, WiFi and mobile internet, fingerprint scanner all work. Have fun!

EDIT: Corrected eCloud link
 
Last edited:

Flamefire

Senior Member
Jul 26, 2013
220
535
Sony Xperia XZ1 Compact
If there is a way to update the modem list it would be necessary to have an up to date github database, I'm with a very small eastern provider for example, here is a list of devices that are able to do this, can I get the compatible modem file list from this?
Thank you for the improvements.

All you need is to set the APN correctly. I added DIGI HU to the new builts (coming soon), but that can't be automated.
 

victor126

Senior Member
Sep 30, 2017
52
14
All you need is to set the APN correctly. I added DIGI HU to the new builts (coming soon), but that can't be automated.
if you do anymore apn updates to the rom. here is a new H2O wireless apn settings

Name MVNO Reseller
APN reseller
Proxy
Port
Username
Password
Server
MMSC http://mmsc.mobile.att.net
MMS Proxy proxy.mobile.att.net
MMS Port 80
MCC 310
MNC 410
Authentication Type None
APN Type default,supl.mms
APN Protocol IPv4/IPv6
APN Roaming IPv4
Bearer Unspecified
MVNO Type GID
MVNO value 62FF
 

MrKazoo

New member
Oct 18, 2022
1
0
Long time lurker, first time poster. Has anyone been able to get Android Auto to work on their vehicle's head unit? I've been able to get it to run perfectly in Android Studio's Desktop Head Unit but not to my car (2016 Mazda 3). When I connect to my car I get a message that Android Auto is connected but the head unit doesn't launch Android Auto UI.
 

petefoth

Senior Member
Dec 12, 2015
160
131
Whaley Bridge
Sony Xperia Z3 Compact
New UNOFFICIAL & CUSTOM lienageos4microg builds are now available. AndroidFileHost is unwell again, so, for now, the builds can be found on my eCloud account

Details of these builds can be found on this wiki page

Both builds have received basic testing: they boot, make & receive calls & texts, WiFi and mobile internet, fingerprint scanner all work. Have fun!

EDIT: Corrected eCloud link
These builds are now on AndroidFileHost in this directory https://www.androidfilehost.com/?w=files&flid=322414
 
  • Like
Reactions: sieghartRM

mxbndr

Senior Member
Sep 29, 2010
51
5
Another mild bug I've been encountering on the September 2022 build: Phone calls are maximum incoming volume and can't be lowered. It's a mild bug because it doesn't always happen (I'm not sure if it's only for outgoing or incoming calls, or if it's related to sensors), and can be mitigated by moving the earpiece, but it's loud enough to be a privacy issue. I checked that it's not accidentally on speakerphone, and it's not (speaker is louder and stereo).

Possibly related: headphone call volume is extremely quiet, even on the highest volume. The same headphones on the same phone work fine for music, and also work normally on a Pixel 4a with stock.
 

Senz9090

Member
Jul 10, 2022
20
4
Does anyone know which version sony album & music that works on Los 17? i tried many of them. Album wont open & music stop working in around 20 second. Thanks
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    if you do anymore apn updates to the rom. here is a new H2O wireless apn settings
    Where do they come from? In the November builds I'm including many new APNs from LOS upstream but there they are different.

    November updates are out: Again on GDrive as AFH doesn't work for uploading

    And yes the network stuff is still sometimes an issue and might not be fixable. Hence the workaround to switch to 2G/3G and back to LTE.
    1
    Where do they come from? In the November builds I'm including many new APNs from LOS upstream but there they are different.

    November updates are out: Again on GDrive as AFH doesn't work for uploading

    And yes the network stuff is still sometimes an issue and might not be fixable. Hence the workaround to switch to 2G/3G and back to LTE.
    Thanks for the update! The november security patch is actually really important, as it fixes a critical vulnerability to bypass the lockscreen on Android 10+ (read more here: https://techcrunch.com/2022/11/14/android-lock-screen-bypass-google-pixel/)
    1
    I'm running 18 for about a year now, and just updated to november update without issues. I have never had any connectivity issues. I do notice it connects slower after a reboot, like 15 seconds or so, but when it's there it just works fine. When I make a call while driving, it just roams along all cells without loosing connectivity. I have a Dutch 4G simcard (5G but XZ1c doesn't have that).

    I have more issues with WiFi though, when I walk through the house and roam between different access points, it regularly refuses to reconnect. After a minute or two or so it will, but disabling wifi and re-enabling it reconnects immediately. My stock unmodded xz1c (or any other devices) don't have that issue.

    I'm still so grateful for this rom, I simply wouldn't know which modern phone could replace the xz1c. I refuse a large phone...
  • 52
    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. 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". Do not 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 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.

    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.

    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
    21
    CHANGELOG


    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!
    15
    @MarkMRL Update 20220516 is out which should also fix the headset issue. Reproduced, found and fixed it as far as I can tell.
    14
    I updated the ROM with the January security patches. I also included the "Ultra Dim" QuickSettings tile to reduce the screen brightness (overall). But that is experimental. I'm thinking about including that in the range of the brightness, i.e. make the lowest brightness levels less. Problem is that there are only 255 values possible so I have to define a switch-over point somehow and distribute those 255 values over effectively 2 distinct ranges. Let's see...

    I also added Google Drive downloads temporarily as a backup if AFH fails again...