[Xperia Z2 Android Development] AndroPlus:
I found Sony merged Z2 source into Z3 source like unified kernel!

So I build it for D6502/D6503 23.0.1.A.3.12 and it worked fine:o

Note I don't use Z2 for daily driver now,

so I can only confirm it's working without SIM.

It should be OK with SIM, though.

[UPDATE 3/1]

I sold my Z2, so I can't check if new versions work on Z2.

* banner by MysticEnforcer

View attachment 3066788View attachment 3066789View attachment 3066790

Download from official website

Changelog

What is FOTA kernel recovery?

[/B]

NOTE: This is old info as we can use official recovery partition on newer ROM.

Xperia doesn't have recovery partition for user,

but we have FOTA kernel partition for OTA.

Since we have to unlock bootloader and OTA won't work on unlocked,

we can re-use useless FOTA kernel as recovery partition using Dees-Troy's "extract_elf_ramdisk".

With FOTA kernel recovery, you can update your recovery without updating kernel.For example, TeamWin provides TWRP images of FOTA kernel for Z2:

http://teamw.in/project/twrp2/232You can flash images to FOTA kernel by fastboot command like

fastboot flash recovery fotakernel.img

To enter into FOTA recovery, press power key when LED is on.

How to restore DRM functions?

When you unlock bootloader you will lose X-Reality, noise reduction and so on,

but you can restore them!

Original thread is here, but I updated steps for Z2.

1. Download zip from original thread

* Choose KitKat version (for 4.4) or Lollipop version (for 5.0)

2. Place zip in internal or external storage of your device

3. Reboot into recovery and do Factory Reset

4. Reboot into flashmode and flash FTF with Flashtool

Any FTF is OK, but of cource use FTF for same version you are using now.

Wipe: Check APPSLOG and CACHE

Exclude: Don't check

5. Close Flashtool, unplug and plug your phone and reopen Flashtool, then relock bootloader

Click BLU icon to show relock button and click it.

6. Flash FTF (same as 4.)

7. Close Flashtool, unplug and plug your phone and reopen Flashtool, then unlock bootloader

Click BLU icon to show unlock button and click it.

8. Reboot into fastboot mode and flash my kernel

9. Reboot into recovery and install DRM Restore zip

10. Reboot

11. Done!

After doing this, do not restore old data since it will revert DRM restore.

You can restore system with recovery and use Titanium Backup or something to restore app data.

Note: When you flash new ROM (not kernel), you must flash DRM Restore zip.

If you get "net::ERR_NAME_NOT_RESOLVED" when connecting xda,

please disable PrototypeProtection with Titanium Backup or something similar.

How to use F2FS?

Read this:

http://xdaforums.com/xperia-s/s-development/tutorial-migrate-filesystem-to-f2fs-ext4-t3004755

Kernel sources

https://github.com/WedyDQ10/android_kernel_sony_msm8974ac

Credits

DooMLoRD

Faux123

Dees_Troy & TeamWin

Phil3759

Myself5

glocklee

pec0ra

and many other people involved in Z3 development

XDA:DevDB Information

AndroPlusKernel for Z2, Kernel for the Sony Xperia Z2

Contributors

AndroPlus, [#APK_cont]

Source Code: https://github.com/WedyDQ10/android_kernel_sony_msm8974ac

Kernel Special Features:

Version Information

Status: Stable

Created 2014-12-28

Last Updated 2016-04-09