[ROM][11] LineageOS 18.1 [OFFICIAL]

Search This thread

landsome

Senior Member
May 4, 2015
509
123
Hi everyone,
as some of you may already know, I've decided to step down as device maintainer for the Xperia XZ2 Compact.
Thankfully, @dtrunk90 has volunteered to take over - he's a skilled dev who has already made valuable contributions in the past few months, and I'm sure he'll continue to do so.

That being said, I really enjoyed on this device. I want to thank @Sjll who made all of this possible and everyone contributing to the Xperia Open Devices Program -- even though we don't always share the same views (which is what made Sjll and me start this project in the first place), I have nothing but respect for their hard work.
Thanks for the fabulous effort.
 
  • Like
Reactions: Olivier

ezzxsys

Member
Dec 5, 2021
13
1
does this rom work for xz2 compact docomo SO-05K device?
My device is ubl yes and also rooted/twrp
 

30jp

Member
Sep 25, 2020
40
95
Hi everyone,
as some of you may already know, I've decided to step down as device maintainer for the Xperia XZ2 Compact.
Thankfully, @dtrunk90 has volunteered to take over - he's a skilled dev who has already made valuable contributions in the past few months, and I'm sure he'll continue to do so.

That being said, I really enjoyed on this device. I want to thank @Sjll who made all of this possible and everyone contributing to the Xperia Open Devices Program -- even though we don't always share the same views (which is what made Sjll and me start this project in the first place), I have nothing but respect for their hard work.
Thanks for all your work. As a result, I still enjoy my XZ2C every day.
Greetings
 

TheeWolf

Senior Member
Oct 8, 2011
894
192
Hi,

I have a problem with the in call volume, it's way too loud, so loud people in the room can hear the other side.
Of course, I lowered the volume as much as possible but it's still way too loud.
After some Googling I may have found the solution which is changing some values in a file called mixer_paths.xml.
However I see there are four different mixel_paths files:

mixer_paths_i2s
mixer_paths_qvr
mixer_paths_skuk
mixer_paths_tavil

From what I understand, the values I need to change are DECn values (n - number):
<ctl name="DEC1 Volume" value="84" />
<ctl name="DEC2 Volume" value="84" />
<ctl name="DEC3 Volume" value="84" />
<ctl name="DEC4 Volume" value="84" />
<ctl name="DEC5 Volume" value="84" />
<ctl name="DEC6 Volume" value="84" />
<ctl name="DEC7 Volume" value="84" />
<ctl name="DEC8 Volume" value="84" />
<ctl name="DEC9 Volume" value="84" />
<ctl name="DEC10 Volume" value="84" />]


My questions:
1. Those values are in all of those files except for mixer_paths_i2s. So, which file do I have to change?
2. Can anyone confirm the DECn values really are the ones I need to change?

Thank you.
 
Last edited:

dtrunk90

Senior Member
Oct 29, 2021
274
121
32
Sony Xperia XZ2 Compact
Xperia XZ2
Hi,

I have a problem with the in call volume, it's way too loud, so loud people in the room can hear the other side.
Of course, I lowered the volume as much as possible but it's still way too loud.
After some Googling I may have found the solution which is changing some values in a file called mixer_paths.xml.
However I see there are four different mixel_paths files:

mixer_paths_i2s
mixer_paths_qvr
mixer_paths_skuk
mixer_paths_tavil

From what I understand, the values I need to change are DECn values (n - number):
<ctl name="DEC1 Volume" value="84" />
<ctl name="DEC2 Volume" value="84" />
<ctl name="DEC3 Volume" value="84" />
<ctl name="DEC4 Volume" value="84" />
<ctl name="DEC5 Volume" value="84" />
<ctl name="DEC6 Volume" value="84" />
<ctl name="DEC7 Volume" value="84" />
<ctl name="DEC8 Volume" value="84" />
<ctl name="DEC9 Volume" value="84" />
<ctl name="DEC10 Volume" value="84" />]


My questions:
1. Those values are in all of those files except for mixer_paths_i2s. So, which file do I have to change?
2. Can anyone confirm the DECn values really are the ones I need to change?

Thank you.
What about simply lowering the call volume in settings > sound?
 

Attachments

  • Screenshot_20220101-152513_Trebuchet.png
    Screenshot_20220101-152513_Trebuchet.png
    110.6 KB · Views: 15

odiad

Senior Member
Jun 12, 2007
205
20
Sony Xperia XZ2 Compact
Hello,

expecting this is general issue with LOS18 - but maybe somebody can help. I installed gallery app, and app asked for access to SD card when I wanted to delete a photo. But I can't give access to root of SD card, only for folders on the SD card. But this is not accepted by the app. Any solution?

