[Xperia Z5 Premium Android Development] JengaMasterG:
--AOSP for Xperia Z5 Premium DUAL--

Should be compatible with all Z5 Premium DUAL variants!​

Things you should know before using:

If you would like to use Android Pay, you will need to lock your bootloader since the SafetyNet API checks for an unlocked bootloader.

Features:

- Split Screen

- System UI tuner with Notification Importance

- Default App selecting that includes which voice command app you want to use as default (Google Now, Cortana, Hound, etc.)

- Extended Settings

- Toggle 8MP and 23MP mode for rear facing camera (requires reboot)

- ADB over network toggle​

I am not responsible if your phone bricks, catches fire, or explodes. You are flashing this ROM at your own risk!

-Before you flash ANY of the images, you must make sure your device is unlocked through Sony's unlock boot loader service!!

Current Bugs:

1. The rear camera doesn't always work and the orientation is wrong for the front facing camera.

2. The Fingerprint sensor doesn't work.

3. No SD Card support

4. SIM card isn't read on new updated kernel.

---------------------------------------------------------------------------------------​

How to Install the ROM:

1. Download the AOSP images: https://drive.google.com/open?id=0B6sxb_DTSRXuRjVPd2NneTFUWEE

2. Flash AOSP image to your device:

1. On your device: Connect the device to your computer in Fastboot mode, by pressing volume up while inserting the USB cable. When the device is in Fastboot mode, the LED on the device will be illuminated in blue.

2. On your computer: Go to where you downloaded the files and open a cmd screen. Then, flash the boot, system and userdata images by entering the following commands in a terminal window:

fastboot -S 256M flash boot boot.img
fastboot -S 256M flash system system.img
fastboot -S 256M flash userdata userdata.img

Note: It's not necessary to re-flash the userdata every time you flash your device, but sometimes the new software is incompatible with previous content, which might result in a device that doesn't boot. If you experience this, try to re-flash only the userdata again.

3. Disconnect your device from the computer and power it on.

First boot may take a while so please be patient!

Congrats!! You now have AOSP on your Z5 Premium Dual!

---------------------------------------------------------------------------------------​

Installing GApps:

Download which GApps you would like to use (recommended GApps are the OCT 31st GApps from OpenGApps). You can either download the zip onto your phone, or if you forget to do that - like me - then download the zip onto your computer.

Download the TWRP boot.img for Z5 Premium Dual: E6883.img (I recommend you download this where you saved the other img files you downloaded earlier!)

Plug your Phone into your PC in fastboot mode.

Open a cmd screen where you downloaded the recovery img and run this code:

fastboot flash boot E6883.img

Once that's done, unplug your phone and boot into recovery. If it asks about the system being mounted as read-only click the button that keeps the system as READ-ONLY as this doesn't affect flashable zip files.

If you downloaded your GApps zip onto your phone:

Click install zip and navigate to where you saved it and install the zip.

If you downloaded your GApps zip onto your PC:

On TWRP go to Advanced -> ADB Sideload.

On your PC go to where you downloaded the zip file and open a cmd window.

Once you do that you can run this command on your computer:

adb sideload <your GApps.zip file>

Wait until the install is finished before unplugging your phone!!

Once the installation is finished press the back button

Go to Reboot -> Bootloader

Once your phone reboots into bootloader mode, flash the boot.img that you downloaded at the start with:

fastboot flash boot boot.img

YOUR PHONE WON'T REBOOT TO THE SYSTEM IF YOU DON'T DO THIS STEP!

When the flash is finished, unplug your phone and reboot it.

Congrats!! You now have GApps installed!

XDA:DevDB Information

Z5 Premium DUAL AOSP 7.0 Nougat, ROM for the Sony Xperia Z5 Premium

Contributors

Archfeind2, Sony Developer World Mobile

Source Code: https://github.com/ZeroX25/Z5_Premium_Dual_AOSP

ROM OS Version: 7.x Nougat

ROM Kernel: Linux 3.10.x

ROM Firmware Required: Unlocked Bootloader

Based On: AOSP

Version Information

Status: Beta

Current Stable Version: 0.5.0

Stable Release Date: 2016-11-30

Current Beta Version: 0.6.0

Beta Release Date: 2016-12-30

Created 2016-11-16

Last Updated 2017-04-10