FORUMS
Remove All Ads from XDA

[ROM][UNOFFICIAL][6.0.1][E6853/E6803] CyanogenMod 13 for Xperia Z5 Premium [ALPHA]

5,515 posts
Thanks Meter: 5,485
 
By zacharias.maladroit, Recognized Developer on 28th June 2016, 06:22 PM
Thread Deleted Email Thread
[ROM][UNOFFICIAL][6.0.1][E6853/E6803] CyanogenMod 13 for the Sony Xperia Z5 Premium [ALPHA]



CyanogenMod 13 for the Sony Xperia Z5 E6853 and E6803


CyanogenMod is a free, community built, aftermarket firmware distribution of Android 6.0 (Marshmallow), which is designed to increase
performance and reliability over stock Android for your device.

CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be
used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps).
CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

Before you start

This ROM is only for the E6853 and the E6803

Code:
 *
 * Your warranty may be voided !
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 *
Special Thanks
  • @CTXz for getting the ball rolling on CyanogenMod for Z5 series and stemming the lion's share to get this working
  • @oshmoun for providing fixes ASAP
  • @AndroPlus for providing a great kernel that works with many recoveries
  • @moonbutt74 for reminding me that smashing your device can provide a solution
  • @sub77 for teaching me how to work with QCOM (I was on exynos before)
  • @Joeisgood99 for providing a solid working TWRP-3.0.0.0 build until we had our own
  • @bazhip for providing a well working twrp 2.8.7.0 for restoring until we had our own
  • @alphatact1cs has a great overview on lots of topics for the Z5 device family
  • @auras76 for his great Custom ROM
  • @infected_ for his experience
  • Thanks to @mpro420 for help to get Viper4Android working !
  • Thanks to @jimRnor for Project DiVA SoundMod !
  • The Sonyxperiadev team for releasing their sources to the public
  • SonyAOSP team
  • SonyCM team
  • Sony Xperia (community) devs
  • And ofcourse the entire CyanogenMod team!

(Known) Issues
  • Video Recording
  • Bluetooth (keeps restarting) (might be fixed, needs feedback + testing)
  • Camera Colors (can be circumvented by using specific apps CameraNext Mod )
  • Camera Focus & Sharpness (driver issue, probably since it uses Xperia Z (original) drivers but different lenses ?)
  • Camera lowlight pictures (might improve with release of Sony's "Experimental AOSP Camera" for the Z5 series, porting of other Framework + Stock Cam app; partially needs DRM magic)
  • Camera Focus (even with VCM2 actuator changes focus is still kind of murky)
  • Fingerprint sensor (might work depending on build date of ROM)
  • Lag after booting up device (Will resolve: lock screen after boot and waiting a few seconds)
  • Long bootup times & less smoothness with "stock" (prebuilt) kernel

What can not be fixed, changed - aka WONTFIX - NOTOURPROBLEM
  • There might be potential speed issues with Class 10+ microSD cards not properly being "tuned", in that case switch to slower cards or RMA it which should hopefully solve it. There is a possibility to force slower speeds on cards but that is not really the optimal solution with ultra speed cards and needs further investigation. Samsung (EVO/EVO+) cards, Transcend cards and a few others UHS-I(+) and faster are affected.

What has been Fixed
  • Horizontal color lines and color glitches during bootup
  • Gapps
  • Sudden Lag after some time
  • NFC
  • Odd calling numbers
  • In-call mic
  • Sound on calls
  • Camera button
  • Microphone
  • Thermal regulation
  • Red flashy frames
  • RIL (SIM detection)
  • Dex pre-optimization
  • Camera
  • Sensors
  • Crash after locking device
  • microSD access
  • Flash light / Torch
  • Full brightness (should be fully working)
  • Gapps (permissions issues) [occurs occasionally and should be circumvented by full-wipe approach (incl. internal storage)
  • Hang/Loop during boot stage (should be circumvented by full-wipe approach (incl. internal storage)) (use Custom Kernel, under investigation)
  • High battery drain [~ 10%-20% per hour] when dirty-flashing system (fastboot -S 256M flash system system.img), make sure to have data backed up, then format /data ; OTA updates should be fine though [need feedback] ); causes are: dirty flashing, certain apps, ROM issues, etc.

Guides/Instructions

Unlocking Bootloader

Warning! The following procedure may void your warranty and will wipe EVERYTHING


Steps on how to Fastboot, Flashmode, Recovery, Emergency/Force Poweroff

@alphatact1cs has a great overview on lots of topics for the Z5 device family

over at [GUIDE] Sony Xperia Z5 - UNLOCK / ROOT / TWEAKS - OS 5.1.1 / 6.0

There go to the [GUIDE] StockROM section , open it up and under #GENERAL you'll find everything you need to know.


Setting up fastboot and how to use it

For windows users

Please checkout this guide on how to use fastboot on windows

If you prefer to keep a low footprint instead of installing the whole Android SDK, take a look at its thread
[TOOL]Minimal ADB and Fastboot [8-28-15]


For Linux users

Installation

Debian based distros (Debian, Ubuntu etc.)

Open a terminal and enter the following :
Code:
sudo apt-get update && sudo apt-get install android-tools*
Confirm the installation by either hitting enter or typing y

Gentoo based Distros (Gentoo, Funtoo, Sabayon, Scientific Linux)

Once you're in a terminal, enter the following:

Code:
emerge dev-util/android-sdk-update-manager
Other distros (Arch, Fedora, Open Suse etc.)

Please find the apropriate packages to install android fastboot tools for your distro

How to use

Open a terminal in the location your .img file is located or cd into that directory like this:
Code:
cd <path to your directory that contains the .img files>
Replace <path to your directory that contains the .img files> with your actuall path

To boot temporarely into a .img (ex recovery) use the following command (replace <your.img> with your .img file) :

Code:
fastboot boot <yourfile>.img
To flash a kernel image enter the following (replace <your.img> with your .img file):

Code:
fastboot flash boot <your.img>
To flash a recovery image enter the following (replace <your.img> with your .img file):

Code:
fastboot flash recovery <your.img>
To exit fastboot enter :

Code:
fastboot reboot


How to install CM 13

Above all - do a Backup of ALL your data

When I write ALL I mean ALL (this includes the data on your micro SD card,

don't come whining to me if you lose your wedding photos/videos, kids' photos/videos or other important stuff !

For optimal experience I'd recommend my built custom kernel (quicker boot times, higher reliability, more tweakability)

General, in-depth instructions (for the Xperia Z5 !)

  • Download one of the newer Z5 AndroPlusKernels v20+ by @AndroPlus from his official website (Scroll down and select Z5, then on AndroidFileHost search for Z5_AndroPlusKernel_Permissive_v2 (v20 - v23) and download it)
  • Extract the flashable zip-file e.g. Z5_AndroPlusKernel_Permissive_v23.zip
  • Download our TWRP 3.0.1-0 build for the Z5)
  • Download the appropriate gapps from below (Can be downloaded on your device)
  • Download the CM 13 Zip for the Z5 from below (Can be downloaded on your device)
  • Move the GAPPS zip and the CM 13 to your Z5 if you haven't downloaded them on your device
  • Power Off your Z5 and wait about 10-15 seconds to make sure it's off
  • To enter fastboot mode hold VOL UP and while holding VOL UP connect your device to your pc via cable
  • When the notification LED has turned blue you are in fastboot mode
  • On your PC flash the boot.img that has been extracted from the Z5_AndroPlusKernel_Permissive_v23.zip using fastboot (
    Code:
     fastboot flash boot boot.img
    )
  • Now flash twrp-3.0.1-0-E6653-20160403.img by using fastboot (
    Code:
     fastboot flash recovery twrp-3.0.1-0-E6653-20160403.img
    )
  • Once both of those images have been flashed you can reboot the device like so:
    Code:
     fastboot reboot
  • Quickly pull the usb cable from the computer (you can leave the other end in the phone's port)
  • When booting up wait for the notification light to turn yellow at the Sony logo
  • Once it has turned yellow, you will enter TWRP by pressing VOL UP (or VOL DOWN - up works more reliably)
  • If you've missed the step above, reboot your device and try the step above again
  • Alternatively you can force turn off the device via: Power Button + Volume Up , then turn it on again via Power Button
  • If TWRP asks you to enable read and write, swipe to continue
  • Go to settings and lower the max brightness to the minimum or one of the lower levels to preserve energy
  • In TWRP make a full backup to the microSD in case you want to revert back to stock.
  • After it has finished, in this case Reboot -> System.
  • Copy over the TWRP folder from the external microSD to your computer (reason: you might not have access to your external SD or have to reformat it
  • Thank Microsoft, Sony, etc. for that: "Stock" ROM uses texfat , AOSP, CM, etc. uses exfat, ext4, ntfs
  • The files on the microSD might get corrupted (filesystem problem) or the microSD going crazy (I already had both cases)
  • Now Power on your phone and follow the steps again to get into TWRP
  • Swipe to continue (?)
  • select Wipe > Advanced Wipe
  • Now ONLY tick Dalvik/ART cache, System, Cache and Data
  • WARNING! THE NEXT STEP WILL WIPE YOUR SYSTEM AND DATA, MEANING YOU WILL DELETE YOUR STOCK SONY SYSTEM AND ALL YOUR APPS
  • (You already DID a Backup of your files so nothing to worry about)
  • Once you've ticked the correct boxes, swipe to wipe
  • Once the wipe is complete, return to the main menu and select Install
  • Locate and select your CM 13 Zip
  • Select "Add more Zips" and add your GAPPS package and finally swipe to install
  • Once the installation succeeded you can select "Reboot System"
  • Wait for CM 13 to boot up (Can take several minutes)
  • Enjoy CM13
  • OPTIONAL: You can remove your TWRP backup that is located in the TWRP folder if you feel like you will no longer need it




How to ROOT
  • In CM 13, enable the developer options
  • Select Root access
  • Select Apps Only (Or Apps and ADB if you use ADB)
  • Done

How to disable the Thermal Manager

Before we start I want to set a few questions and warnings. Disabling the thermal manager will cause you device to run slightly hotter, do this at your own risk.

Let's start out with why you would want to disable the thermal manager. At this point it's not recommended to disable the thermal manager as it has been fixed. However some people still want the max performance out of their device. The average heat without the thermal manager will be roughly the same, if not less compared to the stock ROM with it's thermal manager enabled.

So why is the thermal manager even included if it the device runs mostly fine without it. As most of you already know, the Snapdragon 810 (MSM8994) has overheating problems. The first CM boot after flash is responsible for optimizing apps and android and can become extremely resource hungry at that point. Due to that, the device can heat tremendously! Not only can that cause a panic reboot but it can also damage your device in rare cases. To avoid that issue a thermal manager shrinks down process and slowers the boot animation (That's why the CM logo may lag at first boot).

Enough said, let's get going..

To disable the thermal manager you must do the following :
  • First enable root access (See "How to ROOT" guide)
  • Open the CM file manager
  • Go to settings > General Settings > Access Mode
  • Select root acess mode
  • Go back to the file manager
  • Swipe from left to right or press the menu button in the upper left corner
  • Select Root folder
  • Open the folder/directory called etc
  • Delete thermanger.xml
  • Reboot
  • Done

How return back to stock via TWRP backup
  • Reboot your device
  • Wait for the notification light to turn purple at the Sony logo
  • Once it has turned purple, you will enter TWRP by pressing VOL UP or VOL DOWN
  • If you've missed the step above reboot and try again
  • If TWRP will ask you to enable read and write, swipe to continue
  • In TWRP select restore and select your backup, then swipe to restore
  • Once the restore is done you can select "Reboot System"
  • If your device hangs at the Sony wave boot animation, force shut down and power your device up again.


Downloads

Latest recommended CyanogenMod release for the Sony Xperia Z5 E6853/E6803 :
6.0.1_13.0-20160627-UNOFFICIAL-satsuki_r46_alternate

Latest recommended Kernel for the CM release for the Sony Xperia Z5 E6853/E6803 :
6.0.1_13.0-20160627-UNOFFICIAL-satsuki_r46_alternate


All my releases can be found here on : Android File Host


TWRP for CM/AOSP-based ROMs:

E68XX_TWRP3_SD_recovery.img


Gapps (Select ARM64 > 6.0) :

Open Gapps
[GAPPS][6.0/5.1/5.0][arm/arm64] Official Slim GApps ( recommended )


XPosed for Android:

[OFFICIAL] Xposed for Lollipop/Marshmallow (Installer in Thread)
XPosed Releases


SuperSU in SystemMode:

SuperSU in System-Mode [v2.65-STABLE] [v2.68-BETA] [v2.70-WIP/BETA-RC]


Sound MODs:

[Sound Mod ][Project DiVA][6.0 MM_Z5 series] KitaKami sound mod Prototype 01 (any effect ?)

A.R.I.S.E. Sound Systems - Auditory Research in Sound Enhancement - Exodus RC8.3 (works (RC8.3))

[SOUNDMOD][JB/KK/LP/MM]Project Yume Final, You are the Legend (needs testing)

[SUPER MOD][4.4+/6.0/N][ v7.5.2 ] XTREMEMusicâ„¢ THE SOUND THAT YOU'VE NEVER HEARD! (NOT working (7.4), needs testing of 7.5*

[Audio Mod] eXtremeBeats Aural Maximizer (needs testing)



[APP]Material ViPER4Android 2.4.0.1[Light/Dark][LP/MM]

Quote:
Originally Posted by mpro420

1.)zip file install via twrp.
2.)reboot to system.
3.)enable v4a "write to sdcard" permission in setting/apps/viper4android/permission.
4.)open v4a and gain root permission.
5.)install driver for v4a.
6.)reboot system.
7.)




Questions and bug reporting

The following questions will be ignored
  • Inappropriate questions
  • Requests for other devices
  • Forced orders, EX. : "PLS FIX!!!!!!"
  • ETA's
  • Often repeated questions or requests usually by the same user
  • Requests that are out of CM's framework (Ex. Adding Sony Apps)

How to report a bug/issue
  • Explain exactly what happens
  • Mention a log if you can (Please use hastebin or any other paste site to keep the thread clean)
  • If you can't mention a log, explain as precise as possible when, why and where it occurs!




Source Code

[SIZE="3"]All Source Code can be obtained from:

https://github.com/Sony-Kitakami
https://github.com/SonyAosp
https://github.com/sonyxperiadev
https://github.com/CyanogenMod
https://github.com/zachariasmaladroit/android_kernel_sony_msm8994_kitakami_r2

Kernel Source code can be obtained from : zachariasmaladroit/android_kernel_sony_msm8994_kitakami_r2

We gladly accept any developers that are willing to contribute to this project! Please PM @CTXz if you are interested in joining this project!


Build from Source

http://forum.xda-developers.com/xper...c-z5p-t3357040


Screen Shots (Z5 compact)




XDA:DevDB Information
CyanogenMod 13 for the Sony Xperia Z5 E6853 and E6803, ROM for the Sony Xperia Z5 Premium

Contributors
CTXz, Moonbutt74 , zacharias.maladroit , oshmoun , infected_

Source Code:
https://github.com/Sony-Kitakami
https://github.com/SonyAosp
https://github.com/sonyxperiadev
https://github.com/CyanogenMod
https://github.com/zachariasmaladroit/android_kernel_sony_msm8994_kitakami_r2



ROM OS Version: 6.0.x Marshmallow
ROM Firmware Required: 6.0 Recommended
Based On: CyanogenMod

Version Information
Status: Alpha

Created 2016-04-11
Last Updated 2016-06-28
The Following 4 Users Say Thank You to zacharias.maladroit For This Useful Post: [ View ]
 
 
28th June 2016, 06:24 PM
zacharias.maladroit's Avatar
OP Recognized Developer
Flag ::1
Thanks Meter: 5,485
 
More
one
28th June 2016, 06:24 PM
zacharias.maladroit's Avatar
OP Recognized Developer
Flag ::1
Thanks Meter: 5,485
 
More
two
28th June 2016, 06:24 PM
zacharias.maladroit's Avatar
OP Recognized Developer
Flag ::1
Thanks Meter: 5,485
 
More
three
29th June 2016, 01:31 PM
ok running cm13 on my 6385 and ran it for 5 mins and very happy will see about battery drain later hope there is very little, i have tried the cameras and they both show a blue picture any ideas?
The Following User Says Thank You to dominicstg2 For This Useful Post: [ View ] Gift dominicstg2 Ad-Free
29th June 2016, 03:30 PM
zacharias.maladroit's Avatar
OP Recognized Developer
Flag ::1
Thanks Meter: 5,485
 
More
Quote:
Originally Posted by dominicstg2

ok running cm13 on my 6385 and ran it for 5 mins and very happy will see about battery drain later hope there is very little, i have tried the cameras and they both show a blue picture any ideas?

there is very little battery drain compared to Sony Stock ROMs,

It's a limitation in the preview of the camera, you tried to take a picture ? That also isn't very great but better

Use Camera Next Mod ( https://www.androidfilehost.com/?w=files&flid=53956 ) for improvement,

until Alin releases calibrated firmware blobs for the cam the picture will be non-focused and/or blurry for objects farer away than 60 cm


@dominicstg2 Weren't you one of those RR (Resurrection Remix) lovers ?
29th June 2016, 10:44 PM
Quote:
Originally Posted by zacharias.maladroit

there is very little battery drain compared to Sony Stock ROMs,

It's a limitation in the preview of the camera, you tried to take a picture ? That also isn't very great but better

Use Camera Next Mod ( https://www.androidfilehost.com/?w=files&flid=53956 ) for improvement,

until Alin releases calibrated firmware blobs for the cam the picture will be non-focused and/or blurry for objects farer away than 60 cm


@dominicstg2 Weren't you one of those RR (Resurrection Remix) lovers ?

yes i was one who used the rr also i cant flash the rom on 6.0,1 was coming from stock, tried wiped everything and didnt work it said rom is for our device but said my device is . i had to flash android l to flash the rom any idea? not abig deal because im rocking cm13 also i dont see a drain at all on stock over night would see 5% drop on cm13 not a single % dropped and on rr when i used camera next mod the photo would be fine but on cm13 the camera is still blue when i take a picture? also im very happy that mms works and data its basically daily drivable for me
29th June 2016, 11:41 PM
zacharias.maladroit's Avatar
OP Recognized Developer
Flag ::1
Thanks Meter: 5,485
 
More
Quote:
Originally Posted by dominicstg2

yes i was one who used the rr also i cant flash the rom on 6.0,1 was coming from stock, tried wiped everything and didnt work it said rom is for our device but said my device is . i had to flash android l to flash the rom any idea? not abig deal because im rocking cm13 also i dont see a drain at all on stock over night would see 5% drop on cm13 not a single % dropped and on rr when i used camera next mod the photo would be fine but on cm13 the camera is still blue when i take a picture? also im very happy that mms works and data its basically daily drivable for me

Was that when I uploaded the first build of RR ?

Cause I hope that this time you have more luck with it and it works:

http://forum.xda-developers.com/show...4&postcount=45


Is the taken picture now fine with Camera Next Mod and CM13 ?

Both RR and CM13 now should be pretty close, please give RR another try


Thanks
29th June 2016, 11:45 PM
yes i think it was if not the second build , whats more stable rr or cm13? i had some issues with rr ie 4g didnt alway connect nor did 3g and no the photo is still blue on camera next mod on cm13 and sure il will download it now also can you explain why when i was onn 6.0.1 i couldnt flash cm13 nor rr? it would say its for our device but my device is . and i would have to go back to 6.0 to flash?
Quote:
Originally Posted by zacharias.maladroit

Was that when I uploaded the first build of RR ?

Cause I hope that this time you have more luck with it and it works:

http://forum.xda-developers.com/show...4&postcount=45


Is the taken picture now fine with Camera Next Mod and CM13 ?

Both RR and CM13 now should be pretty close, please give RR another try


Thanks

29th June 2016, 11:49 PM
zacharias.maladroit's Avatar
OP Recognized Developer
Flag ::1
Thanks Meter: 5,485
 
More
Quote:
Originally Posted by dominicstg2

yes i think it was if not the second build , whats more stable rr or cm13? i had some issues with rr ie 4g didnt alway connect nor did 3g and no the photo is still blue on camera next mod on cm13 and sure il will download it now also can you explain why when i was onn 6.0.1 i couldnt flash cm13 nor rr? it would say its for our device but my device is . and i would have to go back to 6.0 to flash?

It's related to the device string that is in the zip-file of the ROM,

if that doesn't match TWRP, it can not be flashed, unless you modify the zip-file to remove that line.

That mismatch can be made in error (something went wrong during creation, typo, etc.)

or on purpose - in that case it's not so wise to flash the wrong ROM
Subscribe to Thread

Tags
sony xperia z5 premium cm13

Guest Quick Reply (no urls or BBcode)
Message:
Thread Tools