FORUMS
Remove All Ads from XDA

[ROM][UNOFFICIAL][6.0.1][E5823/E5803] CyanogenMod 13 for the Sony Xperia Z5C [BETA]

1,002 posts
Thanks Meter: 2,277
 
By CTXz, Inactive Recognized Developer on 19th March 2016, 12:02 AM
Post Reply Email Thread
Announcement from CTXz: ROM Status: BETA

CyanogenMod 13 for the Sony Xperia Z5 Compact E5823 and E5803


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 E5823 and the E5803

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
  • The authors of my books
  • @oshmoun for providing fixes ASAP
  • @AndroPlus for providing a great kernel that works with many recoveries
  • @moonbutt74 for maintaining the Z5P and reminding me that smashing your device can provide a solution
  • @zacharias.maladroit for maintaining Z5 (sumire)
  • @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
  • The Sonyxperiadev team for releasing their sources to the public
  • SonyCM team
  • And of course the entire CyanogenMod team!

Issues
  • Laggy back camera
  • Video Recording on stock camera app (Use alternative)

What has been Fixed
  • Stability issues
  • SELINUX
  • Lag after booting up device
  • Camera Colors
  • Bluetooth
  • Fingerprint sensor
  • Full brightness
  • Torch
  • Double Tap 2 Wake
  • External SD recognition
  • 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

Guides/Instructions

Unlocking Bootloader

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

Setting up fastboot and how to use it

For windows users

Please checkout this guide on how to use fastboot on windows


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

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
  • Download the Z5C AndroPlusKernel v31 by @AndroPlus from his official website (Scroll down and select Z5 compact, then chose Z5C_AndroPlusKernel_v31.zip and download it)
  • Extract the Z5C_AndroPlusKernel_v31.zip
  • Download our TWRP 3.0.0.0 build for the Z5 Compact (Special thanks to @moonbutt74 for getting the configs right)
  • Download the appropriate gapps from below (Can be downloaded on your device)
  • Download the CM 13 Zip for the Z5 Compact from below (Can be downloaded on your device)
  • Move the GAPPS zip and the CM 13 to your Z5 Compact if you haven't downloaded them on your device
  • Power Off your Z5 Compact and wait about 10-15 seconds to make sure it's off
  • To enter fastboot hold VOL UP and while holding VOL UP connect your device to your pc via cable
  • When the notification light has turned blue you have entered fastboot mode
  • On your PC flash the boot.img that has been extracted from the Z5C_AndroPlusKernel_v31.zip using fastboot
  • Now flash the twrp-3.0.0.0 image by using fastboot
  • Once both of those images have been flashed you can exit fastboot
  • After exiting fastboot wait for the notification light to turn cyan (it says cyan if you can't read it) at the Sony logo
  • Once it has turned cyan (it says yellow if you can't read it), you will enter TWRP by pressing VOL UP or VOL DOWN
  • If you've missed the step above, reboot your device and try the step above again
  • If TWRP will ask you to enable read and write, swipe to continue
  • In TWRP make a full backup in case you want to revert back to stock (Note: Backing up on external sd still doesn't work yet)
  • After the backup has completed, go back to the main menu and 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 (But not your photos, music or everything else located in internal storage)
  • 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 some time)
  • 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 and enter the developer options
  • Select Root access
  • Select Apps Only (Or Apps and ADB if you use ADB)
  • Done


How return back to stock via TWRP backup
  • In CM13, enable and enter the developer options
  • Enable Advanced Reboot
  • Hold your power button for about 3 seconds
  • Select Reboot
  • Select Recovery and press ok, you will then enter TWRP
  • If TWRP will ask you to enable read and write, simply swipe to continue
  • In TWRP select restore and then select your backup, finally 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

Lastest recommended CyanogenMod release for the Sony Xperia Z5 Compact E5823/E5803 : ROM | MD5

All my releases can be found here : Android File Host

Gapps (Select ARM64 > 6.0) : Open Gapps

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 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!

Changelog
Code:
2016/8/28 - Complete re-write from scratch
- Fixed Bluetooth
- Fixed Fingerprint sensors
- Fixed Camera colors
- Fixed Camera breaks
- Fixed Stability Issues
- Fixed laggy boot
- Fixed torch properly now
- Enabled SELINUX
- Merged with Sony upstream repos
- Synced to the latest CM sources
- Old repos are now deprecated and are planned to be removed in the nearby future

2016/04/17
- Fixed Brightness
- Fixed Torch
- Fixed Double Tap 2 Wake
- Added CPU core optimization
- Added USB gadget support
- Synced with the latest CM sources
-----------------------------------------------
* For devs
- Added Kitakami patcher to manifests

2016/04/12
- Fixed sdcard recognition
- Updated binaries to v4
- Released CM build guide
- Synced with newest sources

2016/04/05
- Fixed GApps
- Partially fixed Bluetooth
- Synced to latest CM sources

2016/03/27
- Fix thermal manager lag
- Fix NFC
- Updated kernel configs
- Added ffmpeg codecs support
- Synced with newest CM sources
-------------------------------------------
* For devs
- Cleaned up suzuran and satsuki tree
   - > Moved common media configs to kitakami common tree
   - > Moved acdb files to vendor tree

2016/03/24
- Fix In-call Mic
- Add support for the E5803
- Add option to boot into recovery (On purple LED at Sony logo press VOL UP or VOL DOWN to enter recovery)
- Update Thermal manager
- Merge latest AOSP kernel commits
- Sync to newest CM source

2016/03/22
- Fix microphone
- Add settings for camera button
- Add settings for volume rockers
- Fix sound on calls

2016/03/20 - RIP TonyStark, you were a great moderator and we'll all miss you.
- Added Thermal regulation to avoid overheating problems
- Fixed Red flashy frames
- Fixed RIL (SIM detection)
- Fixed Dex pre-optimization
- Fixed Camera
- Fixed Sensors
- Fixed Crash after locking device

2016/03/18 - CM 13 For the Z5 Compact E5823 Released

Source Code

All Source Code can be obtained from here : Sony Kitakami Developer Organization

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


Build from Source

How to build CyanogenMod 13 for the Sony Xperia Z5/Z5C/Z5P from source

Screen Shots




XDA:DevDB Information
CyanogenMod 13 for the Sony Xperia Z5 Compact E5823 and E5803, ROM for the Sony Xperia Z5 Compact

Contributors
CTXz, zacharias.maladroit, oshmoun
Source Code: https://github.com/Sony-Kitakami

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

Version Information
Status: Beta

Created 2016-03-19
Last Updated 2016-08-28
The Following 73 Users Say Thank You to CTXz For This Useful Post: [ View ] Gift CTXz Ad-Free
 
 
19th March 2016, 12:02 AM |#2  
CTXz's Avatar
OP Inactive Recognized Developer
Flag Prague
Thanks Meter: 2,277
 
More
Q&A
Q&A

Q: Does this work on the Z5/Z5 Premium
A: No, this ROM is for the Z5 Compact only. Please visit the appropriate forum for your device as the appropriate CM version for your device is located there

Q: Does this work on E58XX
A: This ROM was build for the E5823 and E5803, flash it on a different Z5C model at your own risk! If it works, please report it to me so I can update the thread

Q: How long until <insert issue here> gets fixed
A: ETA's (Short for Estimated Time of Arrival) aren't tolerated well on XDA. Please remember that this is only a hobby

Q: CM becomes really laggy after a few minutes (Should not happen anymore, however if it does then follow the answer)
A: Please check the "How to disable the Thermal Manager" guide in the thread
The Following 8 Users Say Thank You to CTXz For This Useful Post: [ View ] Gift CTXz Ad-Free
19th March 2016, 12:02 AM |#3  
CTXz's Avatar
OP Inactive Recognized Developer
Flag Prague
Thanks Meter: 2,277
 
More
Z5 Development thread
The Following 5 Users Say Thank You to CTXz For This Useful Post: [ View ] Gift CTXz Ad-Free
19th March 2016, 12:42 AM |#4  
SNWK47's Avatar
Junior Member
Thanks Meter: 2
 
More
Really looking forward to using this, I just got the Z5 Compact back today after repair.
Thank you!
The Following User Says Thank You to SNWK47 For This Useful Post: [ View ] Gift SNWK47 Ad-Free
19th March 2016, 02:01 AM |#5  
Junior Member
Thanks Meter: 3
 
More
Very excited to see CM coming for the Z5C.
The Following 2 Users Say Thank You to pj2288 For This Useful Post: [ View ] Gift pj2288 Ad-Free
Telepracity
19th March 2016, 11:23 AM |#6  
Guest
Thanks Meter: 0
 
More
@CTXz i bought rust, what to do now? :c
The Following User Says Thank You to For This Useful Post: [ View ] Gift Ad-Free
19th March 2016, 12:42 PM |#7  
CTXz's Avatar
OP Inactive Recognized Developer
Flag Prague
Thanks Meter: 2,277
 
More
Quote:
Originally Posted by H3XabyT3LV

@CTXz i bought rust, what to do now? :c

Please PM me rather than posting on my threads, this isn't really Z5C related, is it?
The Following 3 Users Say Thank You to CTXz For This Useful Post: [ View ] Gift CTXz Ad-Free
19th March 2016, 12:48 PM |#8  
Joeisgood99's Avatar
Senior Member
Flag Melbourne
Thanks Meter: 183
 
More
@CTXz Well done!
I have been following your CM for Z5 & Z5C work closely and I'm excited to see your progress! Glad to have you on the Z5C thread!
The Following 2 Users Say Thank You to Joeisgood99 For This Useful Post: [ View ] Gift Joeisgood99 Ad-Free
19th March 2016, 12:56 PM |#9  
CTXz's Avatar
OP Inactive Recognized Developer
Flag Prague
Thanks Meter: 2,277
 
More
Quote:
Originally Posted by Joeisgood99

@CTXz Well done!
I have been following your CM for Z5 & Z5C work closely and I'm excited to see your progress! Glad to have you on the Z5C thread!

Hey, glad to see you reply. I'd really like to say thanks for your recovery since it supports the fstab that I use.

Cheers!
The Following 2 Users Say Thank You to CTXz For This Useful Post: [ View ] Gift CTXz Ad-Free
19th March 2016, 12:57 PM |#10  
Junior Member
Flag Petaling Jaya
Thanks Meter: 1
 
More
Hell yeah! Finally development for z5c. Btw, doesn't e5803 and e5823 run same software?
The Following User Says Thank You to ongjingxian For This Useful Post: [ View ] Gift ongjingxian Ad-Free
19th March 2016, 03:10 PM |#11  
Member
Thanks Meter: 7
 
More
my last phone was a oneplus one. I couldn't get used to its size so I switched to the z5c. I kinda started regretting my decision but this makes me really happy.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes