yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Android Development] deepongi:
Z2/SIRIUS/D6503 CYANOGENMOD 12.1 SABERMOD BUILDS

LOLLIPOP 5.1.1_r6

DOWNLOAD #1

(main mirror)

DOWNLOAD #2

(backup mirror)

ROM CODE COMPILED WITH LATEST SABERMOD ARM-LINUX-ANDROIDEABI 4.9.4 (20150726)

KERNEL CODE COMPILED WITH LATEST SABERMOD ARM-EABI 4.9.4 (20150726)

SOURCE: https://github.com/infected-lp/android_kernel_sony_msm8974/tree/saber

[+] -O3 optimized (arm and thumb)

[+] strict-aliasing

[+] frame-pointers

[+] graphite flags

[+] LinkTimeOptimizations (-flto) flags

[+] cpu arch specific flags (armv7-l)

[+] other flags to optimize even more the code.

BUGS REPORT

REPORT BUGS ONLY:

- AFTER A CLEAN INSTALL

- USING STOCK KERNEL

- USING GAPPS FROM THIRD POST

- NO MODS OF ANY SORT

CHANGELOG:

http://www.cmxlog.com/12.1/sirius/

BUILDBOT:

(intel core i7 3770k, asus p8z77-v, 24gb corsair vengeance pro 2133mhz cl11, msi gtx 970, 1x samsung 850 evo + 1x samsung 128gb ssd 840 pro, 4x western wigital wd3200aaks raid 10 array, samsung f1 1tb, seagate 2tb, silverstone olympia 1000w psu, antec 1200 high-tower)

(wc setup: swiftech apogee xt cpu-block, ek coolstream xtx 240 radiator, 2x scythe slipstream 120mm 1900rpm fans, swiftech mcp355 water-pump, danger den 5.25" reservoir bay)

DISCLAIMER:

These builds are freshly compiled/synced from CyanogenMod Rom open-source code:

https://github.com/CyanogenMod

SPECIAL THANKS

CyanogenMod Dev Team = for the source code.

​

XDA:DevDB Information

Z2/Sirius/D6503 Linaro/Sabermod CyanogenMod 12.1 Builds, ROM for the Sony Xperia Z2

Contributors

infected_

Source Code: https://github.com/CyanogenMod

ROM OS Version: 5.1.x Lollipop

ROM Kernel: Linux 3.4.x

ROM Firmware Required: Latest TWRP recovery

Based On: CyanogenMod

Version Information

Status: Testing

Created 2015-03-31

Last Updated 2015-08-03
[Xperia Z2 Android Development] deepongi:
GAPPS

http://xdaforums.com/android/software/app-minimal-gapps-gapps-lp-20150107-1-t2997368

All packages contains backup-script, so you dont have to flash gapps, everytime you flash a new build.

Many Thanks to [MENTION=5227588]Deltadroid[/MENTION] for making these.
[Xperia Z2 Android Development] deepongi:
F.A.Q (Frequently Asked Questions)

What is the difference between these builds and the official builds?

These are unofficial builds of CyanogenMod 12.1 for the Xperia Z2/sirius.

ROM is built using the same source code (github) like the official one but with these following additions:

Compiled using sabermod arm-eabi 4.9.4 (kernel code) & sabermod arm-linux-androideabi 4.9.4 (rom code) toolchain compilers

May contain some custom cherry-picks. Always see changelog for details.

Cross-compiled using those custom toolchains results in a more smoother, faster, and battery friendly ROM

What is Toolchain?

Source: http://elinux.org

What is SaberMod?

The term "SaberMod" is coming from:

Source: http://www.xda-developers.com/interview-with-developers-of-sabermod-hyper-toolchains/

What is Linaro?

Source: http://www.linaro.org/linux-on-arm/

About GCC main compiler cflags

Screenshots of toolchains used and benchmarks.
[Xperia Z2 Android Development] adyscorpius:
Woohoo!

We were talking about this yesterday!

Edit: Downloading now.

Will put all issues here!
[Xperia Z2 Android Development] deepongi:
you may need to wipe for first install, i had to. and 5.0.2 gapps are compatible.
[Xperia Z2 Android Development] xrenoix:
great

:good: thank's [MENTION=1077833]infected_[/MENTION] :good:
[Xperia Z2 Android Development] VinBenzin810:
What about the issues with loudspeaker is that fixed in and full functionalty in 5.1

And the low call in ringtone is That fixed too ?
[Xperia Z2 Android Development] sbreit:
Wiped system, cache and dalvik cache, installed CM12.1 20150330 and 5.1.0 gapps from known thread but ended up in a boot loop. Did the same with 5.0.2 gapps. I'm seeing lots of GC and SELinux relabeling messages in the log file.

http://pastebin.com/UVwVKm2t

Do I have to wipe Data too or am I running into another issue here?
[Xperia Z2 Android Development] deepongi:
yes, you need to wipe /data .. i needed to, or i would be stuck at boot animation.
[Xperia Z2 Android Development] twistedddx:
I got stuck at boot screen until i wiped data also.

I flashed someones update to pa gapps for 5.1 and found aosp keyboard failed and had to install another ketboard via apk. I am blaming gapps package though for the issue.

keyboard issue aside everything so far seems as good as cm12 by infected.

If anything it maybe slightly more responsive.
[Xperia Z2 Android Development] RyTekk:
You need to flash addon gg keyboard to kick out the force close issue, or just you the pack 1503 instead of 2903 (another person made it)
[Xperia Z2 Android Development] RedSkyRoad:
Can I please get a link to the GApps we suppose to use?

Do we have a recovery on this ROM?
[Xperia Z2 Android Development] munte89:
+1

I would love links to corresponding pico package as well
[Xperia Z2 Android Development] sjamajee:
Here you can find all the gapps you want :)

