[ROM] [11] LineageOS 18.1 [OFFICIAL]

Search This thread

Sjll

Recognized Developer
Jun 4, 2017
527
656
Chongqing
2okPze5.png

Code:
#include <std_disclaimer.h>
/*
* 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.
*/
About LineageOS
LineageOS is a free, community built, aftermarket firmware distribution of Android 11.x (R),
which is designed to increase performance and reliability over stock Android for your device.

All the source code for LineageOS is available in the LineageOS GitHub repo.
And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

Official LineageOS website : http://lineageos.org
About LineageOS Legal : http://lineageos.org/legal/

Important Information
1. This ROM has nothing related to ODM images! So you don't need to ask/install anything like that, just follow the instructions.
2. This ROM will never work with any versions of Google Camera (GCam)!
3. You need to flash Stock Android 10 before flashing this ROM.
4. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!


Downloads Links
LineageOS website

Google Applications (optional):
MindTheGapps
Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

Flashing and updating
How to flash

Make sure you are upgrade to Official Android 10.0 from Sony
Unlock bootloader is necessary.
To disable AVB 2.0 using fastboot:
Code:
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
For vbmeta.img, you can download it anywhere you found.
More steps see wiki

Never flash oem from SODP!!
If you flashed oem and meet any issues, I could only say you are a hanhan.

Root access:
Flash Magisk in recovery.

Twrp:
You could download it here: Link
Code:
fastboot boot twrp.img

Issues and reports

Report issues only if you are using the ROM kernel
If an additional mod is installed, make sure it's unrelated, and mention it
Make sure the issue wasn't discussed earlier in the threads
Share a log of the error with CatLog for example

Also thanks to:
Olivier
Luk1337
The LineageOS Team
The CyanogenMod Team
The SODP Team
Everyone involved in working and testing

XDA:DevDB Information
Lineage 18.1 for Xperia XZ2, ROM for the Xperia XZ2

Contributors
Sjll, Olivier
Source Code: https://github.com/sony-sdm845

Donation
https://paypal.me/sjllls

ROM OS Version: Android 11
ROM Kernel: Linux 4.9
ROM Firmware Required: Official Android 10.0 firmware
Based On: LineageOS

Version Information
Status:
Stable

Created 2020-11-27
Last Updated 2021-05-26
 
Last edited:

AnxQ

Member
Dec 31, 2016
7
3
error when flashing OpenGApps says the API version mismatch. is there any alternative solution before opengapps' android 11 official release?
 

seilent

Senior Member
Jun 11, 2010
296
245
29
Xperia XZ2
Thanks for the rom! it's very fluid
I guess the only problem is the USB C to 3.5mm jack, and gesture navbar

mostly when going into immersive mode from portrait to landscape, vice versa
like from portrait mode, launch a game in immersive landscape, sometimes the navbar stays on the bottom of phone (right side of landscape mode)
or the navbar itself still visible while statusbar is collapsed, but gone when you bring out the status bar. after some spamming by going back to home → launch game, eventually you get the correct combination of navbar + statusbar
 

Sjll

Recognized Developer
Jun 4, 2017
527
656
Chongqing
Hi. USB C headphones doesn't work.

Thanks for the rom! it's very fluid
I guess the only problem is the USB C to 3.5mm jack, and gesture navbar

mostly when going into immersive mode from portrait to landscape, vice versa
like from portrait mode, launch a game in immersive landscape, sometimes the navbar stays on the bottom of phone (right side of landscape mode)
or the navbar itself still visible while statusbar is collapsed, but gone when you bring out the status bar. after some spamming by going back to home → launch game, eventually you get the correct combination of navbar + statusbar

Got this feedback now, I need more info for debug.
1. Does your USB-C to 3.5mm convertor have a DAC in it? Like a sound card has a chip in it.
 

Coachm4n

New member
Dec 28, 2018
2
0
Can someone help me, whenever I try to install Magisk it enters a bootloop. And the only way to exit it is to enter Lineage recovery and reinstall/update the ROM. I tried installing Magisk with TWRP and the vbmeta command but no luck. The build seems very fluid but there is no SafetyNet without Magisk.
 

churchner420

