[EOL][SODP][ROM][AOSP][XZ2, XZ2C, XZ3] SonyAOSP 9.0.0_r46 [Stable]

Should I continue this project?

  • Yes, for the XZ2.

    Votes: 98 35.8%
  • Yes, for the XZ2C.

    Votes: 120 43.8%
  • Yes, for the XZ3.

    Votes: 78 28.5%
  • No.

    Votes: 2 0.7%

  • Total voters
    274
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 and the OEM binary got fully implemented, if there is no need for a critical hotfix.

Preview Picures:

FAQ:
jerpelea said:
for a complete security patch you have to
1. flash the stock firmware using https://developer.sony.com/develop/open-devices/get-started/flash-tool/
2. build and flash the ROM
* The security patch may affect or not the proprietary parts depending on HW and implementation
* After official support ends you can still get security updates for kernel and Android but loader and firmware will be stuck to the latest official release

Known Bugs:

Bugreport:
  • A bugreport needs logcat, dmesg 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):

A telegram group for technical SODP stuff:

XDA:DevDB Information
AOSP, ROM for the Xperia XZ2

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

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

Version Information
Status:
No Longer Updated
Current Stable Version: 9
Stable Release Date: 2019-08-08

Created 2018-09-16
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:

Installation:
  1. fastboot flash boot boot.img
  2. fastboot flash dtbo dtbo.img
  3. fastboot flash vbmeta vbmeta.img
  4. fastboot flash system system.img
  5. fastboot flash vendor vendor.img
  6. fastboot flash oem oem_*.img
  7. (Optional, but mandatory on first boot) fastboot flash userdata userdata.img -> will factory reset the device.
  8. (Mandatory on dual sim devices) Dual Sim Patcher
  9. (Optional) https://opengapps.org/ or MicroG
 

Attachments

  • IMG_20190421_115210.jpg
    IMG_20190421_115210.jpg
    249.2 KB · Views: 3,517
  • IMG_20190421_140718_HDR.jpg
    IMG_20190421_140718_HDR.jpg
    282.7 KB · Views: 3,374
  • IMG_20190421_181313_HDR.jpg
    IMG_20190421_181313_HDR.jpg
    284.3 KB · Views: 2,663
  • IMG_20190421_181551_HDR.jpg
    IMG_20190421_181551_HDR.jpg
    284.1 KB · Views: 2,517
  • IMG_20190421_181600_HDR.jpg
    IMG_20190421_181600_HDR.jpg
    278.1 KB · Views: 2,311
  • IMG_20190421_181606_HDR.jpg
    IMG_20190421_181606_HDR.jpg
    287 KB · Views: 2,390
  • IMG_20190421_181615_HDR.jpg
    IMG_20190421_181615_HDR.jpg
    288.7 KB · Views: 2,344
  • IMG_20190421_181619_HDR.jpg
    IMG_20190421_181619_HDR.jpg
    280.6 KB · Views: 2,309
  • IMG_20190421_181627_HDR.jpg
    IMG_20190421_181627_HDR.jpg
    297 KB · Views: 2,177
  • IMG_20190421_181643_HDR.jpg
    IMG_20190421_181643_HDR.jpg
    293.9 KB · Views: 2,172
  • IMG_20190421_182203_HDR.jpg
    IMG_20190421_182203_HDR.jpg
    252.7 KB · Views: 2,092
  • IMG_20190421_182212_HDR.jpg
    IMG_20190421_182212_HDR.jpg
    259 KB · Views: 2,205
  • IMG_20190421_182220_HDR.jpg
    IMG_20190421_182220_HDR.jpg
    266.4 KB · Views: 2,235
  • IMG_20190421_182226_HDR.jpg
    IMG_20190421_182226_HDR.jpg
    279.2 KB · Views: 2,273
  • IMG_20190421_203253_HDR.jpg
    IMG_20190421_203253_HDR.jpg
    252.3 KB · Views: 2,384
  • IMG_20190421_203300_HDR.jpg
    IMG_20190421_203300_HDR.jpg
    253.8 KB · Views: 2,356
  • IMG_20190421_203307_HDR.jpg
    IMG_20190421_203307_HDR.jpg
    254.2 KB · Views: 2,325
  • IMG_20190421_203549_HDR.jpg
    IMG_20190421_203549_HDR.jpg
    255.1 KB · Views: 2,358
  • afterOshmoun.jpg
    afterOshmoun.jpg
    84.1 KB · Views: 2,819
Last edited:

MartinX3

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

05.01.2020
this rom is now officially end of life like the omnirom.
Future development happens only on android 10.0 with kernel 4.14.
Of course this doesn't automatically make this rom unusable. :)