http://xdaforums.com/android/software/gapps-consolidated-gapps-thread-t3064693
[Xperia Z2 Android Development] hambalos:
Is this rom will work on D6502?
[Xperia Z2 Android Development] RedSkyRoad:
[MENTION=1077833]infected_[/MENTION],

which GApps do you recommend?
[Xperia Z2 Android Development] adyscorpius:
Flash the patch.
[Xperia Z2 Android Development] deepongi:
The ones from Deltadroid ..

http://xdaforums.com/android/software/app-minimal-gapps-gapps-lp-20150107-1-t2997368

i added them to third post.
[Xperia Z2 Android Development] drmspidi:
Does this work ont the D6543 ??
[Xperia Z2 Android Development] Reb0rn:
It's amazing to see that everything works as well as cm12. Awesome job! Now if only a custom kernel was available ?
[Xperia Z2 Android Development] BossStang:
Yes
[Xperia Z2 Android Development] kokesh:
Yes
[Xperia Z2 Android Development] schallwert:
If upgrade from 5.0 to to 5.1, you have to reflash the appropriate GApps package(s) though. Link can be found on the first page.
[Xperia Z2 Android Development] deepongi:
http://review.cyanogenmod.org/#/c/96269/ :good:
[Xperia Z2 Android Development] XMoDuLeSx:
Including changes on /28 ?
[Xperia Z2 Android Development] Mikey94:
what is changing with this commit? :)
[Xperia Z2 Android Development] XMoDuLeSx:
Cant find widget app in last build ...

Edit : http://review.cyanogenmod.org/#/c/96106/ base CM changes
[Xperia Z2 Android Development] Mikey94:
Latest Mixer Paths commit f***ed up the call sounds very hard -.-

Don't they test it, before merging it? People hear themselve when calling normal and loudspeaker is very quiet... normal speaker sound is louder than "loud" speaker....
[Xperia Z2 Android Development] swayamprakash2001:
+1 [MENTION=2192945]Mikey94[/MENTION]

the new mixer paths has totally ruined the sounds which were working perfectly earlier, does anyone have the old mixer paths from the 26th Nighty, its the 28th Nightly that has totally ruined this.
[Xperia Z2 Android Development] BossStang:
http://www.mediafire.com/view/angolka6kaf4chk/mixer_paths.xml
[Xperia Z2 Android Development] deepongi:
yes, they do test before merging. thats why it got already merged: http://review.cyanogenmod.org/#/c/96269 23h ago...

