[ROM][UNOFFICIAL] LineageOS 18.1 for Xperia 5 [EOL]

Search This thread

Sjll

Recognized Developer
Jun 4, 2017
538
696
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 DOESN'T support 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 cam from SODP ROMs, you need to go back to official Android 11 firmware, and boot into launcher.
6.This ROM works fo both dual and single models.

Downloads Links
LineageOS 18.1:
Unofficial-build:
Link
Recovery: Link

Copy-partitions: Link


Google Applications (optional):
NikGapps, MindTheGapps. OpenGapps.
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.0 from Sony
Unlock bootloader is necessary.
Download latest platform-tools from google

1. Install google's usb debug drivers.
2. Download Lineage Recovery from above.
3. Put your device into fastboot by holding volume up key.
4. Type the following command to flash the recovery:
Code:
fastboot flash boot boot.img
fastboot flash dtbo dtbo.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
5. Hold power key and volume down key, you will boot into recovery.
6. Sideload the ROM package.
7. Sideload the copy-partitions package.
8. If you are first time to flash LineageOS, Wipe data plz.

Gapps:
After flashing ROM via siddeload, Reboot to recovery, choose Apply from ADB, then sideload the gapps package on your PC with adb tool:
Code:
adb sideload <PATH OF GAPPS>

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

Root access:
Sideload 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 CatLog for example

Also thanks to:
The LineageOS Team
The CyanogenMod Team

XDA:DevDB Information
Lineage-18.1 for Xperia 5, ROM for the Sony Xperia 5

Contributors

Sjll

Source Code:

Donation
https://paypal.me/sjllls

ROM OS Version: Android 11
ROM Kernel: Linux 4.14

Version Information
Status:
Stable

Created 2021-10-21
Last Updated 2021-10-21
 

Attachments

  • Screenshot_20211021-101210_设置[1].png
    Screenshot_20211021-101210_设置[1].png
    153.8 KB · Views: 1,063
Last edited:

Sjll

Recognized Developer
Jun 4, 2017
538
696
Chongqing
FEATURES AND ISSUES
Code:
- Boot: Ok
- Bluetooth: Ok
- WiFi: Ok
- WiFi Hotspot: Ok
- Wireless display: Ok
- RIL - Phone - Data: Ok
- VoLTE: Ok
- GPS: Ok
- Camera: Ok
- Camcorder: Ok
- Lights: Ok
- MicroSD: Ok
- Accelerometer: Ok
- Compass: Ok
- Gyroscope: Ok
- QTI sensors: Ok
- Touchscreen: Ok
- FM Radio: NA
- Fingerprint: Ok
- Vibrator: Ok
- Microphone: Ok
- Audio & music: Ok
- Bluetooth audio: Ok
- NFC: Ok
- Kernel: Ok
- Graphics: Ok
- 3D Rendering: Ok
- Clock: Ok
- DRM: Widewine L3
- Offline Charging: Ok
- USB: Ok
- USB Tethering:  Ok
- USB OTG: Ok
- Encryption: Ok
- SEPolicies: Enforce
 
Last edited:
Hello. I've a problem with samsung microsd 64GB card formated with exFat and my J9210 doesn't read it at all.
I've tried patch bahamut-TFcardFix-sjll-20211103-signed.zip but still no luck. Please help, because i don't need/want to format it witch fat32.
 

Kaze2508

Member
Mar 28, 2018
8
3
I stuck at "E: package is for product pdx201 but expected bahamut"
Can someone help me with this error? I wonder what step I have been wrong....
 

grisu59964

Senior Member
Sep 15, 2013
163
82
N 51° E 008°
Sony Xperia 5
how do you change the fingerprint? is that the pixelprops module one?
The module is documented in its XDA thread, but you can download and install "MagiskHide Props Config" (thats the exact name of the module) directly with the Magisk manager.
After you have installed the module, you need either a terminal emulator app (like ConnectBot or Termux) or you simply connect to your device from your PC via "adb shell".
When you are in the shell, you enter "su" to get root privileges (a popup should appear on your device screen). Then you enter "props" to start the fingerprint ceremony.
I think it is a bit off topic as the problem with failing SafetyNet tests is not bound to this custom ROM, but I'm sure that you will find answers to your problems if you get stuck in any of the steps I described. There are several threads here at XDA assigning that topic and at least the problem is not device-specific, so solutions for other devices might help here as well.
But I really hope my description will help you solve the problem on your device, too!
 
  • Like
Reactions: Aqq123

elmaleek03

Member
Jul 9, 2017
36
28
Tasikmalaya
The module is documented in its XDA thread, but you can download and install "MagiskHide Props Config" (thats the exact name of the module) directly with the Magisk manager.
After you have installed the module, you need either a terminal emulator app (like ConnectBot or Termux) or you simply connect to your device from your PC via "adb shell".
When you are in the shell, you enter "su" to get root privileges (a popup should appear on your device screen). Then you enter "props" to start the fingerprint ceremony.
I think it is a bit off topic as the problem with failing SafetyNet tests is not bound to this custom ROM, but I'm sure that you will find answers to your problems if you get stuck in any of the steps I described. There are several threads here at XDA assigning that topic and at least the problem is not device-specific, so solutions for other devices might help here as well.
But I really hope my description will help you solve the problem on your device, too!
thanks for the steps, tried just now and it works flawlesly, using pixel 4 xl props. but the tricks doesnt work on the PixelOS Android 12. any ideas?
 

grisu59964

Senior Member
Sep 15, 2013
163
82
N 51° E 008°
Sony Xperia 5
thanks for the steps, tried just now and it works flawlesly, using pixel 4 xl props. but the tricks doesnt work on the PixelOS Android 12. any ideas?
With the PixelOS, SafetyNet failed even basic integrity and fixing the fingerprint was not enough on my device. The problem must be something bigger. Maybe Android 12 isn't even ready for SafetyNet on custom ROMs. But I'm quite happy now with LineageOS 18.1 and I hope that the future will bring progress - and updates for both ROMs. :)
 

Kaze2508

Member
Mar 28, 2018
8
3
With the PixelOS, SafetyNet failed even basic integrity and fixing the fingerprint was not enough on my device. The problem must be something bigger. Maybe Android 12 isn't even ready for SafetyNet on custom ROMs. But I'm quite happy now with LineageOS 18.1 and I hope that the future will bring progress - and updates for both ROMs. :)
Can you help me with my ROM installation? I stuck at "E: package is for product pdx201 but expected bahamut" and still haven't figured out what lead to it. I appreciate very much if you read this comment
 
  • Like
Reactions: elmaleek03

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    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 DOESN'T support 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 cam from SODP ROMs, you need to go back to official Android 11 firmware, and boot into launcher.
    6.This ROM works fo both dual and single models.

    Downloads Links
    LineageOS 18.1:
    Unofficial-build:
    Link
    Recovery: Link

    Copy-partitions: Link


    Google Applications (optional):
    NikGapps, MindTheGapps. OpenGapps.
    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.0 from Sony
    Unlock bootloader is necessary.
    Download latest platform-tools from google

    1. Install google's usb debug drivers.
    2. Download Lineage Recovery from above.
    3. Put your device into fastboot by holding volume up key.
    4. Type the following command to flash the recovery:
    Code:
    fastboot flash boot boot.img
    fastboot flash dtbo dtbo.img
    fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    5. Hold power key and volume down key, you will boot into recovery.
    6. Sideload the ROM package.
    7. Sideload the copy-partitions package.
    8. If you are first time to flash LineageOS, Wipe data plz.

    Gapps:
    After flashing ROM via siddeload, Reboot to recovery, choose Apply from ADB, then sideload the gapps package on your PC with adb tool:
    Code:
    adb sideload <PATH OF GAPPS>

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

    Root access:
    Sideload 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 CatLog for example

    Also thanks to:
    The LineageOS Team
    The CyanogenMod Team

    XDA:DevDB Information
    Lineage-18.1 for Xperia 5, ROM for the Sony Xperia 5

    Contributors

    Sjll

    Source Code:

    Donation
    https://paypal.me/sjllls

    ROM OS Version: Android 11
    ROM Kernel: Linux 4.14

    Version Information
    Status:
    Stable

    Created 2021-10-21
    Last Updated 2021-10-21
    6
    FEATURES AND ISSUES
    Code:
    - Boot: Ok
    - Bluetooth: Ok
    - WiFi: Ok
    - WiFi Hotspot: Ok
    - Wireless display: Ok
    - RIL - Phone - Data: Ok
    - VoLTE: Ok
    - GPS: Ok
    - Camera: Ok
    - Camcorder: Ok
    - Lights: Ok
    - MicroSD: Ok
    - Accelerometer: Ok
    - Compass: Ok
    - Gyroscope: Ok
    - QTI sensors: Ok
    - Touchscreen: Ok
    - FM Radio: NA
    - Fingerprint: Ok
    - Vibrator: Ok
    - Microphone: Ok
    - Audio & music: Ok
    - Bluetooth audio: Ok
    - NFC: Ok
    - Kernel: Ok
    - Graphics: Ok
    - 3D Rendering: Ok
    - Clock: Ok
    - DRM: Widewine L3
    - Offline Charging: Ok
    - USB: Ok
    - USB Tethering:  Ok
    - USB OTG: Ok
    - Encryption: Ok
    - SEPolicies: Enforce
    4
    @Sjll
    Really great news, thank you so much - that's I was waiting for!
    Are you planning to go to official LineageOS builds?

    Until I solved the kernel build from source.
    4
    Hello @Sjll !

    Thanks for providing this rom, with proper sources !
    I am planning on building lineage based on your sources. Is this ok for you ?

    Also, I noticed that the current Lineage sources you are using are based on a prebuilt kernel. Could you explain the reason why ?
    Do you have kernel sources that you are currently building/using please ? (I am very bad with kernel stuffs :()


    Thanks for your work !
    2
    Still struggling with the kernel issue....
    goodluck broo.