[SODP][ROM][AOSP][XZ2, XZ2C, XZ3] SonyAOSP 11 [BETA]

Search This thread

MartinX3

Recognized Contributor
Sep 14, 2014
5,710
2,822
Mars
martinx3.github.io
The Sony Open Devices Project is always happy about volunteers (coding, testing, etc) :)
Also mainlining your favorite snapdragon powered xperia device into the mainline kernel is possible and we will be glad to help you!


Code:
#include <std_disclaimer.h>
/*
*
* We are 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 us for messing up your device, we will laugh at you.
*
*/

This is the AOSP ROM for the Sony Xperia XZ2 (akari), XZ2C (apollo) and XZ3 (akatsuki)

This ROM build will always mainly based on Sony AOSP Code and maybe include cherry-picks.
I plan to make monthly builds, after a new security patch level, if there is no need for a critical hotfix.

FAQ:

Bugtracker:

Bugreport:
  • A bugreport needs
    Code:
    logcat -b all
    and a way to reproduce the issue.
  • A crash of the system requires the content of the /sys/fs/pstore folder as bug report
    • Be aware that a second reboot erases this folder
  • A crash to the recovery partition requires additionally the content of the /dev/block/by-name/misc partition
    • You get the content via `cat /dev/block/by-name/misc partition > /path/to/output/file.txt`
  • To rescue a not responding phone:
    • VOLUP+POWER for 3 Seconds -> RESTART with one Vibration.
    • VOLUP+POWER for 20 Seconds -> SHUTDOWN with 3 Vibrations.
    • VOLUP+POWER+CAMERA for 30 Seconds -> HARDWARE SHUTDOWN by discharging a capacitor.

Thank you very much for your help, code contribution & testing! (Random order):
  • @jerpelea, the sony employees and their volunteers (people like you and me) coding this wonderful piece of software
  • @dhacke for providing a download server
  • And many thanks to the few donators! :)

A telegram group for technical SODP stuff:

XDA:DevDB Information
AOSP, ROM for the Xperia XZ2

Contributors
MartinX3, Sony, SonyAOSP
Source Code: https://github.com/sonyxperiadev

ROM OS Version: Android 10
ROM Kernel: Linux 4.x
ROM Firmware Required: Latest Stock Firmware
Based On: AOSP

Version Information
Status:
Beta
Current Beta Version: 11
Beta Release Date: 2020-10-23

Created 2020-10-23
Last Updated 2020-10-23
 
Last edited:
  • Like
Reactions: Manglegend

MartinX3

Recognized Contributor
Sep 14, 2014
5,710
2,822
Mars
martinx3.github.io
Download & Installation

Download ROM:

Download Drivers:
  • OEM (Tama) binaries
    • Please use the the OEM build which came before my last release, if you getting problems like a not bootable or crashing device.

GCAM Camera App:
  • Suggested GCams But GCAM's aren't usable at the moment until a camera hardware resource budget bug got fixed in the OEM binary blob or the device receives mainline support by SODP.

Installation with a recovery:
  1. fastboot flash oem --slot all oem_*.img (Only needed until the device receives mainline support by SODP)
  2. Flash the ROM in a recovery
  3. Reboot into recovery just to make sure you're on the new slot
  4. OpenGapps (Requires TWRP or a custom ROM recovery)
  5. Dual Sim Patcher (Requires TWRP or a custom ROM recovery)
  6. (In case a modification prevents your device from booting) fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Flash the ROM without a recovery:
  1. Extract the payload.bin from the .zip file
  2. Extract the .img files with the Playload Dumper
  3. fastboot flash boot boot.img
  4. fastboot flash dtbo dtbo.img
  5. fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
  6. fastboot -w (Wipes your internal storage and the userdata)
  7. Now you got the AOSP recovery, to please continue with the normal installation
 
Last edited:
  • Like
Reactions: Manglegend

MartinX3

Recognized Contributor
Sep 14, 2014
5,710
2,822
Mars
martinx3.github.io
News

08.04.2021

android-11.0.0_r34 (April security patchlevel)
OEMv4 support!

12.03.2021
android-11.0.0_r32 (March security patchlevel)
Fixed mobile and wifi

13.02.2021
android-11.0.0_r29 (February security patchlevel)

12.01.2021
android-11.0.0_r27 (January security patchlevel)

12.12.2020
android-11.0.0_r18 (December security patchlevel)

14.11.2020
android-11.0.0_r17 (november security patchlevel)

23.10.2020
hello android-11.0.0_r4 (october security patches!) for the xz2, xz2c & xz3
 
Last edited:
  • Like
Reactions: kkosnuss

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    So, I managed to install the latest version (0408) on the XZ2c (dual sim). Essentially, I followed this procedure:

    (Remember to use sw rather than hw bootloader each and every time, i.e., when entering bootloader via hw buttons make sure to then re-enter it by typing 'fastboot reboot bootloader')

    Flashed latest stock ROM via newflasher on slot A
    Booted ROM fully (until desktop with applications)
    Switched slot in bootloader
    Flashed latest stock ROM via newflasher on slot B
    Booted ROM fully
    Ran 'fastboot boot <TWRP>.img' to boot into the stock ver. (check TWRP thread)
    In stock TWRP, installed AOSP OTA (the zip)
    Rebooted to bootloader
    Flashed OEM binaries on both slots
    # fastboot flash oem_a <oem>.img
    # fastboot flash oem_b <oem>.img
    Ran 'fastboot -w' (to wipe phone)
    Installed SODP TWRP from bootloader (check TWRP thread)
    Rebooted to TWRP (SODP)
    Installed Gapps
    Installed Dualsim patcher
    Rebooted into AOSP - successfully

    (EDITED) Issues
    - at least the essential functions work (both wifi and 4g are fine, can make and receive calls/sms, use 4g data; fingerprint works too)
    - automatic brightness is broken (does not work at all)
    - changing volume during phone calls not possible
    - scrolling (in menus, browsers etc.) is often rather janky, not smooth
    - this is rather stupid, but I find it quite hard to reject phone calls by dragging down the red button in the phone app (I succeeded a few times and very annoyingly failed a few others)
    - the notification light only outputs some colors, not others (e.g., yellow) (it was broken in LOS17.1 as well, mostly over the same colors)
    - camera output is garbage (looks like RAW); I could not find a working GCam for photos, although video works in several versions, 5, 6 and 7 (5.1 is the only one with 'working' photo, but the pics are blue)
    - GCam Go (I tried the darkness versions) works in a satisfactory way, though nothing remarkable
    - I keep getting the modem notification after restarts; can be dismissed but not turned off
    - have not tried magisk yet
    1
    08.04.2021
    android-11.0.0_r34 (April security patchlevel)
    OEMv4 support!
  • 3
    So, I managed to install the latest version (0408) on the XZ2c (dual sim). Essentially, I followed this procedure:

    (Remember to use sw rather than hw bootloader each and every time, i.e., when entering bootloader via hw buttons make sure to then re-enter it by typing 'fastboot reboot bootloader')

    Flashed latest stock ROM via newflasher on slot A
    Booted ROM fully (until desktop with applications)
    Switched slot in bootloader
    Flashed latest stock ROM via newflasher on slot B
    Booted ROM fully
    Ran 'fastboot boot <TWRP>.img' to boot into the stock ver. (check TWRP thread)
    In stock TWRP, installed AOSP OTA (the zip)
    Rebooted to bootloader
    Flashed OEM binaries on both slots
    # fastboot flash oem_a <oem>.img
    # fastboot flash oem_b <oem>.img
    Ran 'fastboot -w' (to wipe phone)
    Installed SODP TWRP from bootloader (check TWRP thread)
    Rebooted to TWRP (SODP)
    Installed Gapps
    Installed Dualsim patcher
    Rebooted into AOSP - successfully

    (EDITED) Issues
    - at least the essential functions work (both wifi and 4g are fine, can make and receive calls/sms, use 4g data; fingerprint works too)
    - automatic brightness is broken (does not work at all)
    - changing volume during phone calls not possible
    - scrolling (in menus, browsers etc.) is often rather janky, not smooth
    - this is rather stupid, but I find it quite hard to reject phone calls by dragging down the red button in the phone app (I succeeded a few times and very annoyingly failed a few others)
    - the notification light only outputs some colors, not others (e.g., yellow) (it was broken in LOS17.1 as well, mostly over the same colors)
    - camera output is garbage (looks like RAW); I could not find a working GCam for photos, although video works in several versions, 5, 6 and 7 (5.1 is the only one with 'working' photo, but the pics are blue)
    - GCam Go (I tried the darkness versions) works in a satisfactory way, though nothing remarkable
    - I keep getting the modem notification after restarts; can be dismissed but not turned off
    - have not tried magisk yet
    1
    The Sony Open Devices Project is always happy about volunteers (coding, testing, etc) :)
    Also mainlining your favorite snapdragon powered xperia device into the mainline kernel is possible and we will be glad to help you!


    Code:
    #include <std_disclaimer.h>
    /*
    *
    * We are 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 us for messing up your device, we will laugh at you.
    *
    */

    This is the AOSP ROM for the Sony Xperia XZ2 (akari), XZ2C (apollo) and XZ3 (akatsuki)

    This ROM build will always mainly based on Sony AOSP Code and maybe include cherry-picks.
    I plan to make monthly builds, after a new security patch level, if there is no need for a critical hotfix.

    FAQ:

    Bugtracker:

    Bugreport:
    • A bugreport needs
      Code:
      logcat -b all
      and a way to reproduce the issue.
    • A crash of the system requires the content of the /sys/fs/pstore folder as bug report
      • Be aware that a second reboot erases this folder
    • A crash to the recovery partition requires additionally the content of the /dev/block/by-name/misc partition
      • You get the content via `cat /dev/block/by-name/misc partition > /path/to/output/file.txt`
    • To rescue a not responding phone:
      • VOLUP+POWER for 3 Seconds -> RESTART with one Vibration.
      • VOLUP+POWER for 20 Seconds -> SHUTDOWN with 3 Vibrations.
      • VOLUP+POWER+CAMERA for 30 Seconds -> HARDWARE SHUTDOWN by discharging a capacitor.

    Thank you very much for your help, code contribution & testing! (Random order):
    • @jerpelea, the sony employees and their volunteers (people like you and me) coding this wonderful piece of software
    • @dhacke for providing a download server
    • And many thanks to the few donators! :)

    A telegram group for technical SODP stuff:

    XDA:DevDB Information
    AOSP, ROM for the Xperia XZ2

    Contributors
    MartinX3, Sony, SonyAOSP
    Source Code: https://github.com/sonyxperiadev

    ROM OS Version: Android 10
    ROM Kernel: Linux 4.x
    ROM Firmware Required: Latest Stock Firmware
    Based On: AOSP

    Version Information
    Status:
    Beta
    Current Beta Version: 11
    Beta Release Date: 2020-10-23

    Created 2020-10-23
    Last Updated 2020-10-23
    1
    Download & Installation

    Download ROM:

    Download Drivers:
    • OEM (Tama) binaries
      • Please use the the OEM build which came before my last release, if you getting problems like a not bootable or crashing device.

    GCAM Camera App:
    • Suggested GCams But GCAM's aren't usable at the moment until a camera hardware resource budget bug got fixed in the OEM binary blob or the device receives mainline support by SODP.

    Installation with a recovery:
    1. fastboot flash oem --slot all oem_*.img (Only needed until the device receives mainline support by SODP)
    2. Flash the ROM in a recovery
    3. Reboot into recovery just to make sure you're on the new slot
    4. OpenGapps (Requires TWRP or a custom ROM recovery)
    5. Dual Sim Patcher (Requires TWRP or a custom ROM recovery)
    6. (In case a modification prevents your device from booting) fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

    Flash the ROM without a recovery:
    1. Extract the payload.bin from the .zip file
    2. Extract the .img files with the Playload Dumper
    3. fastboot flash boot boot.img
    4. fastboot flash dtbo dtbo.img
    5. fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
    6. fastboot -w (Wipes your internal storage and the userdata)
    7. Now you got the AOSP recovery, to please continue with the normal installation
    1
    News

    08.04.2021

    android-11.0.0_r34 (April security patchlevel)
    OEMv4 support!

    12.03.2021
    android-11.0.0_r32 (March security patchlevel)
    Fixed mobile and wifi

    13.02.2021
    android-11.0.0_r29 (February security patchlevel)

    12.01.2021
    android-11.0.0_r27 (January security patchlevel)

    12.12.2020
    android-11.0.0_r18 (December security patchlevel)

    14.11.2020
    android-11.0.0_r17 (november security patchlevel)

    23.10.2020
    hello android-11.0.0_r4 (october security patches!) for the xz2, xz2c & xz3
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone