[ROM][11] LineageOS 18.1 [UNOFFICIAL]

Search This thread

Sjll

Recognized Developer
Jun 4, 2017
471
493
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 18.1:
Unofficial-build:
Link

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

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-15
 
Last edited:

scaniathe

Senior Member
Jun 12, 2014
376
81
Wadowice
Android 10 or 11?
I try install and ... signature verification failed
I flash vbmeta
I try over 17.1 official and recovery official from 17.1
 
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
293
231
28
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
 
  • Like
Reactions: evox4

Sjll

Recognized Developer
Jun 4, 2017
471
493
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.
 
  • Like
Reactions: evox4

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
352
28
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?
 

seilent

Senior Member
Jun 11, 2010
293
231
28
Xperia XZ2
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?

for both los 17 and 18 there's no need to flash the OEMs
 

evox4

Member
Dec 22, 2014
20
3
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
293
231
28
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
 
  • Like
Reactions: evox4

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    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.
    5
    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.
    3
    Hi, LineageOS 18.1 is not given up,

    Here is the rebase kernel for LineageOS 17.1/18.0/18.1, which tag at LA.UM.9.3.r1-01700-sdm845.0. You can try and feedback to us. Some wired issues like TF card reading should be fixed.

    Steps: Flash dtbo in fastboot and sideload the Anykernel3 in LineageOS Rec.

    Device:
    akari > XZ2
    apollo > XZ2C
    akatsuki > XZ3

    1
    Installed and running fine, using gapps from first post

    so far compared to previous build
    > USB to 3.5mm issue fixed
    > USB C DAC also still working fine
    > Orientation bug is fixed (where navbar stuck in potrait / landscape sometimes)
    > Weird storage bug is fixed (previously some app can't even access their own obb folder)
    > Wireless charging works
    > Snapcam is working fine, but installing SEMC camera from 17.1 causes bootloop
    Thanks, plz try 0515 Refresh version, which solved the battery drain issue.
    1
    Next: the no installed LOS 18.1 with Mindthegapps has no play store again.
    I could do the same, as begore, flashing Mtg, that works, but not gps.

    What could be the next step to solve these problems?
    I'm interested in doing my own part of finding the faults, may be, my knowledge is to low.
    TLDR: Flash LineageOS, DO NOT boot into system, reboot directly to recovery, then flash Gapps (MindTheGapps, Nik, etc)

    Explaination:
    If you flashed Gapps right after flashing LineageOS, you've done it wrong.
    This is because, XZ2/C/P/3 has A/B partition, which means, after flashing LineageOS, it will automatically switch to another slot. If you're flashing Gapps at this time, it goes into the slot which you're not gonna boot into. You need to reboot to recovery once to switch the slot (assuming you're using LineageOS Recovery), or switch slot in TWRP, then flash other addons.
  • 6
    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 18.1:
    Unofficial-build:
    Link

    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

    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-15
    5
    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.
    5
    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.
    5
    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
    3
    Hi, LineageOS 18.1 is not given up,

    Here is the rebase kernel for LineageOS 17.1/18.0/18.1, which tag at LA.UM.9.3.r1-01700-sdm845.0. You can try and feedback to us. Some wired issues like TF card reading should be fixed.

    Steps: Flash dtbo in fastboot and sideload the Anykernel3 in LineageOS Rec.

    Device:
    akari > XZ2
    apollo > XZ2C
    akatsuki > XZ3

Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone