[ALL_IN_ONE][R/Q] Xperia 5 II ROMS

Search This thread

ken442266

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

Notes:
20210316: LineageOS is out.
20210317: EvoX is out.
20210317: PEP is out.

So i merge all threads into one thread.
For Lineage18.1, PEP, EvoX will get another update cause i make wrong build type.
PEP Will come out tomorrow.

Thanks again for nezorflame, Big thanks.
Old lineage17.1 and RR are just old rom with new thread.
New build for lineage18.1 and PEP fix the issue about 5Ghz hotspot

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. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!

ROMS:

[Android 10 - Vendor 10 = ROM Version is Android 10 and you must using stock 10 vendor for booting]
[Android 11 - Vendor 11 = ROM Version is Android 11 and you must using stock 11 vendor for booting]

LineageOS 17.1 - Android 10 - Vendor 10
AFH

LineageOS 18.1 - Android 11 - Vendor 11
MEGA (20210316 New Update)

EvolutionX Elle - Android 11 - Vendor 11
MEGA (20210317 New Update)

RROS - Android 10 - Vendor 10

AFH

PixelExperience Plus - Android 11 - Vendor 11
MEGA (20210317 New Update)

Looking For CinemaPro And PhotoPro:

Click Here

How To Flash:
Unlock bootloader is necessary.

1. Install fastbootd drivers, guidance
2. Put your device into fastboot by volume up key.
Code:
// reboot to fastbootd
fastboot reboot fastboot
// flash it
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
// earse userdata
fastboot erase userdata

Bugs:
FP Not working in Third Apps

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

Source:
Kernel Source
Device vendor
Device Tree

Feel free to donate me:
Paypal
 
Last edited:

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

Notes:
20210316: LineageOS is out.
So i merge all threads into one thread.
For Lineage18.1, PEP, EvoX will get another update cause i make wrong build type.
Thanks again for nezorflame, Big thanks.
Old lineage17.1 and RR are just old rom with new thread.
New build for lineage18.1 and PEP fix the issue about 5Ghz hotspot

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. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!

ROMS:

[Android 10 - Vendor 10 = ROM Version is Android 10 and you must using stock 10 vendor for booting]
[Android 11 - Vendor 11 = ROM Version is Android 11 and you must using stock 11 vendor for booting]

LineageOS 17.1 - Android 10 - Vendor 10
AFH

LineageOS 18.1 - Android 11 - Vendor 11
MEGA (20210316 New Update)

EvolutionX Elle - Android 11 - Vendor 11

MEGA

RROS - Android 10 - Vendor 10
AFH

PixelExperience Plus - Android 11 - Vendor 11
MEGA

Looking For CinemaPro And PhotoPro:
Click Here

How To Flash:
Unlock bootloader is necessary.

1. Install fastbootd drivers, guidance
2. Put your device into fastboot by volume up key.
Code:
// reboot to fastbootd
fastboot reboot fastboot
// flash it
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
// earse userdata
fastboot erase userdata

Bugs:
FP Not working in Third Apps

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

Source:
Kernel Source
Device vendor
Device Tree

Feel free to donate me:
Paypal
Thanks for all your hard work! How stable is EvoX compared to the current RR build? I'm looking to move up to Android 11 finally and want to see if that is my next ROM
 

Bellitsch89

Senior Member
Aug 28, 2012
809
300
34
Duisburg
I will have a Lots of Features. For example color theming, satusbar theming and notification bar theming.
I think then is RROS better for me?
 

iancornelius

Member
Feb 4, 2015
6
1
Whilst trying to flash the product.img (Lineage 18.1), I get the following error:

writing 'product_a' 2/2... FAILED (remote: Operation not permitted)

Whilst trying to flash product.img (PEP), I also get the following error:

writing 'product_a' 6/6... FAILED (remote: Operation not permitted)

I have OEM unlocked my device, and I am flashing files via 'fastbood'. Any suggestions?

Edit: I fixed the issue myself, the problem was down to out of date fastboot drivers on Linux. Downloading the latest 'platform-tools' from Google solved the issue.
 
Last edited:

baboon23

Senior Member
Apr 9, 2020
149
39
Question about LOS 18 for this phone....Is VoLTE/Sony Cinema working perfectly on all carriers, or do they use some strange Sony Modem thingy that needs customizations?
 

rayman2k1

Senior Member
Aug 29, 2011
98
26
Sony Xperia 5 II
Do we have anyone maintaining any Xperia 5 II ROMs any more?
With @ken442266 selling his phone, it doesn't seem like anyone else is picking up the mantle. The only "active" ROM thread I see here is Havoc-OS and that seems to only be Android10.
 

Top Liked Posts

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

    Notes:
    20210316: LineageOS is out.
    20210317: EvoX is out.
    20210317: PEP is out.

    So i merge all threads into one thread.
    For Lineage18.1, PEP, EvoX will get another update cause i make wrong build type.
    PEP Will come out tomorrow.

    Thanks again for nezorflame, Big thanks.
    Old lineage17.1 and RR are just old rom with new thread.
    New build for lineage18.1 and PEP fix the issue about 5Ghz hotspot

    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. For VoLTE, you need to boot into stock firmware and enable it before flashing this ROM!

    ROMS:

    [Android 10 - Vendor 10 = ROM Version is Android 10 and you must using stock 10 vendor for booting]
    [Android 11 - Vendor 11 = ROM Version is Android 11 and you must using stock 11 vendor for booting]

    LineageOS 17.1 - Android 10 - Vendor 10
    AFH

    LineageOS 18.1 - Android 11 - Vendor 11
    MEGA (20210316 New Update)

    EvolutionX Elle - Android 11 - Vendor 11
    MEGA (20210317 New Update)

    RROS - Android 10 - Vendor 10

    AFH

    PixelExperience Plus - Android 11 - Vendor 11
    MEGA (20210317 New Update)

    Looking For CinemaPro And PhotoPro:

    Click Here

    How To Flash:
    Unlock bootloader is necessary.

    1. Install fastbootd drivers, guidance
    2. Put your device into fastboot by volume up key.
    Code:
    // reboot to fastbootd
    fastboot reboot fastboot
    // flash it
    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
    // earse userdata
    fastboot erase userdata

    Bugs:
    FP Not working in Third Apps

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

    Source:
    Kernel Source
    Device vendor
    Device Tree

    Feel free to donate me:
    Paypal
    2
    Which Rom is better LineageOS 17.1 or RROS?
    RROS is more feature rich, but has a higher overhead so it depends on what you value. For my case, RR lasts me plenty long and I love having features so its my go to.
    2
    Thanks for the great work!
    I still have a question though, as the two repos(device tree and vendor) are removed, is there any way to create the device tree myself?(I was thinking of utilizing the files Sony provided on openxperiadev but I don't know where to start since I'm pretty much a complete noob to this) Or where should I start if I were to port a Lineage based rom?
    Thanks in advance
    Alright, so what I did for the device and vendor repos, is create a sony.xml file under ./local_manifests and set the contents to
    XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>
        <remote name="github-sony" fetch="https://github.com/" />
    
        <project path="device/sony/edo-comon" name="Mirenk/android_device_sony_edo-common" groups="device" remote="github-sony" revision="lineage-18.1" />
        <project path="device/sony/pdx206" name="Mirenk/android_device_sony_pdx206" groups="device" remote="github-sony" revision="lineage-18.1" />
        <project path="vendor/sony/pdx206" name="hellobbn/android_vendor_sony_pdx203" groups="vendor" remote="github-sony" revision="lineage-18.1" />
    </manifest>

    You'll notice that the vendor is coming from a PDX203 repo (which is the Xperia 1 II), so it'll need a good number of modifications to work for our phone (PDX206). I've done a bunch of massaging to it, but have not had much luck grabbing the required files from the phone with extract-files.sh yet...

    My next tact is to find all the files that I think it needs (scraping proprietary-files.txt and looking for refs in pdx206-vendor.mk, which is just a copy of pdx203-vendor.mk that i did a sed s/203/206/g on) for a proper build from an adb shell and grab them and place them in the proper dirs by hand. I'll create a fork on my GH and push my mods later on today in case it's of any help to you.
    2
    Thanks for the great work!
    I still have a question though, as the two repos(device tree and vendor) are removed, is there any way to create the device tree myself?(I was thinking of utilizing the files Sony provided on openxperiadev but I don't know where to start since I'm pretty much a complete noob to this) Or where should I start if I were to port a Lineage based rom?
    Thanks in advance
    1
    I thought about porting the pdx203 device tree since those two devices share a large portion pf hardware but I was doubtful it would be as simple as doing a literal find&substitute from 203 to 206 lol, at least more work has to be done to adapt for the differences between the two, for instance the 120hz display. I really appreciate your answer as it proves the concept is somewhat workable.
    Meanwhile I accidentally found the previous maintainer (EggOxygen) when searching on another forum (Coolapk) and had a nice conversation with him and learned the whole edo platform thing. That surely cleared things up.
    Anyways I saw the new repo on your GH page. It seemed to be completed and ready for use. Can I compile with this or does I require any furthur modifications? Or is there anything I can do to help improve it? I would be more than happy to contribute, as soom as I get the grasp of all this :D

    Oh, these are not my repos. I just got a link from someone else on these boards, which I used to fill in some of the dirs.
    I'll fork and update them as soon as I have something to contribute.