[ROM][11] LineageOS 18.1 [OFFICIAL]

Search This thread

Cerhio

Senior Member
Feb 25, 2013
222
29
Has anyone got Lineage OS working with the new update? Also, should I be concerned that the updater app keeps crashing after installing?
 

landsome

Senior Member
May 4, 2015
509
123
I might give the Galaxy s10e Exynos a try. The XZ2C will make a good phone for vacations.
Or a Pixel 4a, if you can still find it. A bit lighter and a more polished OS than the S10e (which is great - I have both, as well as the XZ2c, which btw works superbly with the official LOS 18.1 by Oliver).
 

Cerhio

Senior Member
Feb 25, 2013
222
29
I get no data with the new update. Battery life is single digit percent better.

I do not recommend anyone update to this latest version.
 

DrTrax

Senior Member
Jan 23, 2013
74
15
GT-i9250
I don't have any problems with mine except dual SIM with microSD but so far, battery life is okay...

Almost a day long for a battery with 50% health left since launch
 

benh77

Member
Oct 28, 2012
10
0
I've been doing weekly updates for months and battery as good as ever. Even on days when I use heavily it lasts all day no problem.
 
If battery life would impact everyone then dev would be more responsive. Bug usually takes a small amount of people.

For example I would never use VolTE but that doesn't mean that this feature bugs should be ignored.
 
Last edited:

Flopinours

New member
May 12, 2022
4
1
Hi there !
I just created an account because I can't install LOS on my newly acquired xz2 compact.
I search over the web and in this particular thread and couldn't find a solution.. So I decided to write this.

I bought it two days ago (second hand) and it was under android 9 which I upgraded to 10 via flashtool (the official app told me that my phone was already up to date).

I followed the official Lineage installation process here --> https://wiki.lineageos.org/devices/xz2c/install
Then I unlocked successfully the bootloader, and the problem started when I needed to "Temporarily booting a custom recovery using fastboot".

I've put the
"fastboot flash boot lineage-18.1-20220506-recovery-xz2c.img" command and received this output the first time "fastboot: error: Failed to identify current slot" and then from the second this one "
fastboot: error: boot partition is smaller than boot image"

Searching over the web I tried to change boot to boot_a or boot_b with no success..

Did someone had the same problem as me ? Or can help me with that ?

Thank you anyway for reading this !

My specs :
- Xperia xz2 compact model H8314
- Android version : 10
- Android build number : 52.1.A.3.49
 

landsome

Senior Member
May 4, 2015
509
123
Hi there !
I just created an account because I can't install LOS on my newly acquired xz2 compact.
I search over the web and in this particular thread and couldn't find a solution.. So I decided to write this.

I bought it two days ago (second hand) and it was under android 9 which I upgraded to 10 via flashtool (the official app told me that my phone was already up to date).

I followed the official Lineage installation process here --> https://wiki.lineageos.org/devices/xz2c/install
Then I unlocked successfully the bootloader, and the problem started when I needed to "Temporarily booting a custom recovery using fastboot".

I've put the
"fastboot flash boot lineage-18.1-20220506-recovery-xz2c.img" command and received this output the first time "fastboot: error: Failed to identify current slot" and then from the second this one "
fastboot: error: boot partition is smaller than boot image"

Searching over the web I tried to change boot to boot_a or boot_b with no success..

Did someone had the same problem as me ? Or can help me with that ?

Thank you anyway for reading this !

My specs :
- Xperia xz2 compact model H8314
- Android version : 10
- Android build number : 52.1.A.3.49
Use the installation procedure on the official LOS channel for 18.1. But before you do that, make sure you follow these steps (I know you have already installed A10, but make sure the protocol below was followed, incl. booting to apps):

fastboot reboot bootloader
fastboot --set-active=a
fastboot reboot bootloader
fastboot getvar all
> in flash mode > Flash stock ROM with newsflasher [answer p, then n] > boot to apps
fastboot reboot bootloader
fastboot --set-active=b
fastboot reboot bootloader
fastboot getvar all
> in flash mode > Flash stock ROM with newsflasher [answer p, then n] > boot to apps again

Hope this helps.
 

Flopinours

New member
May 12, 2022
4
1
Thank you! I'll try this tomorow and post the result, have a good week end :)
Use the installation procedure on the official LOS channel for 18.1. But before you do that, make sure you follow these steps (I know you have already installed A10, but make sure the protocol below was followed, incl. booting to apps):

fastboot reboot bootloader
fastboot --set-active=a
fastboot reboot bootloader
fastboot getvar all
> in flash mode > Flash stock ROM with newsflasher [answer p, then n] > boot to apps
fastboot reboot bootloader
fastboot --set-active=b
fastboot reboot bootloader
fastboot getvar all
> in flash mode > Flash stock ROM with newsflasher [answer p, then n] > boot to apps again

Hope this helps.
 

zynexiz

Senior Member
Sep 1, 2011
142
30
Halmstad
Have anyone manage to encrypt external storage? I just got a 256GB micro SD card, but I can't find a way to secure the data on it. I don't want all my pictures or documents to be open to the world if I somehow loose my phone. One way would be to expand the card as internal, but that option if grayed out for some reason, and there doesn't seem to be a way to use encfs on the external storage at all (or FDE for that sake). In 2022 data at rest encryption is a pretty crucial thing to have IMO.

[EDIT] Found a way to enable adoptable storage thru ADB with sm list-disks then sm partition disk: x,x private and sm set-force-adoptable on. After a reboot the option to use the card as internal storage was enabled. https://www.nextpit.com/how-to-format-microsd-cards-as-internal-storage
 
Last edited:

DrTrax

Senior Member
Jan 23, 2013
74
15
GT-i9250
Is there a possibility to replace the recovery with TWRP?

I kinda managed to get TWRP installed... on slot A but slot B have the Lineage Recovery and BTW my TWRP on slot A is bugged, doesn't boot up properly, I even don't know which one I should choose 🙈

My first time handling devices with multiple partitions (I guess)
 

Cerhio

Senior Member
Feb 25, 2013
222
29
Just an update: battery life seems to be better. I still have problems with data.

I just purchased an S10e based off the recommendations above. Whoever's running this rom, great job. You made this phone last for me longer than most other phones I've used. I'm going to keep my XZ2C as a backup.

Thanks for everything.
 

House3272

Senior Member
Jan 11, 2011
67
6
Having issue with microphone during call.
It's super low and inaudible unless I talk directly into the mic on the bottom loudly and close up.

But microphone itself is fine I think, using the recorder app, recorded volume is normal.

Any ideas?
 

zpunout

Senior Member
Aug 26, 2015
255
46
Samsung Galaxy S5
Moto G5 Plus
Having issue with microphone during call.
It's super low and inaudible unless I talk directly into the mic on the bottom loudly and close up.

But microphone itself is fine I think, using the recorder app, recorded volume is normal.

Any ideas?
I had a similar issue while my XZ2c was running the stock OS, had to open the phone up to replace the microphone which then fixed it. It's worth replacing the battery during the process if the phone is opened up. If possible, I would try to temporarily reinstall the stock OS to try rule out any possible hardware failures before attempting to open the phone up though. It is very easy to ruin the display panel by poking the thin plastic sheet too far under the display. I've ruined 3 out of 5 display panels this way on various phones and had to buy replacements.
 

Cerhio

Senior Member
Feb 25, 2013
222
29
For anyone thinking of going to the S10e as your next compact phone: don't.

I just purchased one and promptly returned it. The battery life was atrocious. I was loosing a percentage of battery every few minutes just browsing the internet. I can't imagine getting through a normal day without having to charge it at least twice.

I might try and wait for the Android 6A as it's relatively compact and cheap and has a decent battery. Does anyone have any other suggestions for a compact phone?

Finally, apologies to the developer of this rom. Your work is amazing. I'll take these minor data issues over horrible battery life any day.
 

Top Liked Posts

  • 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
  • 1
    There are two microphones. It's still possible one of them is not working despite the recorder app working. There's a handy app in the F-Droid repository called Fairphone Checkup which tests each microphone separately.

    Can't comment on VoLTE as I have a budget carrier which drops back to WCDMA for calls.
    Dude thanks!
    Primary mic was in fact busted on that phone.
    But thankfully all working fine on my second one.

    T-Mobile still booting me off into Emergency Calls only mode for some reason, but at least the mic issue I know is separate now. Thanks.
    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.
  • 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.