[DISCONTINUED][R][20210314][ROM][UNOFFICIAL] LineageOS 18.1 for Xperia 5 II

Search This thread

ken442266

Member
Jun 29, 2014
49
94
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.
*/

NOTICE:
This is the last update before i sold this phone.
[Please make sure you updated to 58.1.X (Which is Android11)]
+ Camera key and Assist Key Fix
+ Update to R based
+ Fix the issue about 5Ghz hotspot
+ March Security Update

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 11 before flashing this ROM.
4. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!
5. If you came from SODP ROMs, you need to go back to official Android 11 firmware, and boot into launcher.
6. Please make sure you are using Android 11 Stock ROM [Version > 58.1.X] before flash this.
7. Still in developing. May have some unexpected bugs.

Downloads Links
LineageOS 18.1:
Unofficial-build:
Link (MEGA)

Looking For CinemaPro And PhotoPro:
Click Here

Google Applications (optional):
NikGApps: https://nikgapps.com
Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

Flashing and updating
How to flash
Make sure you upgraded to Official Android 11 from Sony
Unlock bootloader is necessary.

Download latest platform-tools from
google

1. Install fastbootd drivers, guidance
2. Put your device into fastboot by volume up key.
3. Enter fastbootd:
Code:
fastboot reboot fastboot
4. Flash LineageOS:
Code:
fastboot set_active a
fastboot flash boot boot.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img
fastboot erase metadata
fastboot flash system system.img
fastboot flash product product.img
5. If you are first time to flash LineageOS, Wipe the old userdata:
Code:
fastboot erase userdata

GApps:
Download my OrangeFox Recovery then flash it

Root access:
Flash Magisk in recovery.

SD CARD Notice:
Format you sdcard into 'FAT32' if your sdcard can NOT be use in this system

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 Logcat for example

Bugs:
LDAC (Not sure)
FP Not working in Third Apps

Also thanks to:
BBN Shion Sjll
nezorflame (This build won`t come out so fast without his server)

The LineageOS Team
The CyanogenMod Team

Source:
Kernel Source
Device vendor
Device Tree

Feel free to donate me:
Paypal

Screenshots:

photo_2021-01-21_14-10-12.jpg
photo_2021-01-21_14-10-14.jpg
photo_2021-01-21_14-10-16.jpg
 
Last edited:

flyl0

Account currently disabled
Dec 8, 2018
258
102
Cannes
OnePlus 7 Pro
Sony Xperia 5 II
Oh wow it was quick lol thanks a lot for this build once again. 🙏🏼🙏🏼Fortunately, there are developers like you.

I have a few questions though :
1. Which version of Magisk will work for root on this build?
2. Can I install full or stock NikGapps without any issues?
3. Does the issue with the sd card mentioned in the post about LOS 17.1 been fixed?

Have a beautiful day.
 

Nezorflame

Senior Member
Oh wow it was quick lol thanks a lot for this build once again. 🙏🏼🙏🏼Fortunately, there are developers like you.

I have a few questions though :
1. Which version of Magisk will work for root on this build?
2. Can I install full or stock NikGapps without any issues?
3. Does the issue with the sd card mentioned in the post about LOS 17.1 been fixed?

Have a beautiful day.

Both Nik's and OpenGApps latest packages should be fine, but you may have issues regarding the size - I wasn't able to install our stock package due to insufficient space.
 

flyl0

Account currently disabled
Dec 8, 2018
258
102
Cannes
OnePlus 7 Pro
Sony Xperia 5 II
Stuck on boot on Lineage logo. Have already upgraded to A11 before this, so it might be connected.
Will try to grab logcat.

Both Nik's and OpenGApps latest packages should be fine, but you may have issues regarding the size - I wasn't able to install our stock package due to insufficient space.

Damn so we can't install full or stock Gapps/NikGapps on LOS 18.1 ?
Anyway i can stay on A10 and flash this rom right ?
 

Jayram2000

Senior Member
Sep 14, 2015
98
22
Tampa
OnePlus 2
Sony Xperia 5 II
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!
5. If you came from SODP ROMs, you need to go back to official Android 10 firmware, and boot into launcher.
6. You don`t need to upgrade to R vendor (58.1.X).Just stay at Q vendor 58.0.X will be fine.
7. Still in developing. May have some unexpected bugs.

Downloads Links
LineageOS 18.1:
Unofficial-build:
Link (AFH)

Google Applications (optional):
NikGApps: https://nikgapps.com
Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

Flashing and updating
How to flash
Make sure you upgraded to Official Android 10.0 from Sony
Unlock bootloader is necessary.

Download latest platform-tools from
google

1. Install fastbootd drivers, guidance
2. Put your device into fastboot by volume up key.
3. Enter fastbootd:
Code:
fastboot reboot fastboot
4. Flash LineageOS:
Code:
fastboot set_active a
fastboot flash boot boot.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img
fastboot erase metadata
fastboot flash system system.img
fastboot flash product product.img
5. If you are first time to flash LineageOS, Wipe the old userdata:
Code:
fastboot erase userdata

GApps:
Download Lineage Recovery

Flash and boot into Recovery then choose Apply update - Apply from ADB, then sideload the gapps package on your PC with adb tool:
Code:
adb sideload <PATH OF GAPPS>
Root access:
Flash Magisk in recovery.

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 Logcat for example

Bugs:
LDAC (Not sure)

Also thanks to:
BBN Shion Sjll

The LineageOS Team
The CyanogenMod Team

Source:
Kernel Source
Device vendor
Device Tree

Screenshots:

View attachment 5194147View attachment 5194149View attachment 5194151
Awesome!, did you manage to get the SD card working?
 

Nezorflame

Senior Member
The OP says you should use the stock android 10 firmware as a basis, so I'd imagine thats your issue.

Not really - the first post states that "You don`t need to upgrade to R vendor (58.1.X)", that doesn't imply that with R vendor the phone won't boot. If that's the case, then the initial quote is kinda misleading.
In any case, I'll just try Q vendor as well and see how it goes.
 
  • Like
Reactions: flyl0

Nezorflame

Senior Member
So I've been testing different vendor setups and yes, using R vendor will render the ROM not to boot - it doesn't get past the initial boot animation loop.
So I guess it'd be better to correct the first post stating that users MUST use Q vendor in order to be able to boot.
 

ken442266

Member
Jun 29, 2014
49
94
So I've been testing different vendor setups and yes, using R vendor will render the ROM not to boot - it doesn't get past the initial boot animation loop.
So I guess it'd be better to correct the first post stating that users MUST use Q vendor in order to be able to boot.

Thanks for correct. Yeah, You have to use Q vendor. 😅😅😅
 

ken442266

Member
Jun 29, 2014
49
94
So about sd card issue. I`m not sure what cause this issue. And when i trying to solve this.
It just works fine on my sd card. So i do not know how to solve it as i can`t get some details on it.
So if anybody can provide logcat for format && access sd card that can be great.
By the way. PixelExperience Eleven is on the way.

photo_2021-01-22_11-10-03.jpg
photo_2021-01-22_11-10-08.jpg
 
Last edited:

Jayram2000

Senior Member
Sep 14, 2015
98
22
Tampa
OnePlus 2
Sony Xperia 5 II
So about sd card issue. I`m not sure what cause this issue. And when i trying to solve this.
It just works fine on my sd card. So i do not know how to solve it as i can`t get some details on it.
So if anybody can provide logcat for format && access sd card that can be great.
By the way. PixelExperience Eleven is on the way.

View attachment 5194959View attachment 5194961
I have a 128gb SDXC card from Samsung, I can try again. How can I capture the logcat for the SD?
 
  • Like
Reactions: Nezorflame

flyl0

Account currently disabled
Dec 8, 2018
258
102
Cannes
OnePlus 7 Pro
Sony Xperia 5 II
TIP 1 : If you have an sd card and want to use it on this build you have to format the sd card to fat32, then it will work just fine.

TIP 2 : If you want Gapps on LOS, make sure to choose the core gapps or basic gapps only.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    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.
    */

    NOTICE:
    This is the last update before i sold this phone.
    [Please make sure you updated to 58.1.X (Which is Android11)]
    + Camera key and Assist Key Fix
    + Update to R based
    + Fix the issue about 5Ghz hotspot
    + March Security Update

    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 11 before flashing this ROM.
    4. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!
    5. If you came from SODP ROMs, you need to go back to official Android 11 firmware, and boot into launcher.
    6. Please make sure you are using Android 11 Stock ROM [Version > 58.1.X] before flash this.
    7. Still in developing. May have some unexpected bugs.

    Downloads Links
    LineageOS 18.1:
    Unofficial-build:
    Link (MEGA)

    Looking For CinemaPro And PhotoPro:
    Click Here

    Google Applications (optional):
    NikGApps: https://nikgapps.com
    Information: Flash the GApps before the first boot. If not, a clean flash is recommended.

    Flashing and updating
    How to flash
    Make sure you upgraded to Official Android 11 from Sony
    Unlock bootloader is necessary.

    Download latest platform-tools from
    google

    1. Install fastbootd drivers, guidance
    2. Put your device into fastboot by volume up key.
    3. Enter fastbootd:
    Code:
    fastboot reboot fastboot
    4. Flash LineageOS:
    Code:
    fastboot set_active a
    fastboot flash boot boot.img
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    fastboot --disable-verity --disable-verification flash vbmeta_system vbmeta_system.img
    fastboot erase metadata
    fastboot flash system system.img
    fastboot flash product product.img
    5. If you are first time to flash LineageOS, Wipe the old userdata:
    Code:
    fastboot erase userdata

    GApps:
    Download my OrangeFox Recovery then flash it

    Root access:
    Flash Magisk in recovery.

    SD CARD Notice:
    Format you sdcard into 'FAT32' if your sdcard can NOT be use in this system

    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 Logcat for example

    Bugs:
    LDAC (Not sure)
    FP Not working in Third Apps

    Also thanks to:
    BBN Shion Sjll
    nezorflame (This build won`t come out so fast without his server)

    The LineageOS Team
    The CyanogenMod Team

    Source:
    Kernel Source
    Device vendor
    Device Tree

    Feel free to donate me:
    Paypal

    Screenshots:

    photo_2021-01-21_14-10-12.jpg
    photo_2021-01-21_14-10-14.jpg
    photo_2021-01-21_14-10-16.jpg
    2
    I can actually keep updating it, will do when I have time

    I could use some help setting up the PDX206 device tree for LOS if you've got some time.
    I was able to build AOSP given the `sonyxperiadev` sources, but adapting it to LOS has been a challenge:
    - If I use the entire `local_manifests` repo, I get path conflicts during the build. I've been able to eliminate duplicate repos cloning to the same path (using remove-project directives, but am still having trouble with the same modules being defined in multiple Android.bp files.)
    - If I only source the device repos in a roomservice.xml manifest file, I get SOONG errors.

    I've yet to get a successful LOS build for this device :(
    2
    Yep. Dev seems to be more active over in the XPERIA 1 II sections. I'm going to see if I can get any traction porting some of their work over to our device. I'm no developer, so it's unlikely I'll get anywhere (soon, anyway).
    I can actually keep updating it, will do when I have time
    1
    The OP says you should use the stock android 10 firmware as a basis, so I'd imagine thats your issue.

    Not really - the first post states that "You don`t need to upgrade to R vendor (58.1.X)", that doesn't imply that with R vendor the phone won't boot. If that's the case, then the initial quote is kinda misleading.
    In any case, I'll just try Q vendor as well and see how it goes.