i guess you guys have to live with it, or bug [MENTION=3506409]cdesai[/MENTION] to death, until he for some reason unknown to me, he revert it.

i used the phone the all day yesterday.. seemed normal. what sound "issues" are you guys having?

i can receive and make calls with full audio, can listen to music, ringtones and notifications work....
[Xperia Z2 Android Development] swayamprakash2001:
[MENTION=1077833]infected_[/MENTION] People keep hearing their own voices when they call and the loudspeaker is quiet than the normal speaker.. Have also tried adjusting with M5 kernel which has faux sound but even that doesn't help. Once I revert to the older mixer_paths the sounds work normally again. Fail to understand how come the stock mixer_paths from lollipop can cause this.
[Xperia Z2 Android Development] twistedddx:
So you are using a custom kernel? Did you try with stock kernel?
[Xperia Z2 Android Development] swayamprakash2001:
[MENTION=3090635]twistedddx[/MENTION] I am on the stock kernel only, had fired up M5 temporarily to try and adjust sound levels with faux sound and see if that helps. It didn't. Now i have replaced the new mixer_paths(from cm commit) with the older one which was working fine earlier and it seems to be doing just fine.
[Xperia Z2 Android Development] deepongi:
got no complaints from using the phone yesterday and today. not a single one complained about bad audio, in 10 call made, according to call history.

anyway, ive reached [MENTION=3506409]cdesai[/MENTION] at IRC, but he is AFK.

ill try to see whats going on.

edit: made a loudspeaker call, and seems fine also.

who's having issues with the above situations, press thank or make a post. need to know how many ppl is affecting and if it is.
[Xperia Z2 Android Development] deepongi:
regarding the mixer_paths merged from stock lollipop .690 ...

please explain better the issues all of you are having.....
[Xperia Z2 Android Development] swayamprakash2001:
[MENTION=1077833]infected_[/MENTION] i am going to test some more and try and pinpoint the issues

Update - I am on the 29th Aprill Nightly, fully stock

1) The caller can hear themselves on the call, even on the lowest volume set on the earpiece, only workaround is to use a headset

2) Playing music or ringtone through speakers start off very loud and then gets feeble in a few seconds. Adjusting the volume does not work, restarting the app(say PowerAmp) gets volume back to normal and then the same issue recurs.

3) Speakerphone volume on max is also very feeble, can barely hear the other party speaking

4) Audio Output on Headset as expected, no issues with this one

Reverting to the older mixer_paths.xml(used the file provided by [MENTION=4863484]BossStang[/MENTION]) before the CM commit also does not solve this, so in my guess this is not the mixer_paths but something else responsible. I thought this had worked earlier but this time i tested meticulously and the problem persists.

Is it just me or are there any others facing this as well?
[Xperia Z2 Android Development] Mikey94:
I can say the following:

- People here themselve at normal calling and it's very loud, even on minimum volume (minimum volume is louder than loud speaker at maximum volume)

- Loudspeaker is most of the time very quiet, but people don't here themselve anymore. Sometimes it gets normal volume for some seconds and then gets quiet again.

- Didn't test media except bluetooth playback, which works flawlessy.
[Xperia Z2 Android Development] deepongi:
thank you all. already reported, and im waiting for a reply.
[Xperia Z2 Android Development] deepongi:
everyone try the new build ive just uploaded, 20150430. audio issues should be gone, for what i tested but need more feedback.
[Xperia Z2 Android Development] swayamprakash2001:
hey [MENTION=1077833]infected_[/MENTION] are these fixes only with your builds or with CM12.1 official nightlies as well?

Anyway i am installing your build as we speak and will revert back after full testing.
[Xperia Z2 Android Development] deepongi:
this new fix hasn't been merged on gerrit, so its only on my builds.
[Xperia Z2 Android Development] swayamprakash2001:
Thanks for the update.

I just tested audio playback through speakers and the same bug persists. The playback starts off at max and then slowly goes down and its very silent, changing volume via buttons doesn't help, if i restart the app or play the ringtone again, the same issue recurs.

Speakerphone is still the same, very silent, can't hear a thing

If i may ask what was changed exactly to fix this? Do i need a clean flash?
[Xperia Z2 Android Development] deepongi:
http://review.cyanogenmod.org/#/c/96484/

Which app does what you described?
[Xperia Z2 Android Development] swayamprakash2001:
[MENTION=1077833]infected_[/MENTION] poweramp, Google play music, ringtone selection under settings, notification tone selection, mx player while playing videos.. In all these apps the sound problem is there.
[Xperia Z2 Android Development] deepongi:
sorry, but cant confirm that. its working ok for me.

maybe someone else with the same issue than you step forward.

ps: have you tried to wipe /system?
[Xperia Z2 Android Development] Prograss:
No agenda notification in status bar

Using this as my daily driver for one week now. Great work!

I just noticed one strange thing:

My agenda does not send notifications of meetings to the statusbar or play notification sounds.

If i select notification by email, it works. But not in the lockscreen or the statusbar.

Same goes to "Tasks", an APP i use to manage Google tasks.

No alarm, no notification.

Any suggestions?
[Xperia Z2 Android Development] deepongi:
i just talked to [MENTION=3506409]cdesai[/MENTION], and both of us

are not having

any kind of sound issues..... the commit will be merged and will be on next nightly.

the ones having sounds issues, do a clean install, wiping /system and report again if the issues persists.
[Xperia Z2 Android Development] XMoDuLeSx:
same problems with sound here,also in the last rr build
[Xperia Z2 Android Development] luiis_104:
Me too.

Problems with the sound after clean install.

Sent from my Xperia Z2
[Xperia Z2 Android Development] twistedddx:
Yea updated from 25th to 30th build and volume is all kinds of funky as already described.

Call starts fine, but if I switch to hands free and back the volumes ramp up and down over a 5-10 second window after a change.

Eg speaker phone to earpiece immediate has the earpiece volume louder than speakerphone, then ramps back down to more normal levels.

Earpiece to speakerphone starts quiet and ramps up over a long window.

Callers also complain about echo.
[Xperia Z2 Android Development] luiis_104:
+1
[Xperia Z2 Android Development] deezid:
I think I'll better stay on April 27th build :D
[Xperia Z2 Android Development] PureMAD4:
Same here. Getting high volume from speaker for a few seconds then it goes down to a low volume. This is regardless of what any of the actual volume settings are.
[Xperia Z2 Android Development] deepongi:
uploading 20150501 .. i reverted the stock lollipop mixer_paths commit. sound should be ok now, for those who were having issues.
[Xperia Z2 Android Development] PureMAD4:
Still getting the same issue with the sound after updating.
[Xperia Z2 Android Development] deepongi:
what? make a nandroid backup and wipe it all, and start fresh.
[Xperia Z2 Android Development] PureMAD4:
Reverted to the 26th and it works. Will try a full wipe over the weekend.
[Xperia Z2 Android Development] XMoDuLeSx:
[MENTION=1077833]infected_[/MENTION] can u please fix the RR build?

i had the same issue with sound when i test it last night :(
[Xperia Z2 Android Development] yot2703:
I have a bug with my speaker.

When i listen to music or someone calling me.

The volume is high for few secs and then it optimises it self to lower (when it showes that it's full.)

What happening?
[Xperia Z2 Android Development] leemo92:
Everyone is having this issue at the moment, it's there on the official builds aswell
[Xperia Z2 Android Development] Biemchen25:
I had audio problems, so i just fullwipe and install todays rom and now i cant get root! (mark app & adg). Everytime the cm Logo is coming. What can i Do?
[Xperia Z2 Android Development] _heisenberg:
Did you enable it in developer settings?
[Xperia Z2 Android Development] Biemchen25:
yes:confused:
[Xperia Z2 Android Development] leemo92:
Does anybody know how to replace cyanogenmod recovery with twrp with stock kernel
[Xperia Z2 Android Development] Li-polymers:
Go to development settings, click root access; and enable root for apps.
[Xperia Z2 Android Development] Biemchen25:
Sure, i did it before. So i go back to stock, flash Boot image from cm again install cm and now i have root again.
[Xperia Z2 Android Development] yot2703:
Same issue hh , i tries the NUT's DuelRecovery , and i left with no recovery at all
[Xperia Z2 Android Development] jackq:
Try rashr app from playstore. https://play.google.com/store/apps/details?id=de.mkrtchyan.recoverytools&hl=pl
[Xperia Z2 Android Development] Hai_Duong:
or just boot into fastboot/bootloader and flash TWRP-recovery.img with

fastboot flash recovery "recovery img"

of course only for unlocked bootloader
[Xperia Z2 Android Development] XMoDuLeSx:
fully working recovery pack here : https://mega.co.nz/#!fc9jQSRY!ejrixMUt92JgYIbjYju207olm56U2itr_qBymCw4CeU

u flash via fastboot :cool:
[Xperia Z2 Android Development] twistedddx:
Latest cm 12.1 builds appear to have changed things.

I lost twrp in fota on my device and twrp manager could not reinstall, just throws error about unsuccessful after flash.

So lost twrp, can not reinstall.

Went back to a build from infected a week ago, fixes twrp manager being able to flash fota etc.

Also fixed sound issues including volumes ramping up and down over long periods unexpectedly and microphone being off and caller complaining about echo.

Edit: actually I had flashed an official cm 12.1 nightly in an attempt to fix sound issues, that may be the source of fota recovery issues. Not sure why official vs infected would behave different regarding fota.
[Xperia Z2 Android Development] leemo92:
I disabled update recovery in developer settings then I used rashr to flash twrp and now I have twrp instead of cyanogen revovery
[Xperia Z2 Android Development] deepongi:
got sound working ok.. just flash todays (20150503) build on top of the 26th.
[Xperia Z2 Android Development] deezid:
No issues here on April 27th build here. So I guess I can update safely as well.
[Xperia Z2 Android Development] deepongi:
yes.
[Xperia Z2 Android Development] yot2703:
So... How do i fix the audio problem, fulwipe and fresh install? :/
[Xperia Z2 Android Development] deezid:
Made a few calls and heard some music. No problems so far with yesterday's build. Even dock problem is fixed. :D
[Xperia Z2 Android Development] swayamprakash2001:
Confimed, sound issues are resolved

Hey guys, happy to say that the sounds issues have been resolved in the infected cm12.1 builds, not sure what were the changes made but i can confirm that its resolved. The phone was almost unusable due to the sound issues. Following are the steps that i took to resolve it:

i) Reboot to recovery and Flash 26th April cm12.1 infected Nightly and allow the system to boot to homescreen

ii) Reboot to recovery again and Flash the 3rd May infected cm12.1 Nightly and allow the system to boot

As such cm12.1 official and infected nightlies are interflashable, i also noticed that flashing over latest official nightlies or infected nigthlies later than 26th does not solve the sounds problems, best way is to do by the above method and for those asking. No you don't need a clean flash, i did not need it.

Voila, all sound issues are resolved. Seems it was a CM12.1 bug and [MENTION=1077833]infected_[/MENTION] has resolved it, a big shout out and thanks to him.

Update: I have now flashed CM12.1 official nightly for the 3rd of May and no sound issues, so whatever was the issue seems to have been resolved by flashing older nightlies and going back to the newer ones.

Still don't know what was causing this issue though, anyone?

---------- Post added at 01:14 PM ---------- Previous post was at 01:14 PM ----------

Nopes, flash back to 26th nightly and then flash the 3rd May one, that will do. No wipe needed.
[Xperia Z2 Android Development] PureMAD4:
Ah man sound issues on loud speaker came back.
[Xperia Z2 Android Development] swayamprakash2001:
+1 flashing the 4th nightly atop the 3rd has screwed up sound again.

Reverting to 3rd ATM.
[Xperia Z2 Android Development] PureMAD4:
Went back to the 3rd but still the same so now on 26th again and working fine now
[Xperia Z2 Android Development] swayamprakash2001:
[MENTION=779354]mattbailey4[/MENTION] Try this, flash 26th and let it boot, now flash 3rd..I'm guessing you flashed 3rd nightly over 4th nightly or flashed 26th and then 3rd over it consecutively.. The trick is to flash 26th and let it boot up to lockscreen, then go to recovery and flash 3rd again.. I am sure if you flash 3rd now it will work the same.
[Xperia Z2 Android Development] PureMAD4:
Will give it a shot now.
[Xperia Z2 Android Development] twistedddx:
26th to 3rd did not work for me
[Xperia Z2 Android Development] BossStang:
Nevermind. :)
[Xperia Z2 Android Development] yot2703:
Tried this... same bug :\
[Xperia Z2 Android Development] Mikey94:
Can confirm, that it is still NOT working.

You can test it:

Go to sound settings and take the Alarm Volume Slider to Maximum, its very quiet. Now turn off the screen and turn it on again and slide it again to maximum, it gets very loud.

When setting an alarm it rings very quiet. (Nearly overslept today :P )
[Xperia Z2 Android Development] swayamprakash2001:
Not sure how come you guys are having issues but my device is working A-OK on the 3rd nightly which i flashed over the 26th nightly.

If the builds are flashed over the top consecutively then the problem remains, booting to homescreen after flashing is a must. I have tried every possible sound setting and sliders and everything works as expected on the 3rd.

The bug has re-surfaced again from the 4th May nightly onwards, 5th as well.
[Xperia Z2 Android Development] twistedddx:
I think it is more likely that you fluked a state on 150503 where the device works rather than the bug not being present in the build.

Originally Infected and other devs believed this bug did not exist at all. The fact it returned for you in 4th/5th might also reinforce that the exact cause of this bug is not completely clear yet.

By the sounds of it, sometimes/rarely, the bug is not apparent for some users.

This bug also effects Z3 CM builds.
[Xperia Z2 Android Development] beinartas:
I have installed 0503 over 0426 and lost sound in calls. I have never downloaded any other version so it really seems that 0503 doesn't help.
[Xperia Z2 Android Development] swayamprakash2001:
+1 Agreed, since [MENTION=1077833]infected_[/MENTION] reported that flashing 3rd nightly on top on 26th has resolved this issue and for me it has luckily, i was hoping he could tell exactly what was the issue here and what was changed that for some users like me it has caused this state.

Other than that i completely agree that since the bug has re-surfaced, it still needs a concrete solution and the fix which was thought to initially solve this is actually not the one that solves this.
[Xperia Z2 Android Development] BossStang:
Didnt notice before.. But tested with the alarm slider in settings and I run in to trouble, but not exactly like you described.

Raising the slider 1st time = high volume.

Down and up again = Low volume.

Flashed 26th nightly again = no problems.
[Xperia Z2 Android Development] PureMAD4:
Managed to get the 3rd to work. Didn't work with the 1st flash from 26th to the 3rd. So went back to the 26th rom again and used it for a few hours till I decided to try the 3rd again and this time it worked. Weird
[Xperia Z2 Android Development] VinBenzin810:
Just a question on the last build 0505 is there any issues with sound like in other builds. Loudspeaker issues , low sound low alarm sound and and is there be fixed with this build ?
[Xperia Z2 Android Development] deepongi:
all builds after the 26th or at least the last ones, all have the bug... the issue that is not always reproducible, matter of fact its very very hard to reproduce.

thats why some of you guys and even myself, sometimes we have the issue, and sometimes not, per example after a wipe, or a dirty flash.

the issue is still trying to be found on gerrit, what was merged that could cased it, and yes, all latest ones they were checked, but the issue hasnt been found.
[Xperia Z2 Android Development] XMoDuLeSx:
this bug came after they changed the clock widget app and u cant see in the menu hmm...
[Xperia Z2 Android Development] boody_boo:
How about Clean install of 05/05/2015 version??

http://download.cyanogenmod.org/?device=sirius

CM12.1 Nightly from cyanogen mod website??? did anyone try it

i have stock rooted 5.0.2 rom on my sirius and want change to CM for first time