• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][WIP]AOSP 5.0 Beta v2.0 | OTA 1 | Lollipop for Xperia Z2 [22-11-2014]

krabappel2548

Inactive Recognized Developer
Nov 15, 2011
6,443
16,111
0
Lommel

Hello everyone,

We present to you Android 5.0 AOSP for Xperia Z2. This is for the people that can't wait to see how lollipop looks like on Z2.

== Project status ==
Working:
- Bluetooth
- Wifi
- LED
- Texting (with OTA 1)
- Calling (with OTA 1)
- Sound
- Sensors
- Auto-Brightness
- Vibration
- Screen/Touch
- SELinux
- Mobile Data (with OTA 1)

- everything that's not in the "not working list"

Not working:
- Camera
- Mic on calling??
- Youtube Video Playback
- GPS
- ....

== Updates ==

OTA 1

The OTA 1 is a flashable ZIP. It contains a new kernel that now has a recovery, however, in order to flash it on the base ROM without the first OTA, you will need to flash a kernel (any kernel for Z2) with a recovery, then flash the OTA (maybe via ADB sideload).

After the OTA has been flashed you will have a kernel for this ROM with recovery, so you will not need to repeat this procedure again in the same way (but for the next OTA simply boot into the now existing recovery).

OTA 1 will give you complete sound (with headphone jack detection and proper audio routing; sound in calls might work only via headset) and mobile data.

THE OTA IS NOT A FULL ROM! YOU FIRST NEED TO FASTBOOT
FLASH THE IMAGES FROM THE MAIN DOWNLOAD. IF YOU FLASH ONLY THIS,
IT WILL NOT BOOT!


- You have to be on the main ROM first; if you are, go to the next step, if not, see the main instructions first
- Download the ZIP (see Download section)
- Flash any kernel for Xperia Z2 with recovery
- Boot into the recovery
- Flash the OTA 1 signed zip
- Wait until it's done (it might take a moment)
- The update will tell you when you can reboot
- Reboot
- Test&Report!

Thank you for choosing krabappel2548 + cheep5k8!

== Download ==
Download all files from the correct device folder, can be found in the common-files directory, system and kernel are in the version directories :)
- ROM: Xperia Z2 AOSP 5.0 Beta v2.0
- Gapps can be found in the main directory ;)
- OTA 1: Xperia Z2 AOSP 5.0 Beta OTA 1

- OPTIONAL: Sony's Unified Kernel built for Z2 (UNOFFICIAL) (includes patches for voice calling, video playback, etc.; basically, everything works except for camera)



== Already on this rom?? ==
No need to wipe data unless I tell it in the thread :)
- Just flash system.img and boot.img using fastboot.
- Don't forget to flash gapps by hotbooting a kernel with recovey ;)

== Installation instructions: ==
- Wipe userdata in recovery
- flash all 3 partitions using fastboot
Don't do this when you don't know what you are doing!!

You can flash gapps with any kernel with recovery. Just flash back the AOSP kernel to boot into device afterwards :)

== Changelog ==
Code:
[QUOTE][B]== Beta v3 (via OTA 1)==[/B]
- Mobile Data working (RIL working, routing to modem device fixed)
- Calls and Texts working
- Sound routing/headphone jack detection working
- Wifi stability improvements
[/QUOTE]

[B]== Beta v2 ==[/B]
- Sensors are fixed
- first Z1 compact, Z2, Z3 and Z3 compact release
- Latest 3.5.2.2 kernel
- Mic is working while calling????
- Auto-brightness fixed
- Rotation is working

[B]== Beta v1.1 ==[/B]
- Wifi is a lot more stable
- Updated kernel
- charging-LED is working now
- Rom is more stable and supersmooth

[B]== Beta v1.0 ==[/B]
- Bluetooth
- Wifi
- LED
- Texting
- Calling
- Sound
- Brightness Slider (autobrightness doesn't work yet, turn it off to make slider working)
- Vibration
- Screen/Touch
== Screenshots ==
In the screenshot part of devdb project are more screenshots ;)











XDA:DevDB Information
[ROM][WIP]AOSP 5.0 Beta v2.0 | OTA 1 | Lollipop for Xperia Z2 [22-11-2014], ROM for the Sony Xperia Z2

Contributors
krabappel2548, cheep5k8
Source Code: https://github.com/xperia-aosp-project?tab=repositories

ROM OS Version: 5.0.x Lollipop
ROM Kernel: Linux 3.4.x
ROM Firmware Required: Unlocked bootloader
Based On: AOSP

Version Information
Status: Beta
Current Beta Version: 2.0
Beta Release Date: 2014-11-16

Created 2014-11-16
Last Updated 2014-12-19
 
Last edited:

adwinp

Elite Member
Jun 22, 2008
1,989
304
0
urandom
You need the proper libs & HAL for GPS.
Take a look at other repos for 4.4 like CM/Vanir, for example:
https://github.com/CyanogenMod/android_device_sony_shinano-common/tree/cm-12.0/gps

As for the camera, are permissions are correctly set in /dev/* ?
Is SELinux correctly set up?
Are you using the correct build definitions in BoardConfig*?
Again, a good reference: https://github.com/CyanogenMod/android_device_sony_shinano-common/blob/cm-11.0/BoardConfigCommon.mk
But be sure to use the CodeAurora hardware repos
 

krabappel2548

Inactive Recognized Developer
Nov 15, 2011
6,443
16,111
0
Lommel
You need the proper libs & HAL for GPS.
Take a look at other repos for 4.4 like CM/Vanir, for example:
https://github.com/CyanogenMod/android_device_sony_shinano-common/tree/cm-12.0/gps

As for the camera, are permissions are correctly set in /dev/* ?
Is SELinux correctly set up?
Are you using the correct build definitions in BoardConfig*?
Again, a good reference: https://github.com/CyanogenMod/android_device_sony_shinano-common/blob/cm-11.0/BoardConfigCommon.mk
But be sure to use the CodeAurora hardware repos
Yeah, I haven't worked on GPS and camera yet :p was trying to fix other bugs first :)

Sent from my Xperia Z1 (AOSP) using XDA Free mobile app
 

Grudenkles

Member
Aug 6, 2014
7
2
0
Just flashed in UK to D6503

Hello, I have just flashed your ROM and I can confirm that calls and other SIM functions are NOT working.
I am on 02-UK, and the signal bar shows nothing, and if I try dial a number it gives me a no SIM error
 

XeKToReX

Senior Member
Apr 8, 2010
95
28
0
Melbourne
This is great, glad to see some talented dev's getting into building this stuff.

Also liking the fact that you've managed to build for almost all devices, really cool.
 

DJ_Synergy

Senior Member
Aug 2, 2009
112
52
0
Berlin
krabappel2548 ... i have to thank you!
i follow your threads on Z1 and Z2 becauae i own a Z1 and my girlfriend owns a Z2 ... i'm very exited what an amazing job you did!
i will spend 10€ exactly the moment your rom works as a daily base (calls and mobile data working)
It's amazing! thank you!

Gesendet von meinem Xperia Z1 mit Tapatalk
 

cheep5k8

Senior Member
Sep 26, 2012
587
1,066
0
Berlin
Sadly, not much works as advertised.

Certainly not calling (it didn't even ask me for my SIM PIN), sound wasn't working at all, I didn't get to tryin Bluetooth. I had to flash back to my current WIP...

Maybe if we worked together to get this m-f up and running?

Have to leave for work now.. TTYL
 

krabappel2548

Inactive Recognized Developer
Nov 15, 2011
6,443
16,111
0
Lommel
Sadly, not much works as advertised.

Certainly not calling (it didn't even ask me for my SIM PIN), sound wasn't working at all, I didn't get to tryin Bluetooth. I had to flash back to my current WIP...

Maybe if we worked together to get this m-f up and running?

Have to leave for work now.. TTYL
Sure no problem :)

Weird sound doesn't work at all. Anyway you can add me on hangouts. Sent me a pm for email.

Sent from my Xperia Z1 (AOSP) using XDA Free mobile app
 

Stickrundude

Senior Member
Nov 6, 2012
356
253
0
I flashed everything, booted it
My phone is D6502, The sim card is not detecting.
Is there any modem files or something that needed to be flashed?

And also, wifi is not working, modem issue?
 

Miomjon

Member
Mar 21, 2014
19
39
13
Geneva
I have just tried the Beta 2.0 on my Xperia Z2 (D6503) and the Wifi doesn't work (doesn't turn on). I also haven't been able to connect my Moto 360 through bluetooth, although I can't confirm if BT doesn't work at all or not.
If you need help to test a possible fix don't hesitate to ask me!
 
Last edited:

GeekyAndroid

Member
Nov 18, 2013
47
12
0
Istanbul
So I almost bricked my device doing this :)

However, I understand OP stated that I should not do this if I do not know what I'm doing. But I am willing to take the chances... If I get the appropriate help.

Now my phone is back on the latest Stock 4.4.4 23.0.1.A.0.167 build. Should I go to custom rom and upgrade to Lollipop from there or is there a way to do it from Stock? (no recovery installed)

It might be quite obvious that I should do it from a Custom Rom, but I have erased System, Boot, Cache and recovery through fastboot and when I flashed it again, boot loops with "Sony" only showing. Isn't a clean installtion (like I did) better than Custom Rom+Recovery?

Any help is appreciated.
 
Last edited:

dkionline

Elite Member
Oct 15, 2012
2,449
1,810
113
Trough flashtool, but that will wipe your internal SD.
Its nice, that sony starts to share 3.5 Kernel, like i see on github.