yashsingh1/xdaforums huggingface dataset:
[Xperia Z2 Android Development] xrenoix:
great work

:good: infected_ thank you
[Xperia Z2 Android Development] Reb0rn:
Sorry. Found this thread now haha. 3g data works on your 1120 build for me... And Bluetooth too...

---------- Post added at 09:03 PM ---------- Previous post was at 08:59 PM ----------

Well Bluetooth partially works. Finds devices but fails at connecting...

---------- Post added at 09:06 PM ---------- Previous post was at 09:03 PM ----------

Data works splendid for me. LTE full speed. This is awesome!!

---------- Post added at 09:08 PM ---------- Previous post was at 09:06 PM ----------

Telephony works too as long as u use a headset.
[Xperia Z2 Android Development] Svid:
Well with infected and the other guys working hard to give us daily driver lolipop build, i think they will get it pretty soon :) great dev's working hard and doing epic job.
[Xperia Z2 Android Development] Reb0rn:
Sickest part is that video works on cm12 without glitches that most cm11 builds have. Example instagram. U play a video and try to replay it the pic stands still. Not on cm12. Awesome.

---------- Post added at 10:04 PM ---------- Previous post was at 09:26 PM ----------

God DAMN it!!! Warning... Don't wipe data on the supplied stock aosp5 cwm. You will have your internal memory card wiped... WIPED!!! Well so much for nandroid backup... :p
[Xperia Z2 Android Development] deezid:
Well data with full LTE definitely works out of the box. Nice!

Even restoring my apps using Titanium Backup works great after installing SuperSU beta 2.25 :)
[Xperia Z2 Android Development] Reb0rn:
That works less good for me. Don't know why...
[Xperia Z2 Android Development] jonathan413:
How do you install this? And does YouTube playback work?
[Xperia Z2 Android Development] deezid:
Just wipe data and install through a recovery of your choice. ;)

Yes, playback works (720p). :)
[Xperia Z2 Android Development] MattJaO3D:
Thanks infected, boots fine and su works great,

#NFC dont work, button sticks on

#camera won't connect

#my wats app keep telling me my time is wrong and that its 1970 lol

Obviously calls you can't hear , but text, data work's etc . good work
[Xperia Z2 Android Development] bluheart:
Great break through! Congratulations for all the Z2 owners.

I am still waiting! Sony service people are so lazy!
[Xperia Z2 Android Development] jonathan413:
I'm on stock 4.4.4 with unlocked bootloader. So I assume I would need to flash nuts dual recovery and just erase system, cache, and dalvik and then flash cm12 and gapps all at once or do I run gapps after initial start up then fastest a cm11 boot.Img for recovery and then flash gapps?
[Xperia Z2 Android Development] deezid:
It's far more easier. Install a recovery. Boot into recovery. Factory reset (wipe data, not sdcard). Install cm12, gapps and SuperSU and you're done. :)
[Xperia Z2 Android Development] jonathan413:
Awesome thanks ?
[Xperia Z2 Android Development] dkionline:
U need a kernel without recovery from this time. It will be like Samsung from now on.
[Xperia Z2 Android Development] waynekirby:
You can use rashr to flash a boot.img yes.
[Xperia Z2 Android Development] Manya3084:
Ended up using a program called "recovery flasher" from the play store. Was the only app that didn't throw a heap of errors. Twrp is working nicely.
[Xperia Z2 Android Development] cheep5k8:
Ggggggggggguys guys...

Sorry ;)

Here's how you get Deep Sleep:

It seems the "menu" cpuidle governor is broken. The manual fix is very convoluted if you don't build the boot image from source. You first have to add "cpuidle_sysfs_switch" to the kernel commandline, then add a "write /sys/devices/system/cpu/cpuidle/current_governor ladder" to init.rc, then repack everything into a working boot.img.

I have simply attached a link to the boot.img from infected_'s 20141127 build with the cpuidle fix included (everything else is unchanged).

Link to modified boot.img (EDIT: the first image had indeed a broken ramdisk, I've fixed it now and am running it myself now):

NEW LINK:

https://mega.co.nz/#!KUshRRrQ!WHbMjcwuJK4oLxrHG5hvJJr6r--cOo9Fhr5lfeSuecc

Proof:
[Xperia Z2 Android Development] Silverstarjigar:
awesome rom! bluetooth nfc wifi all works fine. but no netwrk coverage aircel india! no data icon! :P hehee.. nice work :)
[Xperia Z2 Android Development] mishaiel:
Can u fix the camera first? It happens to be the important bug to me... And thanks for this awesome rom.. Been waiting for a long time to get my hands on android l.. Good work team... I have been regularly updating my rom with all ur daily updates and the improvements u have made so far is mind blowing... Waiting for a stable release.
[Xperia Z2 Android Development] adyscorpius:
Flash the D6502 modem i linked some posts back.
[Xperia Z2 Android Development] Silverstarjigar:
thanks bro :)

https://mega.co.nz/#!4gsAGCxI!u8leEgOnHPgFNc3cQ-vxKAFg3munCRfr4eqwh4PwI0I

link again for all those D6502 users! yo :)
[Xperia Z2 Android Development] adyscorpius:
[MENTION=4867279]cheep5k8[/MENTION], flashed your kernel, but I still seem to have no deep sleep.. Only 300 mhz. Anything else i need to do? The line you added is there in my init.rc so the kernel has definitely flashed.
[Xperia Z2 Android Development] cheep5k8:
Can you check whether the governor really has changed? What's in /sys/devices/system/cpu/cpuidle/current_governor now? It should say "ladder".

If it still doesn't deep-sleep then it might be good old wakelocks keeping it awake. I used BBS, WakelockDetector, Disable Service and Greenify to get rid of some "suspects".

Also try disabling all touch sounds (lock sounds, key sounds, etc.)
[Xperia Z2 Android Development] adyscorpius:
It is ladder . Surely some other issue.. :-/
[Xperia Z2 Android Development] vendetta718:
Hey devs good job so far. Can't wait until it's done. I have a question out of curiosity.

Is it possible for the camera to run at a full 21mp for pics on stock 5.0? Or would it require a source kernel from sony?
[Xperia Z2 Android Development] westernmg:
Should the Camera work in the 28 v2 built? For me it does not...
[Xperia Z2 Android Development] Karl-Johan:
How do I flash this build, coming from CM11? I don't quite get it from the first page info.

Should i format all partitions?
[Xperia Z2 Android Development] cheep5k8:
The ZIP will format at least /system and install a new kernel. Then just format userdata and you're done.

I did it like this: format dalvik, data (NOT sdcard but userdata) system and cache, then flash ZIP (I also backed up everything first).
[Xperia Z2 Android Development] adyscorpius:
For people with D6502, if you flash the old D6502 firmware zip, it kills wifi after a reflash or updating the ROM.

Here's the updated modem flashable zip that won't do such a thing.

https://mega.co.nz/#!1pkG0aIS!r_v7ZBsXrEKfesq0qhiCyDeJfaciBs1XYg0BGO1c_e0
[Xperia Z2 Android Development] EnormoDerClown:
Flashing this zip (modem by adyscorpius) resulted in having no baseband and imei for me, searching for a fix now..
[Xperia Z2 Android Development] deadlineone:
Many thanks for this ROM!!

But not really a daily driver right now, without camera, slow active sync, notification that doesn't stop anymore.
[Xperia Z2 Android Development] Karl-Johan:
Up and running now, thanks for the instructions. Does the phone go inte deepsleep in the latest build or do I have to flash the fix that was posted earlier?
[Xperia Z2 Android Development] Mikey94:
I flashed the kernel from myself. I have ladder governor but no deepsleep. Im on build 27.

No deepsleep, but battery life is longer now
[Xperia Z2 Android Development] VinBenzin810:
anybody have post a fix in the theared from asop rom 5.1 that fixed the loundspeaker issue . and its work. the bluethoot i cant test but i hear to you when is fixed is good when not is not a problem

EDIT : the fix are in the attached , just flash in recovery
[Xperia Z2 Android Development] Mikey94:
Yeah, this fixes it, but its Not a full working fix, because the other can her themselve very loud...
[Xperia Z2 Android Development] VinBenzin810:
Its not my Problem if the other here me loud hahah :)
[Xperia Z2 Android Development] manu44:
This rom is near to perfection. The only thing i miss is OTG support, any idea when are they gonna fix it.
[Xperia Z2 Android Development] sh4d1t0:
Can we move apps to sd?
[Xperia Z2 Android Development] twistedddx:
what if under <path name="voice-speaker"> you change:

<ctl name="TFA98XX_CHANNEL" value="Both" />

Back to stock like:

<ctl name="TFA98XX_CHANNEL" value="Bottom" />
[Xperia Z2 Android Development] Mikey94:
Isn't this the speaker right at the microphone? the upper speaker would be right here...
[Xperia Z2 Android Development] ugumba:
0322 build seems to have been cut short.
[Xperia Z2 Android Development] alexdonwarez:
Does UMS mode work in your rom????
[Xperia Z2 Android Development] Mikey94:
Loudspeaker Fix has just been pushed to the git :victory:
[Xperia Z2 Android Development] twistedddx:
20150322 was ok minus loudspeaker did not work

20150323 has very bad in call audio. Other end gets very bad echo while I am talking on standard phone earpiece(just vanilla phone being a phone) and I get audio volume with lots of bad background noise/hiss as if gain is far too high.

I assume related to these:

http://review.cyanogenmod.org/#/c/91942/

http://review.cyanogenmod.org/#/c/91941/
[Xperia Z2 Android Development] rampage101:
I'm on 24th build and mine didn't seem too bad, did a test call last night that was normal, and a caller today didn't mention anything.
[Xperia Z2 Android Development] kokesh:
I'm on 0224 now. For some time now I have troubles reconnecting to networks.

Example:

I sit in my office on the spot, that has very bad reception most of the time. It looses connection from time to time. When that happens, most of the time it doesn't come back. I get Connecting... in the WiFi settings. Than it gives up. And tries later again.

I see this happening for a week, maybe two. Anyone else?
[Xperia Z2 Android Development] deepongi:
didn't anyone noticed the answering call delay (~3s) is gone? :)
[Xperia Z2 Android Development] deepongi:
fine here. maybe the issue is at the office hotspot?
[Xperia Z2 Android Development] adyscorpius:
You can go to wifi advanced and try turning of wifi optimized. I think that reduces signal strength to keep battery life high!
[Xperia Z2 Android Development] kokesh:
It is a crappy connection at my table in the office, but it picks it up well after reboot, It also happens if I disable WiFi when going out and than later turning it on. If this happens, it doesn't connect even when I am standing right under the router. The same at home, where the signal is much better.

It is not the "optimize wifi" option. Also I don't have the Avoid poor connections ticked.

I wil try to get something meaningful from logcat.
[Xperia Z2 Android Development] drup88:
I can also confirm this issue.

I'm not sure why but I lose signal in certain situations completely. And I'm normally I have fantastic reception, majority of the time is full bar.

I also notice when this happens s my phone heats up like a hotcake. Not sure if this is a coincidence.

I suspect it has something to do with wifi as well because when ever I connect, force wifi on or off it seems like the issue happens.
[Xperia Z2 Android Development] Alhaddad:
is this the in-call loudspeaker, or general like in ringtones?

because the volume is very low compared to stock lollipop which sony finally improved btw
[Xperia Z2 Android Development] syl0n:
Is Bluetooth audio still intermittent and choppy? This is stopping me from listening to Music in my car!
[Xperia Z2 Android Development] kokesh:
Can you look into logcat? Is there something connected to the problem?
[Xperia Z2 Android Development] adyscorpius:
http://www.cyanogenmod.org/blog/all-about-l-part-1

Looks like 5.1 is out...
[Xperia Z2 Android Development] hassanman1997:
I hope to see notification light pulse soon, like in cm11 :rolleyes:
[Xperia Z2 Android Development] deepongi:
It will take about a week to iron the bugs.

