yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sadly QCOM forbids it and only allows the public release you are already used to.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
Maybe a little misunderstand here, I was talking about blob release from sony, and "compile/flash" about AOSP :)

Why not just publish release what they have at this moment? Who's interested in will test it with newest A13 build and will leave feedback.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
That's sadly the problem. :)

It was already a hard fight to publish these blobs and it is only allowed by protecting it with this long agreement you need to accept first on every download.

The only longterm solution is to replace more and more stuff with open source and to completely mainline the device in the end.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
Ahh, noted :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Currently I run into out of memory issues while building.

24GB RAM and 4 threads are not enough.

So I need to delay the next release.

Lower the used threads or disable some ram consuming processes.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
I think the problem happens because of a bug in coreutils.

A linux package which is needed for `cp` to copy files which is part of the aosp build process.

The bug got introduced one day after I started compiling a new release...

FS#77999 : [coreutils] cp and install --reflink=auto failure

Flyspray, a Bug Tracking System written in PHP.

bugs.archlinux.org

#62404 - --reflink=auto not falling back appropriately to standard copy in all cases - GNU bug report logs
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
04.04.2023
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] osa355:
Is it possible to install gapps now or do you still have to wait?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
After this ROM is reported as stable, I'll look into a TWRP port.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
12.04.2023
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] depeche76:
hello martin can i use this rom for xz2 premium dual?or do you have a different rom for xperia xz premium ? (8166)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Not supported by SODP because QCOM didn't allow it because of the used BIONZ chip.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] zhka:
Is camera already working?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
It seems that my long lasting build issues with aosp are caused by a kernel regresion since 6.1 (which also became the LTS kernel...)

So the next LTS kernel update 6.1.29 should hopefully fix it and I will be able to build aosp without random issues again.

[v2] maple_tree: Make maple state reusable after mas_empty_area() - Patchwork

Linux MM - Patchwork
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
26.05.2023
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
A bird told me that our tama plattform (XZ2/C/3) gets more development love in the next time.

Because of the russian aggression war in the ukraine the development got slowed down.

But luckily our friend still survives.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
News

26.06.2023
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] hasan23112003:
Still waiting a stable version & twrp SODP For A13
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The next version will have a stable XZ3 display.

Our Ukrainian developer fixed it. :)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Noobshadow:
GCAM is working now?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
22.07.2023
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
09.08.2023
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
29.09.2023
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
Is there any information if there will be Android 14 available for the XZ2C?
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
Sadly due to the lack of volunteers contributing code SODP had no A14 support for tama.

Tama is not ported to the 4.19 kernel because of the lack of contribution.

And 4.19 is the oldest kernel supported by SODP A14.

4.14 is dropped in A14 because of the lack of contribution.

So we need to wait for the mainline kernel support which already has most features.

Mainline doesn't need the reinvention of the wheel each time a new kernel version comes or the manual fixing for each new Android version.

The main problem with mainline is the UFS support which needs a special patch which needs to be carefully reviewed and then tested.

If the patch has a bug before upstreaming it into the mainline kernel it erases the UFS on first boot and on the UFS is the bootloader.

So the device turned into a brick.

(Mainline development is done on the sdcard without using the UFS.)
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
Okay. Thank you for the fast answer, Martin!

Sounds as it could happen but we have to wait ...
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
You're welcome :D

But mainlining also needs volunteers writing good C code and have embedded device knowledge or are willing to learn it.

The UFS patch is the main blocker if you don't want to boot the phone from the sdcard.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
The XZ3 booted A14 with kernel 4.14.

We may get kernel 4.19 as well.

Maybe A13 SODP is not the last one until mainline.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] mielletseed:
great!
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] Docence:
hi martin, I was wondering if you could build aosp for xz2p, thanks.
[Sony Xperia XZ2 ROMs, Kernels, Recoveries, & Other] MartinX3:
If you add hardware support for it.

There is no sodp support because Sony never got the permission to use the bionc chip.
[Google Pixel 6 Pro] TheColin21:
I just read the how to guide for this device.

Is there no easy way of updating the stock rom on a Magisk rooted phone?

I would have thought it should be possible to flash the full update in Android and tell Magisk to install to the inactive slot?

Especially there does not seem to be any opportunity without either using a computer or first uninstalling magisk (and for some reason all modules) and rebooting.

Best regards
[Google Pixel 6 Pro] Lughnasadh:
You can do the "Install to inactive slot method", but it's been hit or miss for a lot of folks.
[Google Pixel 6 Pro] TheColin21:
that's extremely weird. If it's a miss, can I still just flash the image through fastboot?
[Google Pixel 6 Pro] roirraW "edor" ehT:
Yes.

Several of our How To Guides in this section detail the full image method as well, which you can use if the OTA method fails. For that matter, you can also use the

Official Google Android Flash Tool

(OEM Unlocking needs to be toggled on - you may not have to manually unlock the bootloader - the "site" will do that on its own).

For what it's worth, for the last six years on my Pixels, I always use the (full) factory image, never the OTA method. I consider the factory image method easy. From what I read about people having trouble with the OTA method every few months (not due to their fault), I will likely never use the OTA method, but I understand why some people want to.
[Google Pixel 6 Pro] TheColin21:
In that case I'll probably create a script which downloads the factory image, extracts it, patches boot.img, and then installs the rest through fastboot... Still a lot more complex than on my current device (hotdog), where I just flash the full image from Android, select install to inactive slot and reboot.... thanks a lot for the information.
[Google Pixel 6 Pro] roirraW "edor" ehT:
As I've mentioned to @Lughnasadh before, I miss the days on my Pixel 1 when I could use Chainfire's [root] FlashFire app (last updated in 2017) to flash an update and re-root with SuperSU all directly from the device and in one step. A short but happy time.
[Google Pixel 6 Pro] ChronoWerX:
No problems with this How To Guide
[Google Pixel 6 Pro] beaverhead:
dont do this this way.
[Google Pixel 6 Pro] philweser:
RIP Flashfire
[General Questions and Answers] xenophoebus:
Recently installed lineage rom which is good, however charging is a bit problematic. Initial display is not advancing into charging icon and then screen off, not sure if charging at all as display drawing power.

Screen goes off when charging the phone when powered up but again not best option and wireless receiver now getting very hot. Any ideas as to how the process can be re-optimized?

Thanks to all those providing these excellent innovations, am looking forward to galaxy a10s rom soon.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
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!

Official site

Unofficial site

Source 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 XZ2C (apollo)

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:

fastboot & adb

https://developer.sony.com/develop/open-devices/get-started/flash-tool/useful-key-combinations/

https://wiki.lineageos.org/adb_fastboot_guide.html

https://developer.android.com/studio/releases/platform-tools

Stuck at SONY logo? Maybe you need to flash the OEM binary to oem_a and oem_b, while just oem is not enough.

Bugtracker:

SODP Bugtracker -> If you think the problem is in SODP

My Bugtracker -> If you think the problem is in my implementation

Bugreport:

A bugreport needs

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:

https://t.me/xda_tv
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
Download & Installation

Download ROM:

Android File Host

FTP-Server from @dhacke

Download Drivers:

OEM (Tama) binaries

GCAM Camera App:

GCAM Issue

Suggested GCams

Installation with a recovery:

fastboot flash oem _a oem_*.img (Only needed until the device receives mainline support by SODP)

Flash the ROM in a recovery

Reboot into recovery just to make sure you're on the new slot

OpenGapps (Requires TWRP or a custom ROM recovery)

Dual Sim Patcher (Requires TWRP or a custom ROM recovery)

(In case a modification prevents your device from booting) fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Flash the ROM without a recovery:

Extract the payload.bin from the .zip file

Extract the .img files with the Playload Dumper

fastboot flash boot boot.img

fastboot flash dtbo dtbo.img

fastboot -w (Wipes your internal storage and the userdata; only if needed)

Now you got the AOSP recovery, to please continue with the normal installation

fastboot flash oem_a oem_*.img (Only needed until the device receives mainline support by SODP)

fastboot flash vendor vendor.img

fastboot flash system system.img
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
News

29.09.2023

09.08.2023

22.07.2023

26.06.2023

26.05.2023

12.04.2023

04.04.2023

07.10.2022

08.09.2022

06.09.2022
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Edick1337:
Is there a stock camera app? Is it possible to record 60 fps videos?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] srspinto:
Hi,

I installed AOSP 13 successfully, but after starting display don´t respond to touch, any solution?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
07.10.2022
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] fnoup:
Good news! I was not able to boot a single of the 12 versions, but Android started with your last build!

On my model the vbmeta line was needed:

```

fastboot --disable-verity --disable-verification flash vbmeta vbmeta

```

Touch screen is working, I'll check the rest later.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] bluep:
That sounds great, just tried it myself but on my device still touch is not working!

Which model do you have exactly? Which build did you install and which binaries?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] fnoup:
SW_binaries_for_Xperia_Android_12_4.19_v3a_tama.img

aosp-13-20221007_apollo.zip

I don't have the details here but my phone is a dual sims one from Europe.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] bluep:
Ok, same model here and I also used the same binaries and ROM. Unfortunately it doesn't have a working touch for me... :-(
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
Is it worth to switch from LOS 20 SonyAOSP 13? I have issues with my RAM, it looks like I'm constantly running out of RAM even if there aren't any Apps running in Background (Developer Tools -> Active Processes) :/

EDIT: Or shall I revert to Android 12 or older in generall because maybe Android uses too much RAM?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
Oh, I thought it was just me.

Since LOS 19 I also have the problem that the RAM gets full and the device slows down.

LOS20 after a full wipe has the same problem.

And I use the 6GB Ram edition.View attachment 5850687View attachment 5850691

About SODP we need to wait for the OEM A13 binary or mainline to boot the device.

I don't know the release date.

Maybe the next time they release new binaries.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
German BOI, läuft alter 😂

YOU ALSO HAD ISSUES WITH RAM ON LOS 19?!?!

Holy moly and I was deleting, wiping, changing this and that and still f-ed up everything!

What does it mean, we need to wait for OEM A13 binary? Does it mean that Sony is kinda still compiling code for the XZ2 devices but not the full ROM?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
That are the closed source hardware drivers until the device is fully supported by the mainline kernel.

I don't know the ETA for the next OEM binary release, but I'm preparing a new SODP 13 build.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
Sounds really great! I hope the memory issue get finally fixxed, I mean...

The Benchmarks with Antutu are still pretty good but cmon Sony... it's so sad that this device with 4GB memory suffers a lot and to be honest, it's size is perfectly for me!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
Since SODP and LOS are different, they mostly don't share issues.

So you might get different issues on SODP. :P
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
Hmmmm.... shall I dirty flash from LOS to SODP? I mean, you still call that ROM alpha which implies that it isn't perfect as a daily driver ^^
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
You need a fullwipe and beta isn't perfect as a daily driver.

You're lucky if alpha boots on your device all the time. :P
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] hdzco:
Hello thanks for the images !

I installed the rom but it doesn't have a working touch. Otherwise I see the lock screen and can use the volume butons. What should I do?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] Jility:
Any news when you compile new SODP 13 build? Should touch work with the current build? Any major bugs know?

Thanks in advance!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
Hey guys,

currently I'm fixing my container build environment.

(Just mount /tmp with the exec flag is left)

Then I can provide builds again.

(I wanted to isolate the build stuff needed on the host for aosp)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
I'm considering to revert back to Android 12 or lower due to RAM issue.... any suggestion beside STOCK? For daily driver?
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
I don't know if my next release has the RAM issue.

But yeah, it's disturbing in LOS 19 & 20.

It slows down.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
Hell yeah... I'll downgrade in a few days and since I like to have TWRP, I think the latest and greatest version would be Android 11 (SODP 11) ... I think it will be stable enough for daily driver (except every build of SODP is kinda beta/alpha)
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
Stupid question; SODP 11 fully compatible with camera including SlowMotion?

I'll downgrade tomorrow to Android 11, seems to be the latest and greatest so far
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
04.04.2023
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] xbran:
everything works under arch linux
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
It works here always fine.

But I use Arch Linux.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
12.04.2023
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DasZey:
Hi, does this support SO-05k model? I'm currently using crDroid but its abit laggy.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
The NFC won't work and there is at least no official support.
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DasZey:
I don't really mind about the NFC since I don't use it.

Just wanted to know if its flash-able on SO-05k or not haha
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] DrTrax:
Still no TAMA binaries from $ony...

Linus would say "F*** you!" like he did to Nvidia!
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
26.05.2023
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] fun0087:
Have you downgraded to SODP 11 yet?

I tried the ROM on my XZ2c single SIM but had a strange issue, no USB connection whatsoever... had to revert back to stock A10 :(
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
News

26.06.2023
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
22.07.2023
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
09.08.2023
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
29.09.2023
[Sony Xperia XZ2 Compact ROMs, Kernels, Recoveries,] MartinX3:
Now EOL for A14.

Luckily Shujath has a XZ3 and XZ2C (I have only a XZ2).

See

[ROM][14.0] AOSP for Sony Xperia XZ2 Compact [SODP]

Android 14 for Xperia XZ2 Compact /* * 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...

xdaforums.com
[Touch Pro, Fuze General] vitalyb:
Is there a way to disable or alter the automatic rating in Windows Media Player? Or at least make it so WMP Mobile doesn't show them as REAL rating?

As it is now, I am having hard time to understand if the song I am listening now to on WMP Mobile was actually rated by me or is it another kind of automatic rating :(.

Any ideas?
[Google Pixel 6 Pro] kevinireland11:
So when I opted into A13 I got an update to A13 official, I think it was like 53mb or so so when I got that update I opted out, so should I receive official Otas now?
[Google Pixel 6 Pro] roirraW "edor" ehT:
Yes. As long as you're not rooted, although there is still a chance with root that OTAs would still work, since Google managed to make the OTA to Stable Android 13 work on rooted devices. This was rare and not typical, but we shall still see if this was just one-time or how it will be from now on. I tend to believe it was one-time due to the severe bootloader security issue.
[Google Pixel 6 Pro] kevinireland11:
Yeah I get yah! :) Thanks I was just wondering incase I didn't receive anything , non root, I think rooting now days is more hassle than anything, so much factory resetting and then issues with Otas and re rooting, my days of that are done, although I might tinker with my S21 at some point 😆
[Google Pixel 6 Pro] roirraW "edor" ehT:
The only time I've factory reset while rooted on my Pixel 6 Pro in the last 10 months is when I accidentally forget to remove the "-w" from the factory image flash-all.bat. :) Same with my Pixel 1 that I used between 2016 and 2020.

I update my phone every month with no trouble, and I love the modifications that having root allows me. But yes, everyone has their particular root needs or not needs, so it all depends on what you want out of your device.

I also never use the OTA method to update, I use the (full) factory image instead.
[Google Pixel 6 Pro] Lughnasadh:
I hate when that happens 🤦‍♂️😂
[Google Pixel 6 Pro] roirraW "edor" ehT:
I blame the Verify/Verification disabling. I did that in the flash-all bat, then forgot about the usual -w. As you said: 🤦‍♂️ LOL!