Android 4.4 for Sony Xperia Z (YUGA)

Amost pure AOSP (KitKat KOT49E) with Kernel 3.4.104

This is the home of my Android 4.4 Port for the Sony Xperia Z (YUGA / C6603).
Note: This (android 4.x) based port will not receive any new updates. You should check out my Android 5.x based port

Changelog for Release 4.x (4.4 based)

Version 4.9.3 (released 2. Nov 2014)

  • Build gralloc & co from source. This reduces the number of required patches and also fixes screenrecording.
Download release 4.9.3 Mirror on mega.co.nz PGP sig. Download Google-Apps package (v3)

Version 4.9.2 (released 27. Sep 2014)

  • Upgraded to Linux 3.4.104
  • Merged Sonys 10.5.1.A.0.283 kernel. Note that the CAF branch is now obsolete
  • Upgraded to 10.5.1.A.0.283 blobs
  • Fixed the screenshot-preview corruption bug
  • Note: This will most likely be the last release based on Android 4.x. My Port of Android-L will be available from here
Download release 4.9.2 PGP sig. Download Google-Apps package (v3)

Version 4.9.1 (released 4. Aug 2014)

  • Upgraded to Linux 3.4.101
  • Synced with CAF LNX.LA.2.7-06510-8064.0/37cb63
  • Include FM-Radio driver. Spirit2 should now work out of the box (you still need to have SuperSU installed)
  • Changed default ondemand governor settings - many thanks to 'freerunner'

Version 4.9 (released 26. Jul 2014)

  • Switched back to DASH based sensors framework (fixes the google play services battery drain)
  • Removed waldi

Version 4.8 (released 19. Jul 2014)

  • Support for USB soundcards/DAC

Version 4.7 (released 13. Jul 2014)

  • Upgraded to Linux 3.4.98
  • Changed headset button mapping (thanks to ian fardoe)
  • Added r_submix module to get chromecast working

Version 4.6 (released 21. Jun 2014)

  • Upgraded to Android 4.4.4
  • Upgraded to Linux 3.4.94
  • Merged latest CAF kernel patches

Version 4.5 (released 15. Jun 2014)

  • Upgraded to Linux 3.4.92
  • Merged sonys 10.5.A.0.233 kernel release

Version 4.4 (released 5. Jun 2014)

  • Upgraded to AOSP 4.4.3
  • Upgraded blobs to 10.5.A.0.230 version

Version 4.3 (released 1. Jun 2014)

  • Upgraded to Linux 3.4.91
  • Upgraded WLAN driver to 3.2.7.46
  • Enabled RTC-Writes in kernel config
  • Deactivated the slow hw-crypto module - resulting in a nice speedup for encrypted phones (!)
  • Added '/system/bin/waldi' to monitor & kill googles faulty 'Google Play Services' package

Version 4.2 (released 9. May 2014)

  • Based on Sonys 10.5.A.0.227 blobs
  • Using sonys new sensors framework
  • Fixed reboot-into-recovery
  • Fixed UI-Hang during manual carrier selection
  • Upgraded WLAN driver to 3.2.6.137-HEAD
  • Upgraded to Linux 3.4.86
  • Dropped CAF patches for now to solve some graphical glitches

Version 4.1 (released 6. March 2014)

  • Upgraded to Linux 3.4.82
  • Cherry-picked CAF patches (up to AU_LINUX_ANDROID_JB_2.6_RB1.04.03.00.144.015)

Version 4.0 (released 17. February 2014)

  • Upgraded to Linux 3.4.80
  • Ability to switch between Ondemand and Interactive governor in Settings
  • Double-Tap-To-Wake (disabled by default)
  • Upgraded bootanimation to Nexus-Kitkat version
  • Compiled bionic with CAF Krait enhancements

Version 3.9 (released 12. February 2014)

  • Upgraded to Linux 3.4.79

Version 3.8 (released 21. January 2014)

  • Enhanced sound quality by using a better resampler for 44.1khz tracks

Version 3.7 (released 19. January 2014)

  • Fixed deep-sleep kernel issue
  • Enable discard by default for /data

Version 3.6 (released 12. January 2014)

  • Based on Sonys latest 4.3 blobs
  • Up (or downgraded) to Kernel 10.4.b.0.569

Version 3.5 (released 21. December 2013)

  • Upgraded to Android 4.4.2

Version 3.4 (released 7. December 2013)

  • Upgraded to Android 4.4.1

Version 3.3 (released 11. November 2013)

  • Rebuilt kernel with GCC 4.7
  • Fixed audio buffer underrun during network switches
  • Ability to adjust the vibrator-motor voltage
  • Ability to set the maximum and minimum amount of online CPU cores

Version 3.2 (released 5. November 2013)

  • Enabled Nexus5-Style lockscreen
  • Include Launcher3 (AOSP Version of the new Gapps launcher
  • Fixed fused location provider for use with kitkat gapps

Version 3.1 (released 3. November 2013)

  • Fixed device sensors (orientation, etc)
  • Stock gallery is now able to set a new wallpaper
  • Upgraded Kernel to 3.4.67, also includes fix for CVE-2013-2597
  • Support for USB-OTG storage devices

Version 3.0 (released 2. November 2013)

  • First version based on Android 4.4


Installation instructions

  • Extract the archive (unzip pabx_aosp_yuga*.zip)
  • Run 'adb reboot-bootloader'
  • Run 'fastboot flash boot boot.img ; fastboot flash system system.img'
  • If this is an initial installation, also run: fastboot flash userdata userdata.img # NOTE: THIS WILL WIPE YOUR /data - only do this on first-install
  • Run 'fastboot reboot'

GAPPS installation

Flashing the system image will give you a pure AOSP setup - without any google apps (eg. no market).
...but installing them is easy: Simply place the downloaded gapps tarbal at /sdcard. This can be done via MTP or via ADB:
$ adb push gapps_4?_yuga_?.tgz /sdcard/


Known bugs for the 4.x release

  • Syncing the Calendar with google may not work on a fresh 4.4 installation. Reboot your phone 2 times and it should be fine. (Seems to be a gapps issue, there is nothing i can do about it)


Building from source

My source tree is (mostly) up-to-date.
$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.4_r1
# copy-n-paste the local-manifest from: https://github.com/adrian-bl-yuga/device-sony-c6603
$ repo sync
# ...and build the kernel:
$ ( cd kernel/sony/kernel_*/ && ./_build.sh )
# horray: you can now build AOSP!
$ lunch full_c6603-userdebug
$ make -j 8





comments powered by Disqus