Regards Odiad
 

dtrunk90

Senior Member
Oct 29, 2021
274
121
32
Sony Xperia XZ2 Compact
Xperia XZ2
Hello,

expecting this is general issue with LOS18 - but maybe somebody can help. I installed gallery app, and app asked for access to SD card when I wanted to delete a photo. But I can't give access to root of SD card, only for folders on the SD card. But this is not accepted by the app. Any solution?

Regards Odiad
First of all: Which gallery app?
To your question: This is not an LOS18 issue, it's a change which was introduced with Android 11 (Scoped storage): https://developer.android.com/about/versions/11/privacy/storage
You should contact the developer of that gallery app instead. It's their task to migrate from legacy to scoped storage: https://developer.android.com/training/data-storage/use-cases#migrate-legacy-storage
 

odiad

Senior Member
Jun 12, 2007
205
20
Sony Xperia XZ2 Compact
First of all: Which gallery app?
To your question: This is not an LOS18 issue, it's a change which was introduced with Android 11 (Scoped storage): https://developer.android.com/about/versions/11/privacy/storage
You should contact the developer of that gallery app instead. It's their task to migrate from legacy to scoped storage: https://developer.android.com/training/data-storage/use-cases#migrate-legacy-storage
hello dtrunk90. It is "Quickpic Gallery: Photos and Videos". For me quite nice app, but as explained with problems to get write access on SD card.
Okay - thanks for the information.
 

GerogeRege

New member
Jan 29, 2022
1
0
Jeeeessshhh... dis... is... really awesome work guys. So glad I finally stomached the courage to unlock my old faithful xz2c tank and boy what a reward

Short story, I went through all of this because my phone's display was acting strange. All of the sudden when using it the touchscreen randomly freezed. Volume buttons and screen display itself worked, but no touchy touchy. This was random and the only fix* was to lock and unlock the phone, which was meh at first but managed to take my kind soul in the end. So, after a new cheapo emmc internal storage phone (now dead), countless factory resets, setting configurations and an existential dilemma i decided this obviously obvious software issue is tied to android 10 so let's move to something else. So here we are, Lineage recovery, no issue so far, install steps simply work and Life is good... until... reality strikes again and freezes the touch again and also my mind in a retard state, because i had to admit it's a hardware issue since it's happening in recovery too. Such a good ROM tough : )
Anyway, for whomever might have this issue, just change your screen, or try squeezing it from the sides#nojok, this helped me instead of lock/unlock and seemed to last a bit longer too. Looking back, issue might have been caused by a too tight grip on the sides from a bike phone holder, maybe the pressure damaged a connector, or maybe even tanks get hurt : )

Returning to the ROM, it's awsome, I'm on the latest 2022-01-28 nightly which seems stable and smooth so far.
Camera is super decent, i mean maybe i had my hopes too low from other comments, but for me it's barely a downgrade(to me, sony cam is kinda lame anyway *without manual)
Went with the official lineage install steps from here - https://wiki.lineageos.org/devices/xz2c/install
Everything was smooth... except for a small never ending sony boot logo screen after flashing los recovery(fastboot buttons and then quickly recovery buttons saved me)

Haven't tried calling, music, blt, gps, etc because i was to hyped finding out i need to change the display and no one knew, and they had to, apparently... but will definitely come back with more after using it longer as main.

So thanks you for this awesome rom.
In fact, do you guys accept donations? crypto? : )
 

dtrunk90

Senior Member
Oct 29, 2021
274
121
32
Sony Xperia XZ2 Compact
Xperia XZ2
Jeeeessshhh... dis... is... really awesome work guys. So glad I finally stomached the courage to unlock my old faithful xz2c tank and boy what a reward

Short story, I went through all of this because my phone's display was acting strange. All of the sudden when using it the touchscreen randomly freezed. Volume buttons and screen display itself worked, but no touchy touchy. This was random and the only fix* was to lock and unlock the phone, which was meh at first but managed to take my kind soul in the end. So, after a new cheapo emmc internal storage phone (now dead), countless factory resets, setting configurations and an existential dilemma i decided this obviously obvious software issue is tied to android 10 so let's move to something else. So here we are, Lineage recovery, no issue so far, install steps simply work and Life is good... until... reality strikes again and freezes the touch again and also my mind in a retard state, because i had to admit it's a hardware issue since it's happening in recovery too. Such a good ROM tough : )
Anyway, for whomever might have this issue, just change your screen, or try squeezing it from the sides#nojok, this helped me instead of lock/unlock and seemed to last a bit longer too. Looking back, issue might have been caused by a too tight grip on the sides from a bike phone holder, maybe the pressure damaged a connector, or maybe even tanks get hurt : )

