• 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] [7.1.1] [AOSP] [PURE NEXUS] [CARBON] Xperia Z2 [D6503, D6502, D6543]

Status
Not open for further replies.

rcstar6696

Elite Member
Dec 21, 2013
2,468
8,468
0
Kassel (Hessen)


INFORMATION
First AOSP NOUGAT based Builds for Sony Xperia Z2.

Disclaimer
We are not responsible for anything that may happen to your device . We ask that you do your part to know your device and know how to recover from problems before you flash!

BUGS,
1. Camera Foucs unclear & Dark camera.
2. Front Camera crash at 16:9 ratio.

All other seems to Work for now.
Please let me know if you find more Bugs!!!


INSTRUCTIONS,
Download Rom, Recovery & Gapps First & Unlock Bootloader
1. Download AOSP & PURE NEXUS ROM
---Download CARBON ROM
---Download TWRP RECOVERY 3.0.0-0
2. Download OPENGAPPS (Full version GAPPS recommended)
3. Flash the Boot from ROM via fastboot (fastboot flash boot pathTo/boot.img)
4. Flash TWRP Recovery 3.0.0-0 via fastboot too (fastboot flash recovery pathTo/recovery.img)
5. Boot into Recovery by using VOLUME UP when Sony logo comes up with pink notification light.
6. Wipe SYSTEM, DATA, DALVIK, CACHE from recovery.
--- 6.1 If you Update the ROM skip 3,4 & 6.
7. Flash the Rom zip and Open Gapps zip from Recovery.
--- 7.1 For D6502 user flash Baseband Patch
8. Reboot.

(Optional)
9. Root Direct Download
10. Flash SU zip via recovery.
11. Reboot.

Changelogs :

Build 28/02/2017
- Pixel navigation bar animation fix
- call echo finally fixed 100%
- bug fixes and performance improvements

Build 18/02/2017
- New blobs from sony
- Call reboot fixed
- Camera crash fixed
- charging bug fixed
- Latest security patch

Build 09/11/2016
- Google release 7.1_r7
- November Security patch
- new charger driver
- added Support of D6502

Build 31/10/2016
-Camera fix (half green is gone)
-Nfc is fixed
-Update interactive gov
-Fix charging bug
-Unify sound Implementation
-Rework panel Implementation

Build 21/10/2016
-Android 7.1.0_r4 release
-Some camera commits
-Removed fm radio (causes deep sleep problems)
-Night display enabled


Sceenshots :








FAQ :

Q- Can i install it on locked bootloader?
A- No.

Q- Which gapps should be used?
A- OpenGapps arm 7.1 Full

Q- How to install this rom?
A- Read first post.

Q- Is camera working?
A-See the bugs listed above.

Q- Something* is not working.
A-Report bugs on github or here when it is not listed above.

Q-Battery draining quickly.
A-There is miscellaneous battery drain.Else no issue with battery.


CREDITS
AOSP/Google
Sonys Open Device Program

Sources
Google
Device Tree
Kernel tree
Vendor Tree


XDA:DevDB Information
Android Open Source Project [Nougat], ROM for the Sony Xperia Z2

Contributors
rcstar6696, akshay2shah
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Unlocked Bootloader
Based On: AOSP

Version Information
Status: Alpha

Created 2015-10-29
Last Updated 2017-04-15
 
Last edited:

rcstar6696

Elite Member
Dec 21, 2013
2,468
8,468
0
Kassel (Hessen)
Anyone wanna make bet's if it's gonna work in Multirom ? :D
I wont bet but that wont stop me from trying :p

It may glitch out when flashing as some img based roms zip thingers are like so

No it will not work with Multirom and its not planned for the future first fix audio and Video and Camera than maybe
 

rcstar6696

Elite Member
Dec 21, 2013
2,468
8,468
0
Kassel (Hessen)
Damn now you really have my interest

Anyway it'd be nice that we have a mostly working aosp build for once

(im sure we are yet to see it here for sirius)
today night i will build the first flashable zip it will have ant+ support and selinux will be present too.
i have a test build with cam but no focus and extremly bad colours :D i hope it will be better later and then maybe i will release it. but first i need to fix light sensor on castor and castor windy ( z2 tablet)
 

Envious_Data

Senior Member
Oct 12, 2012
4,870
2,280
0
Imagination
enviousmedia.design
today night i will build the first flashable zip it will have ant+ support and selinux will be present too.
i have a test build with cam but no focus and extremly bad colours :D i hope it will be better later and then maybe i will release it. but first i need to fix light sensor on castor and castor windy ( z2 tablet)
Well as long as it eventually works then it will benefit users and other developers

Ill let you know if i can find anything when i try it
 

peddarson

Senior Member
Aug 20, 2012
600
112
0
today night i will build the first flashable zip it will have ant+ support and selinux will be present too.
i have a test build with cam but no focus and extremly bad colours :D i hope it will be better later and then maybe i will release it. but first i need to fix light sensor on castor and castor windy ( z2 tablet)
Wow, you got the camera finally got to work (kind oft)? Did Sony publish the drivers finally?
 

rcstar6696

Elite Member
Dec 21, 2013
2,468
8,468
0
Kassel (Hessen)
Wow, you got the camera finally got to work (kind oft)? Did Sony publish the drivers finally?
Yes we have made a test build with camera and it works but not fully and will
Not released in near future we revert the test build commits and now its complete without cam and we will bring it back only if its fully working
No but we are working on community drivers based on aosp but i will not relase any build with camera now

Edit: it seems that David viteri has fixed audio for Z3 and maybe his commits fix audio on z2 :D
 
Last edited:
Status
Not open for further replies.