Senior Member
Mar 25, 2015
364
30
Is there any 18.1 build yet I can test?
And I have got a question about oem.
Is it true that I do not need to flash any Xperia binaries (OEMs) when coming from stock cause they are just for SODP roms like Pixel Experience?
And is that for LOS 17 and 18?
 

evox4

Member
Dec 22, 2014
21
5
You
Can someone help me, whenever I try to install Magisk it enters a bootloop. And the only way to exit it is to enter Lineage recovery and reinstall/update the ROM. I tried installing Magisk with TWRP and the vbmeta command but no luck. The build seems very fluid but there is no SafetyNet without Magisk.

You have to install Magisk Beta
 

seilent

Senior Member
Jun 11, 2010
296
245
29
Xperia XZ2
Tried with USB C → DAC → 3.5mm works nicely, there's no log related to audio though when I tried to plug the non DAC one
Also cam isn't working but seems incompatibilities of libimageprocessorjni.so

Code:
CameraAccess: type=1400 audit(0.0:19077): avc: denied { read } for name="libimageprocessorjni.so" dev="sda42" ino=90414 scontext=u:r:priv_app:s0:c512,c768 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=1 app=com.sonyericsson.android.camera
 

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    Good news, we will go 18.1 official in next week.
    16
    2okPze5.png

    Code:
    #include <std_disclaimer.h>
    /*
    * 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.
    */
    About LineageOS
    LineageOS is a free, community built, aftermarket firmware distribution of Android 11.x (R),
    which is designed to increase performance and reliability over stock Android for your device.

    All the source code for LineageOS is available in the LineageOS GitHub repo.
    And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

    Official LineageOS website : http://lineageos.org
    About LineageOS Legal : http://lineageos.org/legal/

    Important Information
    1. This ROM has nothing related to ODM images! So you don't need to ask/install anything like that, just follow the instructions.
    2. This ROM will never work with any versions of Google Camera (GCam)!
    3. You need to flash Stock Android 10 before flashing this ROM.
    4. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!


    Downloads Links
    LineageOS website

    Google Applications (optional):
    MindTheGapps
    Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

    Flashing and updating
    How to flash

    Make sure you are upgrade to Official Android 10.0 from Sony
    Unlock bootloader is necessary.
    To disable AVB 2.0 using fastboot:
    Code:
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    For vbmeta.img, you can download it anywhere you found.
    More steps see wiki

    Never flash oem from SODP!!
    If you flashed oem and meet any issues, I could only say you are a hanhan.

    Root access:
    Flash Magisk in recovery.

    Twrp:
    You could download it here: Link
    Code:
    fastboot boot twrp.img

    Issues and reports

    Report issues only if you are using the ROM kernel
    If an additional mod is installed, make sure it's unrelated, and mention it
    Make sure the issue wasn't discussed earlier in the threads
    Share a log of the error with CatLog for example

    Also thanks to:
    Olivier
    Luk1337
    The LineageOS Team
    The CyanogenMod Team
    The SODP Team
    Everyone involved in working and testing

    XDA:DevDB Information
    Lineage 18.1 for Xperia XZ2, ROM for the Xperia XZ2

    Contributors
    Sjll, Olivier
    Source Code: https://github.com/sony-sdm845

    Donation
    https://paypal.me/sjllls

    ROM OS Version: Android 11
    ROM Kernel: Linux 4.9
    ROM Firmware Required: Official Android 10.0 firmware
    Based On: LineageOS

    Version Information
    Status:
    Stable

    Created 2020-11-27
    Last Updated 2021-05-26
    6
    Glad to tell everyone who are waiting for LineageOS 18.1.
    I uploaded the 20210515 build for Akari, but I don't have device to test.
    From the result on XZ3, everything works fine.
    Please test and feedback, if there is no bug, we will get official 18.1 support sson.
    6
    So latest build is 18.0 from November?
    Seems a big pause in development.
    I will try building with the 18.1 sources on Lineage GitHub and see what happens.....

    Edit: Fixed the build errors but it wont boot and devs seem to have moved on.
    Back to 17.1 nightlies
    6
    I don't have battery drain issue to begin with so can't tell the difference sadly, but yeah flashed and everything still works fine as before!
    Uploaded a new lineage-18.1-20210515-unofficial-akari.zip again.
    This removed 2 crashing prebuilt system Apps, enjoy.