Introduction: I have recently asked/requested @Gustavo RD78 to build the Z2 community a N kernel, after building a N kernel for the Z3c. He has helped the Z3c community to successfully install N preview on the Z3 Compact, and now he has built us, the Z2 community, the new Android N Kernel for the Z2. He has also asked me to tell everyone about this, and so here it is. Here is how to install Android Nougat DP3/DP4/7.0/7.1 ROM for the Z2!
UPDATE! Thanks to Android Doctor (@madscientistdam), for Beta testing the older Dev Preview builds on his YouTube channel. As well, thanks to @rcstar6696 for the updated ROM build. You can find his OG post thread here: http://forum.xda-developers.com/xper...a-z2-t3235951:)
Below are the steps on how to Install the Stable 7.0/7.1 Nougat ROM, and how to Install the (Unstable) Dev Preview 3/4 ROMS. (Don't flash the Dev Preview 3/4 ROM if you are planning on using you phone as a daily driver!)
Note. I'm NOT responsible if your device bricks, blows up, or pulls a finger to you.
ROM folder: https://mega.nz/#F!TRRjgICI!D4WON2JY...LSaww!vEQy1QBb
GApps (Recommended use ARM/7.1/NANO): opengapps.org
Pixel Converstion Pack: http://forum.xda-developers.com/xper...-pack-t3486547
SuperSu Root file zip: https://download.chainfire.eu/1003/S...0915123031.zip
(D6502 MODEL ONLY)SIM/Universal Baseband patch: http://forum.xda-developers.com/xper...patch-t3312959
How to Install Android Nougat 7.0/7.1 Using PC...
1: Download the Nougat 7.0 OR 7.1 ROM.
2: Download Android Nougat Open GAPPS.
3: Flash the Boot from ROM via fastboot (fastboot flash boot pathTo/boot.img)
Flash Recovery via fastboot too (fastboot flash recovery pathTo/recovery.img)
4: Factory Reset and Format System. (Needed if you have any other custom Rom installed )
5: If you have a D6502 Model than it needs the Universal Baseband patch (D6503 users can skip this step!)
6: Flash the zips in Recovery
7: Reboot and enjoy Nougat! First boot may take 10-15 minutes.
How To Install 7.0/7.1 Using TWRP RECOVERY...
1: Download the Nougat ROM zip, GAPPS zip, and (optional) the Pixel Converstion Pack zip and SuperSu Root zip.
2: Place all of thise files in the root of your Internal Storage or SD Card.
3: Reboot into TWRP. Do a Factory Reset. (If you are running on a previous version of Cyanogenmod, then you could skip this step if you want.)
4: Flash the ROM zip, then Clear Cache, flash GAPPS, then clear cache. Then flash the optional Pixel Converstion Pack zip, then clear cache, then finally if you want to have/keep Root, flash the Supersu zip, and clear cache, then reboot, but If you have a D6502 Model than it needs the Universal Baseband patch, so flash it! (Skip this if you have a D6503 model!)
5: Enjoy Nougat. First boot may take 10-15 minutes!
How to install the Developer Preview 3/4 Firmeware...
This is NOT recommended that you decide to flash this as the Dev Preview ROMS are extremely outdated, unstable, and next to unusable. For Developers only!
-Android N Z2 Kernel a, SuperSU.zip, and Recovery FOTA Partition (TWRP). (http://forum.xda-developers.com/xper...1#post68284953)
-Xperia Z3 Developer Preview 3 OR 4 ftf ROM. (DP3: https://drive.google.com/file/d/0B8c...w?pref=2&pli=1 DP4: https://drive.google.com/file/d/0B8c...pCZzFVNm8/view)
-Any ftf designed for the Z2.
-Xperia Z2 device. (Recommended D6503, but you can also try D6502.)
-Flashtool PC Application.
How to flash:
1: Flash Z3 Dev Preview 3/4 ftf without flashing rpm.sin
2: Flash Z2 N kernel.
3: You can try and root and install TWRP using ADB.
If you are stuck in a Bootloop, then simply just reflash Stock ROM.
Original thread to Changelog and Root Installing steps...: http://forum.xda-developers.com/xper...ia-z2-t3235951
Questions & Answers
Q: How do I Root my Z2 and Install TWRP on firmware .291 or below/above?
A: Simply follow this guide to Root: http://forum.xda-developers.com/xper...persu-t3437280
Q: How stable/usable is the AOSP Nougat ROM?
A: Extremly stable and recommended for daily use. There is a 'What works and don't' list below the Q&A!
Q: Will this delete all my data?
Yes and No. Unless your on a previous version of CM (Cyanogenmod), it will Factory Reset your phone in order to install the ROM, but none of your Google Account, Internal Storage, or SDCARD files will be affected/deleted.
Q: If the DP3/PD4 Concept ROMS are next to unusable, then why are there steps in order to install them?
A: Only developers will know! Just don't install them! XD
More Questions will be Answered once, well, someone asks me a question!
What's Working/Not Working?!
-Pretty much everything.
What's NOT Working?
-HDR Setting in Camera.
-NFC MAY not working on newer builds. (May..)
-You tell me.
Installation tutorial video...(AOSP PIXEL)(Thanks to @lexdroid12!)
Developer Preview 4 Running on Z2 WITH Mouse connected!(Thanks to Android Doctor)
Screenshots down below. First, second to last, and the last Screenshot attachments are with the Pixel Converstion Pack. Shout out to @niaboc79 for this awesome Add-On!
Remember to share your own Home Screen Screenshots and YouTube videos down below! Cheers from NZ...
And be sure to leave a Thanks to me and him for these amazing people for their magnificent achievement.