
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
- Visit Sonys Official Bootloader Unlock guide (Details to all the risks you are taking are located on their site)
- After Unlocking your bootloader you can proceed with the next steps
Setting up fastboot and how to use it
For windows users
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>
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
Last edited: