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

Search This thread

MartinX3

Recognized Contributor
Sep 14, 2014
6,121
3,130
Mars
martinx3.github.io
Xperia XZ2
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:

MartinX3

Recognized Contributor
Sep 14, 2014
6,121
3,130
Mars
martinx3.github.io
Xperia XZ2
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:

Installation with a recovery:
  1. fastboot flash oem _a 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:

MartinX3

Recognized Contributor
Sep 14, 2014
6,121
3,130
Mars
martinx3.github.io
Xperia XZ2
News

09.02.2022


20.09.2021
android-11.0.0_r43 (September security patchlevel)
OEMv7 support

19.09.2021
Revoked the r43 buiild because of error
AndroidRuntime: java.lang.IllegalArgumentException: invokeOemRilRequestRaw failed with rc = -2

We need to wait until the following PRs get merged

17.09.2021
android-11.0.0_r43 (September security patchlevel)
OEMv7 support

17.08.2021
android-11.0.0_r40 (August security patchlevel)
OEMv6 support (Now our device uses the same camx camera framework like Xperia 1/5 (I / II / III)

25.07.2021
android-11.0.0_r39 (July security patchlevel)

10.06.2021
android-11.0.0_r38 (June security patchlevel)
OEMv5 support!

10.05.2021
android-11.0.0_r36 (May security patchlevel)

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:

zhka

Senior Member
Nov 12, 2010
120
16
Is it works with latest october blobs?
Coz my compiled one doesn't. Only works with latest A10 blobs.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    A bird twittered to me, that we got a booted 5.14 mainline kernel on the xz2.
    Now features like usb, sdcard, etc gets added.
    6
    It seems that the new 4.19 kernel with A12 has amazing battery times, thanks to the amazing SODP-Team.
    12h deepsleep with wifi and simcard consumes 2% battery (100% to 98%)
    5
    The A12 build guide is up and I almost synced A12 AOSP.

    Now we need to wait for it to be in a bootable state on tama. :)
    4
    I thought your next project is ArrowOS,, or will do at same time?
    Sadly in my life outside of the smartphone stuff my job and my studies ate much time (corona virus/chaos at the university because of the old, internet hating teachers and trouble in the job because corona made our customers crazy).

    Seems that arrowOS should start with android 12 (and we probably get kernel 4.19 which should fix our battery drain caused bei the qcom RPMh preventing the real deep sleep).
    So I hope optimistically I can port it now. (the battery drain disturbed me a lot, since I don't want to age my battery).

    And I need to port my TWRP on AOSP11.

    And some IT projects for my family, since I'm the multi functional cowpigsheep there doing development, server administration, smartphone fixes, etc for them xD