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

Search This thread

born2bkilled

Member
Dec 31, 2016
17
4
Sony Xperia 5 II
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 :(
did you have any luck with los device trees for pdx 206? i just got the phone and cant find any trees to work with!
 

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.