Returning to the ROM, it's awsome, I'm on the latest 2022-01-28 nightly which seems stable and smooth so far.
Camera is super decent, i mean maybe i had my hopes too low from other comments, but for me it's barely a downgrade(to me, sony cam is kinda lame anyway *without manual)
Went with the official lineage install steps from here - https://wiki.lineageos.org/devices/xz2c/install
Everything was smooth... except for a small never ending sony boot logo screen after flashing los recovery(fastboot buttons and then quickly recovery buttons saved me)

Haven't tried calling, music, blt, gps, etc because i was to hyped finding out i need to change the display and no one knew, and they had to, apparently... but will definitely come back with more after using it longer as main.

So thanks you for this awesome rom.
In fact, do you guys accept donations? crypto? : )
Hey. Glad you like the rom. Most of the work was done by @Olivier and @Sjll and I'm the new maintainer beside of @Sjll

If you want to donate you can checkout my profile
 

Mateuszz

New member
Feb 6, 2022
4
0
I wanted to upload this lineageos but I have the XZ2 dual H8266 version and I do not know if it is only for single sim?
 
Feb 7, 2022
2
0
Hi, is it correct, that USB OTG is not supported by this ROM? Can't find any settings and don't know, if it might be a problem with my device or due to the software.

Thank you very much and kind regards.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Have a question;

    What are these DSUs and why are they only for Android 12 and 13 (according to Google own repository) :/

    S3B1 is Android 12
    TPBB is Android 13

    View attachment 5632623
    I learnt from here: https://developer.android.com/topic/dsu
    that Dynamic System Updates is a feature to be able to install a Generic System Image, a generic Android operating system.
    The GMS options in your screenshot are the versions which include Google's system services. The DSU Loader option is not only for the XZ2 Compact, but is also generally found in LineageOS across multiple devices and some other operating systems which support Treble. There are YouTube videos which show how it works.
    1
    So basically with LOS 18.1 (Android 11) I can "test" Android 12 and 13 from Google just for fun and then switch back to LOS without any kind of risk...

    A feature from Google, not intended but also not blocked by Lineage OS because of reasons (?)
    1
    Hi @dtrunk90
    Comming from 'lineage-18.1-20220603-nightly-xz2c' I ran into troubles with latest 'lineage-19.1-20220610-nightly-xz2c-signed.zip'.
    The in-system-updater performed the update but after restart it could not boot properly.
    This leads to recovery (18.1 20220610) asking for retry or factory reset.
    If i want to install the zip manually within recovery the verification failed with message:
    Package is for xz2c but expected H8324.
    It looks like recovery got updated correctly but there are issues with the rom package.
    I wonder because there are no differences listed at los changelog.

    Now i have troubles to get my device back running without data loss.
    - Tried to flash 0603 from sd zip and adb sideload on recovery 20220610
    - Tried to flash 0603 from sd zip and adb sideload on recovery 20220603
    but always ends at the recovery Try again or factory reset screen. :-(
    The good thing on A/B devices is you could switch slots and get back to a running system. But since you already flashed stuff again this is not possible anymore because both A and B slots are broken now. You could try to enable ADB in recovery and make a backup of your data. We're official on 19.1 since today and there will be no more 18.1 builds anyway.
    1
    So I was able to buy a new XZ2C Rev2 H8314, my first smartphone. After two weeks of troubleshooting with Metro by T-Mobile in the USA it was only ever able to connect to their network twice on June 16th and 17th The first time I was on LineageOS 18 and after I completed the first call it was kicked back off. The second time was on the stock firmware which was Canada 52.0.A.11.32-R4B, never all but voice calls worked and was connected for about 7 hours until I turned off the phone to go to sleep and in the morning 0 bars and "emergency calls only". (that firmware seems to be the only version that I tested with full VoLTE enabled and toggle-able in the settings and service menu)

    I tried Consumer Cellular with the stock Canada 52.0.A.11.32-R4B, and the phone instantly connected to the network but could not make calls. Attempting to do so resulted in immediate "call ended". I tried LineageOS again yesterday (6-10 build) using the most recent USA firmware on xperifirm, 52.1.A.3.137-R7C, but had the same issue with voice calls failing immediately with "call ended". I also saw a notification that said "slot0, modem configuration 28957.1, firmware file default ". I noticed something in this thread about adding modem configs so today I flashed the UK customized version which I had seen mentioned, 52.1.A3.49-R6C with the same result but the notification has changed to "slot0, modem configuration S263.1, firmware file default ". I have an old Iphone 6+ which does work fine with the SIM.

    Is there something else that I am missing? I know I am out of my depth, had to figure out emma, xperifirm and newflash as well as unlocking the bootloader for lineageOS so I could have missed some step. I had issues with the google apps using the "mindthegapps" link as it would get stuck in a loop trying to copy files from an XZ2 Compact device without an option to say no, the Open GAPPs nano worked fine.
    Both S28957.1 and S263.1 configs are missing. I'll check later if i can fetch them from the stock firmwares so they're available with the next 19.1 build. 18.1 is not officially supported anymore.
    1
    So I was able to buy a new XZ2C Rev2 H8314, my first smartphone. After two weeks of troubleshooting with Metro by T-Mobile in the USA it was only ever able to connect to their network twice on June 16th and 17th The first time I was on LineageOS 18 and after I completed the first call it was kicked back off. The second time was on the stock firmware which was Canada 52.0.A.11.32-R4B, never all but voice calls worked and was connected for about 7 hours until I turned off the phone to go to sleep and in the morning 0 bars and "emergency calls only". (that firmware seems to be the only version that I tested with full VoLTE enabled and toggle-able in the settings and service menu)

    I tried Consumer Cellular with the stock Canada 52.0.A.11.32-R4B, and the phone instantly connected to the network but could not make calls. Attempting to do so resulted in immediate "call ended". I tried LineageOS again yesterday (6-10 build) using the most recent USA firmware on xperifirm, 52.1.A.3.137-R7C, but had the same issue with voice calls failing immediately with "call ended". I also saw a notification that said "slot0, modem configuration 28957.1, firmware file default ". I noticed something in this thread about adding modem configs so today I flashed the UK customized version which I had seen mentioned, 52.1.A3.49-R6C with the same result but the notification has changed to "slot0, modem configuration S263.1, firmware file default ". I have an old Iphone 6+ which does work fine with the SIM.

    Is there something else that I am missing? I know I am out of my depth, had to figure out emma, xperifirm and newflash as well as unlocking the bootloader for lineageOS so I could have missed some step. I had issues with the google apps using the "mindthegapps" link as it would get stuck in a loop trying to copy files from an XZ2 Compact device without an option to say no, the Open GAPPs nano worked fine.
    I've downloaded ALL 200+ latest tama (xz2, xz2c, xz2p, xz3) stock firmwares now and extracted all the modem configs out of them to add missing ones: https://review.lineageos.org/c/LineageOS/android_device_sony_tama-common/+/333483

    But still, there was no S28957.1 and no S263.1.
    I don't know where to get them from.
    If you know how feel free to add them: https://wiki.lineageos.org/how-to/submitting-patches
  • 11
    Hi everyone,
    as some of you may already know, I've decided to step down as device maintainer for the Xperia XZ2 Compact.
    Thankfully, @dtrunk90 has volunteered to take over - he's a skilled dev who has already made valuable contributions in the past few months, and I'm sure he'll continue to do so.

    That being said, I really enjoyed on this device. I want to thank @Sjll who made all of this possible and everyone contributing to the Xperia Open Devices Program -- even though we don't always share the same views (which is what made Sjll and me start this project in the first place), I have nothing but respect for their hard work.
    10
    The first official 18.1 build is up, enjoy: https://download.lineageos.org/xz2c
    10
    A new build is up, please check the OP. Feel free to test and report bugs - we'd like to enable official 18.1 weekly builds soon.
    8
    http%3A%2F%2Fi.imgur.com%2F2okPze5.png


    LineageOS is a free, community built, aftermarket firmware distribution of Android 10, which is designed to increase performance and reliability over stock Android for your device.

    Code:
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */

    NOTE
    Should you ever face any issues, capture logs. I also need to know what build you're on (build number or at least a date).
    Hint: "It doesn't work" is not a bug report and posts like this will be ignored.


    KNOWN ISSUEs
    • The Sony stock camera does not work at the moment.

    INFO
    This ROM does not use the device trees/kernel from sonyxperiadev (aka SODP). The device tree was made from scratch, and the stock kernel (based off 52.1.A.x.y) has been used.

    DOWNLOAD
    Official builds

    NOTE: Since the official builds are signed, you can't simply upgrade from my unofficial builds -- you can either migrate to an official build using a script or do a clean install.

    All unofficial builds

    INSTRUCTIONS
    Just flash the builds as usual. Make sure to be on the latest stock firmware.

    SOURCE
    LineageOS
    Kernel
    5
    CHANGELOG
    20210516:
    - fixed WiFi display/screen casting
    - addressed performance issues and lags

    20210515:
    - updated to 18.1
    - fixed remaining most of the bugs
    - set SELinux to enforcing

    20201128:
    - fixed NFC

    20201127:
    - initial public release.