Sent from my Xperia Z2
[Xperia Z2 Android Development] deepongi:
i made a cm12.1 full sabermod build, and opened a thread. feel free to test it, haven't found any bugs, despite the usual ones.

http://xdaforums.com/xperia-z2/development/rom-cyanogenmod-12-1-unofficial-t3068677
[Xperia Z2 Android Development] kokesh:
Logcat:

04-01 07:38:43.050 E/NetdConnector(746): NDC Command {1422 interface getcfg p2p0} took too long (667ms)

Can this be saying something about the WiFi refusing to re-connect?
[Xperia Z2 Android Development] serj.borgore:
What about this Rom? Is it stable?
[Xperia Z2 Android Development] serj.borgore:
I tried this ROM, but i didn't install the recovery, is there a method to install a recovery without the computer?
[Xperia Z2 Android Development] BossStang:
Rashr app from google play.

You can also dd the image to fota partition manually. (Its what the app does)
[Xperia Z2 Android Development] serj.borgore:
Please can anyone link me a mini modular package of gapps?
[Xperia Z2 Android Development] padeze:
Help!

So ive been running cm12 for a few months now, but last night i updated (15-05-13) and after that when i rebooted the screen would be black saying systemui crashed, so i reinstalled the previous version i was running and that had the same thing. so i read somewhere to factory reset, so i did and now i dont have custom recovery or gapps... what should i do??
[Xperia Z2 Android Development] Mikey94:
1. Download latest build and latest TWRP recovery img (https://dl.twrp.me/sirius/)

2. Unpack the Boot.img from infecteds cm12. 1 zip you Just downloaded

3. connect your phone via fastboot (shut down phone - hold volume up - connect cable. Release volume Button when led is blue)

4. Do the following fastboot commands:

5. now press volume down, once led turns pink. It will turn orange and twrp will come up

6. wipe your phone, Flash cm12.1 zip and gapps

7. Wipe Cache and dalvik

8. Reboot System now
[Xperia Z2 Android Development] padeze:
Cheers dude, that did the trick :D
[Xperia Z2 Android Development] Mikey94:
good to hear that i could help :fingers-crossed::D

Edit: Just saw, this is the CM12 thread, not the CM12.1 (its very confusing :D)

Did you just ask in the wrong thread or do you use CM12?
[Xperia Z2 Android Development] padeze:
CM12
[Xperia Z2 Android Development] Mikey94:
You should use infecteds cm12.1 (5.1.1) Because cm12 (5.0.2) is discontinued.

:p
[Xperia Z2 Android Development] padeze:
Oh for reals? i didnt realise, ill get on it
[Xperia Z2 Android Development] lordemil:
i get this error: "error executing updater binary in zip"

on sony stock 5.0.2 (23.1.A.0.726)

rooted using this http://xdaforums.com/xperia-z2/general/root-t3108230
[Xperia Z2 Android Development] deepongi:
you need a proper recovery.. follow [MENTION=2192945]Mikey94[/MENTION] steps in the posts above.
[Xperia Z2 Android Development] lordemil:
i get to the fastboot flash recovery part and then get "FAILED (remote: Command not allowed)"

tried it multiple times and get the same error. moved on to the next step which is reboot and hold down volume down. and just get a black screen

EDIT:

the weirdest thing just happened. put it in flashmode to flash back sony 5.0.2 and it decided to boot into cyanogen recovery. which i then managed to get cm12 on my phone.

Thanks for your help
[Xperia Z2 Android Development] leos0000:
Can i flash on LB?
[Xperia Z2 Android Development] deepongi:
i could swear i just answered that in the previous page... no.

regards.
[Xperia Z2 Android Development] RyTekk:
Can you explain why Xperia S can have CM10 with bootloader is locked? And why don't to do that on other Xperia devices?
[Xperia Z2 Android Development] waynekirby:
Because it is only for a small amount of users, the only people that have the skills necessary to 'build' an AOSP based ROM, buy the phone unbranded/sim free. So why would a dev/advanced user want to build CM12 for LB if he can unlock it easily and flash it? I made the mistake of buying my Xperia T branded to 3 network UK. Learnt from that though, never again.
[Xperia Z2 Android Development] RyTekk:
If we can install an AOSP based ROM with bootloader is locked, we could safe our TA even it does not work on AOSP.
[Xperia Z2 Android Development] BossStang:
Couldnt you just flash a sony firmware and backup ta?
[Xperia Z2 Android Development] Bruce666:
Hi

Is 4k photo/video working on CM12/.1 ?

As I know, on CM11 it didn't work.
[Xperia Z2 Android Development] D_JWhite:
No, 1080p max.
[Xperia Z2 Android Development] Bruce666:
But is there any mod or another app which can add 4k support ?
[Xperia Z2 Android Development] deepongi:
not that i am aware, besides using stock rom or stock based rom.

this thread will be closed.

the continuation of this project is here:

http://xdaforums.com/xperia-z2/development/rom-cyanogenmod-12-1-unofficial-t3068677

regards.
[Xperia Z2 Android Development] engloa:
Thread closed at OPs request
[Xperia Z2 Android Development] Reb0rn:
Same here. And wakelock detector shows nothing keeping it awake.
[Xperia Z2 Android Development] adyscorpius:
Yea, same here... Tried both the new and fixed kernel, but no deep sleep here too..
[Xperia Z2 Android Development] westernmg:
where can i find these kernels?
[Xperia Z2 Android Development] sindre2104:
Can confirm deep sleep doesent work even after i flashed the new boot.img.

I checked the current_governor and it said ladder.

It seems to use 300Mhz in place of deep sleep.

Here http://xdaforums.com/showpost.php?p=57099221&postcount=184
[Xperia Z2 Android Development] skitty:
Charging via the dock doesn't seem to work
[Xperia Z2 Android Development] cheep5k8:
OK so what might help additionally is that for me, I have disabled SELinux completely (I had issues with the GPS), but this is not the case in the patched boot.img I have uploaded.

So maybe it is disabling SELinux and changing the cpuidle gov? Which clearly isn't a long-term solution but could give some starting ideas for finding one.

EDIT: Other changes I have additionally made: disabled system_monitor because it was being very noisy on the system (and logcat)
[Xperia Z2 Android Development] Karl-Johan:
Working fine here.
[Xperia Z2 Android Development] heorung:
Does CM12 has a recovery?
[Xperia Z2 Android Development] deepongi:
next build wont be needed supersu from chainfire...

CM superuser is already working. screen in attachment.
[Xperia Z2 Android Development] sindre2104:
Im going to try disabling selinux, will report back with results.

Edit:

Okay, installed "SELinuxModeChanger" from appstore, change mode to permissive, checked that it was changed in system info.

locked phone and let it be for 5 min, no deep sleep.

Rebooted phone, checked again that it was in permissive, locked, waited 5 min, still no deep sleep.

Either im not waiting long enough, using wrong selinux mode (not sure if permissive is the same as disabling it), or SELinux isnt why the phone doesent deep sleep ^^
[Xperia Z2 Android Development] cheep5k8:
It shouldn't take 5 minutes to enter deepsleep if nothing is keepin the phone awake at least.
[Xperia Z2 Android Development] adyscorpius:
I've disabled all background processes using developer options, turned off selinux, changed cupidle to ladder (using the 27th fix kernel), and also disabled background sync etc. and still not getting deep sleep.

It has to be something else.
[Xperia Z2 Android Development] cheep5k8:
OK here's exactly what I did to get deep sleep after flashing the system.img. I'm not saying you should do the same, but it works for me.

- Install my patched boot image. It does not work with the boot image from infected_'s 28-v2, patched or not

- Disable selinux (i.e. add "selinux=0" to the kernel commandline in addition to my boot image; this is not part of my patched boot image, you will have to do this somehow yourself)

- Boot into the ROM and have root adb working

- On your PC: "adb root"

- "adb shell"

- "rm -f /system/app/LockClock/LockClock.apk" (I hate that thing and it was causing wakeups)

- "rm -f /system/app/Apollo/Apollo.apk" (same)

- "mv /system/bin/system_monitor /system/bin/_system_monitor"

- Install app "Disable Service"

- Disable the following services (package/service):

Google-Play-Services / ConfigFetchService

Google-Play-Services / LocationHistoryInjectorService

Google-Play-Services / SnetLaunchService

Google-Play-Services / SyncService

- Greenify the following apps: Chrome (if you have it), CyanogenMod-Updater, Google+, Maps (if you have it)

That should work but as always, my list is probably not fully complete because I might have done some other additional stuff.
[Xperia Z2 Android Development] sindre2104:
hmmm.

As i have no idea how to edit the kernel command line, dont want to start building my own kernels, and actually have a pretty usable battery life, +-3% battery usage/hour; ill just wait until infected or someone else releases an update with the deepsleep problem fixed ^^
[Xperia Z2 Android Development] adwinp:
Disassemble the boot.img & add selinux=0 to the kernel command line when rebuilding.
[Xperia Z2 Android Development] sindre2104:
ahh, well when you put it that way it makes alot more sense.

might aswell make another partition with linux and start learning the basics of building kernels and such if im gonna do this ^^

Not that it would be an issue, but im getting the feeling im being sucked into a new world here :D
[Xperia Z2 Android Development] adwinp:
Take a look at this, it should help:

http://developer.sonymobile.com/kno...evices/how-to-build-and-flash-a-linux-kernel/
[Xperia Z2 Android Development] Mikey94:
I have one more little issue.

I use WhatsApp and after every reboot it shows, that my Phone Date and Clock is wrong. (But it's correct, maybe its wrong for a very short time while it boots up, but when it shows up, its correct).

I can you WhatsApp then only after setting the Clock to Manual and then Automatic again.

And loading isn't showing up properly, most of the time (and it loads very slow i think, can this be related to the rom/kernel?)
[Xperia Z2 Android Development] rcstar6696:
Big Mac adress Problem

Hello

i found a big bug in the cm trees

If you have two devices from sony on cm12 builds both have the same mac adress (for me my z2 phone and z2 tablet) and they get the same ips while connecting to wlan

Than if you open browser only on devices has internet acess but both are connected to wlan

Is there a fix for this issue ??

Edit: if you use mac changer Form playstore you can change the adress but after a reboot the old one is Thier again

Rcstar6696

Edit2: i found the Problem it is in vendor! Can some one merge it to github because i don't know how it works :D

Or describe me how i publish it ?? It yes write me a pm
[Xperia Z2 Android Development] naitik2012:
Hi Bro ,

Can u link me the patches needed to fix mic issue... as Xperia Z1 has microphone issue in CM12 and every available lollipop ROMs

Thanks :)
[Xperia Z2 Android Development] deepongi:
beta build 20141128 is online!

i removed 20141128 v2

that was on the server.

deep sleep issue is fixed. screens in attachment.

also, no need to flash supersu from chainfire. CM superuser is working.

regards.
[Xperia Z2 Android Development] deezid:
YAY :D

Edit01:

Doesn't seem to be online yet.

Is flashing supersu still necessary or is superuser included?

Edit02:

Online now! Downloading, will report. :)

Edit03:

small donation sent :)

9SG31408G2552000E
[Xperia Z2 Android Development] deepongi:
@deezid

6PL52185LY645945Y

Many thanks :)

edit:

@MattJaO3D

3GU06265TH1660739

you donated yesterday, but only read the emails today. Many thanks also :o
[Xperia Z2 Android Development] deezid:
Deepsleep works now!

No more flashing of supersu needed. Superuser is included now.

Camera is still broken. ;)
[Xperia Z2 Android Development] omg_penguin:
WiFi issues, reborn!

Just thought I'd post an update on the bug that I had, I'm now running the 1128 build on D6503. I've realised that WiFi works fine on normal networks with WPA2 encryption and such like, no problems there. However, when trying to connect to my university WiFi, which uses the PEAP method of authentication, I get constant WiFi drop outs. Every 30 seconds or so. Is there anything that can be done about this?