• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

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

Search This thread

krabappel2548

Inactive Recognized Developer
Nov 15, 2011
6,445
16,111
Lommel
BiakxEt.png

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 ;)

attachment.php


attachment.php


attachment.php


6weWJpM.png


Hpl3gJ9.png


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

Senior Member
Jun 22, 2008
2,021
319
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,445
16,111
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
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
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
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,067
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,445
16,111
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
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
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
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

Senior Member
Oct 15, 2012
2,455
1,816
Xiaomi Mi 9
Trough flashtool, but that will wipe your internal SD.
Its nice, that sony starts to share 3.5 Kernel, like i see on github.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 39
    BiakxEt.png

    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 ;)

    attachment.php


    attachment.php


    attachment.php


    6weWJpM.png


    Hpl3gJ9.png


    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
    36
    Next update is going to be a big one guys :) texting, calling, WiFi etc all working. Also some other smaller things are fixed :p

    Sent from my Xperia Z1 (AOSP) using XDA Free mobile app
    28
    To the proceedings

    Hello everyone,

    At this point just a few words regarding etiquette and the progress on the project:

    The project is a Beta and marked as WIP. It is known to us that not everything works, and maybe not even everything as advertised with each release (full or OTA).

    We are very sorry for stuff like that the OTA ZIP installer is broken, but you've to to cut us some slack, really, with functionality on the ROM.

    First of all without starting a flamewar, the CM12 build is just mostly built from CM sources while we actively work on AOSP code. Regarding that the progress we made from the initial release on the 16th up to now, or even the progress krabappel2548 made before making an initial release is quite considerable.

    Regardless, this here is not a daily driver and it will not be so until we flag it as such. You can not magically expect everything to work just because we push a new update. Some things will work, some will not.

    There might be regressions (i.e. stuff that used to work doesn't again), and some things that work for some people don't work for others. Such is life and development on AOSP.

    At this current point we do not guarantee any functionality (and neither do we for bricking your device, as always).

    If you spend half of the night installing the OTA and then it doesn't work like Sony's ROM that will be released at some point in 2015, well, we can't really help you there. They have the magic sauce (i.e. secret source code, blobs) and additional resources.

    But you are always welcome to help us. Anytime. We're hiring.
    20
    Seems @cheep2sk8 got modem working and I found a way to patch kernel to allow proper net routing for mobile data ;) I can confirm mobile data will be working on next release :)
    15
    Ok, to everyone I'm getting closer to fixing the mic bug. I'm working on my Z1 now, but if it's fixed there, it will be fixed here as well with similar code ;)

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