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

ken442266

Member
Jun 29, 2014
36
63
48
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 MUST USE Q VENDOR in order to be able to boot.
7. Still in developing. May have some unexpected bugs.

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

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 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.

SD CARD Notice:
If your SD card can NOT use in this system

Just format it into 'FAT32' (On PC)
It will works
DO NOT format by android

(Android will format it into 'ExFat' and seems to be some 'reading' issue)

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

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

Senior Member
Dec 8, 2018
208
51
38
Paris
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
Sep 7, 2009
914
2,551
138
Moscow
nezorfla.me
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

Senior Member
Dec 8, 2018
208
51
38
Paris
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
85
19
38
Tampa
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
Sep 7, 2009
914
2,551
138
Moscow
nezorfla.me
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
Sep 7, 2009
914
2,551
138
Moscow
nezorfla.me
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
36
63
48
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
36
63
48
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
85
19
38
Tampa
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

Senior Member
Dec 8, 2018
208
51
38
Paris
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.
 

teostar

Senior Member
May 30, 2013
297
54
58
my apologies if this has been answered somewhere. What prevents GCAM from running on xperia devices with either stock or custom roms?