27.10.2019
sonyaosp 9.0.0_r46
august security patch
newest sync with sodp code.
Fixed not working touch for the few xz2 (compact) users with tcm touch chip.
(i don't know why the tcm chip got rarely used in the xz2 & xz2 compact hardware).

Ps: The new security updates are only happening on android 10 and require backporting to 9 from developers who know what they are doing to avoid any new (security) bugs.
We sadly don't have this capacity.

07.09.2019
dear xz2 compact owners with not working touch.
It seems that we fixed the problem
https://github.com/sonyxperiadev/bug_tracker/issues/351
the code needs to to get refactored and merged into sodp, before i can release new builds.
But anyway, i'm on vacation & studying for exams, so don't expect builds earlier than end of september/october.

To test it
apollo_v8.zip
Code:
fastboot flash boot boot.img
fastboot flash vendor vendor.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

28.08.2019
someone may have seen that in september comes a sodp switch to
1. Android 10 (queen cake)
2. Kernel 4.14 (using 4.9 at the moment)
i won't switch asap to the new stuff and wait until it proofs enough stability to act as a daily driver.
Maybe it is stable directly right release (i don't think it) or it may take ~1-5 months.
(and i don't know how fast sonyaosp switches to q.)

26.08.2019
september no new release
reason -> vacation + university exams


08.08.2019
sonyaosp 9.0.0_r46
august security patch
new glove mode

12.07.2019
sonyaosp 9.0.0_r44
july security patch

16.06.2019
sonyaosp with june 2019 security patch level.

31.05.2019
sonyaosp with may 2019 security patch level.
Newer, faster, more stable, oemv9 support.
Also i'll only push files to the single sim device section.
The dual sim device section will get a file with a hint to look into the single sim section.
There is also the twrp dual sim patcher. Without it the single sim firmware won't work on a dual sim phone.
That'll save bandwith and server storage.


I linked the patcher on the first page, but use my uploaded v4alpha patcher instead.
It contains my complete overhaul of the patcher and the current v3 in the xda thread doesn't work on tama.
I already made a pull request and the author just needs to merge my changes.
https://git.ix5.org/felix/dualsim-patcher/pulls/3

19.05.2019
reworked the thread page

14.05.2019
http://www.dhsfileserver.de/ftp/martinx3/ thank you @dhacke for the second download server

11.05.2019
next build will hopefully contain the open source chromium browser cherry-picked from omnirom.
(if i didn't it wrong, the builds are at
out/target/product/{devicename}/obj/apps/chromium_intermediates/
and
out/target/product/{devicename}/system/app/chromium/chromium.apk)
so we have at least one browser build in and this should also fix maybe happening webview bug.
Thank you @murrofx and @hingbong for your bugreports!

The next build is on hold (like omnirom and aosp twrp) until we get a new prebuild kernel (prebuild kernels usually ensure that the kernel is working and buildable).
https://github.com/sonyxperiadev/vendor-sony-kernel/tree/aosp/le.um.2.3.2.r1.4

02.05.2019
i heard that oemv9 will support the hexagon snapdragon processor.
- longer battery life
- faster device
- real hdr plus for our tama camera

22.04.2019
oemv8 (camera) support!

22.04.2019
attached oemv8 images at the post
https://xdaforums.com/showpost.php?p=77635765&postcount=2

it is only a current snapshot of the camera development.
Expect further improvements with the upcoming oem blobs.

Ps: Oemv8 compatible builds are getting compiled.

12.04.2019
9.0.0_r35 april security update
much fixes
oemv7 support
you should be able to try aosp 10.0 q gsi's with it! :)

07.04.2019

21.02.2019
updated the rom for the probably tomorrow released sony oem v6 with updated camera hal!
(beta release, has still a crash with exposure, they are not finished with their work. Don't expect stock like photos "now".)

10.02.2019
february 2019 patch level
switch from sony aosp to sonyaosp.
Sony aosp = sonyaosp + additional fixes (like exfat sdcard support)
sonyaosp = aosp + device support fixes for xperias
i excluded the gapps with a bit work and investigation!

17.01.2019
january 2019 patch level

09.01.2019
moved to android file host.
Added builds for every supported device.

22.12.2018
added the xz3 (akatsuki).
Camera still not feature complete.
Please search or report bugs in the bug tracker.
Twrp will follow.

29.11.2018
first android 9.0 build. :)
added the xz2c (apollo).
Should be stable enough for stable use.
Please search or report bugs in the bug tracker.

12.10.2018
new build with fixed bugs. :)
including the fixed display damaging bug.
May may maaaaaaaaay you get graphical/display issues, you should deactivate your device asap with (vol up + power)

24.09.2018
build "2018-09-14_15:00+2:00":
Switched back to oem vendor img for android 8.1.
The oem vendor 9.0 img shouldn't be used.

16.09.2018
first release of the unstable, bugfull build.
 
Last edited:

MartinX3

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

MartinX3

Recognized Contributor
Sep 14, 2014
6,121
3,130
Mars
martinx3.github.io
Xperia XZ2
HI every1 !
Does any1 know why I am unable to find any Xperia XZ2 rom in the web at all ?
I hate the feeling I can't use Gcam at all because of Cam2 API is not supported .

Do you mean Custom ROMs?

The XZ2 was introduced with a brand new kernel.
It took months make it compatible with AOSP to create custom ROMs and even since the compatibility stock update in September, the aosp support needs more work.
After that and my TWRP starts working, the custom creation will start.
 
Last edited:

MartinX3

Recognized Contributor
Sep 14, 2014
6,121
3,130
Mars
martinx3.github.io
Xperia XZ2
Status Update!
https://github.com/sonyxperiadev/kernel/pull/1688#issuecomment-428714128
kholk said:
MSM8956 Loire stability not impacted by the upstream updates. @oshmoun never saw stability issues due to that.

Tone testing can be started since this platform is stable.

Tama testing will happen soon, after display issues get solved.


Display Issues = The Big Hardware Damaging Bug!
Yoshino, Nile on hold due to stability issues to be solved.

Display issues = The Big Hardware Damaging Bug!
 
Last edited:
  • Like
Reactions: nicholes and rSG1t

hary232

Senior Member
Dec 14, 2010
127
15
It seems that I will make a new AOSP Build this week.
The Sony Developers made a rampage in the XZ2 Bug List on Github and closed important bugs, including the display damaging bug.

Are you aware that sony released new binaries for 8.1 ?
im curious what the binary brings for 8.1 roms
 

Top Liked Posts