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

Search This thread

Berni-0815

Senior Member
Sep 22, 2016
1,911
1,600
Germany
I think so. I had a look at sumire's files and adopted it to suzuran. For that I used "extract-files.sh" in the device tree and eliminated missing or wrong (placed) files. With that the vendor files are created.
 
Last edited:

nzzane

Inactive Recognized Developer
Aug 20, 2014
561
1,124

nzzane

Inactive Recognized Developer
Aug 20, 2014
561
1,124
I know your work. But there is something I don't understand: At line 838 you have a but in the original rom there is no file tad_static... :confused:
Oh yes, tad_static is inside the ramdisk, check /sbin
Either unpack the stock kernel and inside the ramdisk, or /sbin
 

Berni-0815

Senior Member
Sep 22, 2016
1,911
1,600
Germany
Ok, these are the files that I can't find.
Code:
bin/tad_static
lib64/lib-preload64.so
vendor/lib64/libril-qc-ltedirectdi
vendor/lib64/librilqmiservices.so
vendor/lib64/libsettings.so
vendor/lib/libmmcamera_pdaf_v3.so
vendor/lib/libril-qc-ltedirectdisc
vendor/lib/librilqmiservices.so
vendor/lib/libsettings.so
I'm using this rom for my z5c: E5823_32.2.A.5.11_1298-1220_R2C
And I extracted every file from this rom that contains an ext4 file.
Where is my fault?
 

nzzane

Inactive Recognized Developer
Aug 20, 2014
561
1,124
Ok, these are the files that I can't find.

I'm using this rom for my z5c: E5823_32.2.A.5.11_1298-1220_R2C
And I extracted every file from this rom that contains an ext4 file.
Where is my fault?
Lib-preload64 is https://github.com/TheMuppets/propr...m-14.1/ivy/proprietary/lib64/lib-preload64.so
Not actually on the stock device
Tad_static should be in /sbin of your device (unpack the kernel and have a look in the ramdisk)

The others I am not too sure about in all honesty, but the two mentioned above should be the main ones you need
 

Berni-0815

Senior Member
Sep 22, 2016
1,911
1,600
Germany
My fault is found; it's simple: All files except tad_static are part of nougat. So I can't use them for a mm based rom.
And tad_static is found in the unpacked kernel.elf. In Germany we say: "Den Wald vor lauter Bäumen nicht sehen!". This is not translatable, but it means to see nothing with open eyes...
Thanks a lot for your help.
 

Berni-0815

Senior Member
Sep 22, 2016
1,911
1,600
Germany
Here is my latest build dated 27. march 2017. Not very much improvements, but there is a security patch level dated 01. march 2017... ;)

As usual, fingerprints, fmradio, voice calls over bluetooth and nfc are not working! No way... :(

I'm using this rom as daily driver, because the general bluetooth function works much more stable than in stock rom! I.e. hearing music and getting navigation informations in conjunction on my bike are working fine and the music player is not crashing after a navigation info. At all tested stock roms it crashes often while doing that. Now and then the bluetooth connection to my headset is lost completely so I have to reactivate it while driving... :eek:

All this is now gone with my LineageOS build :good:

Try it at your own risk!
 

miir01

Member
Oct 4, 2015
14
11
My fault is found; it's simple: All files except tad_static are part of nougat. So I can't use them for a mm based rom.
And tad_static is found in the unpacked kernel.elf. In Germany we say: "Den Wald vor lauter Bäumen nicht sehen!". This is not translatable, but it means to see nothing with open eyes...
Thanks a lot for your help.

"Den Wald vor lauter Bäumen nicht sehen!" => Can't see the wood for the trees. ;)

Thanks for all your work for the community. Cheers.
 

Macsek

Senior Member
Apr 29, 2007
85
24
Budapest
Here is my latest build dated 27. march 2017. Not very much improvements, but there is a security patch level dated 01. march 2017... ;)

As usual, fingerprints, fmradio, voice calls over bluetooth and nfc are not working! No way... :(

I'm using this rom as daily driver, because the general bluetooth function works much more stable than in stock rom! I.e. hearing music and getting navigation informations in conjunction on my bike are working fine and the music player is not crashing after a navigation info. At all tested stock roms it crashes often while doing that. Now and then the bluetooth connection to my headset is lost completely so I have to reactivate it while driving... :eek:

All this is now gone with my LineageOS build :good:

Thanks for both ROMs, Berni-0815.
I loved CM ROMS in the past, this one is close: fast enough, good general usage, but I have experienced random reboots now and then, had too low volume problems in phone sometimes, camera ceased to start half of tries. I will try another ROM. (definitely not LineageOS as non-working WiFi is a deal breaker for me)
I hope you continue supporting these ROMs and somehow all faults will be solved.
Friendliche Grüße
 

Berlambert22

New member
May 7, 2017
1
0
Here is my latest build dated 07. April. Very few changes, but the caller volume is much higher than before.
And I used another driver for wlan and bluetooth... ;)


Hi Berni and thank for the link,
I try this rom lineage-13.0-20170407 in your link,
All it's good for me exept an echo on the other caller-side

Do you have a soluce for this ?
Or other rom type lineage13 ?

May be editing the mixer path.xml ?
 

Berni-0815

Senior Member
Sep 22, 2016
1,911
1,600
Germany
The echo on the other side is a known problem and I have no idea how to solve it. I tried using the stuff from LineageOS 14.1 but with that I can't build a rom successfully.
Therefore I stopped working on this rom. For doing more I have not enough knowledge about android development.
Sorry... :crying:
 

bizon1

New member
May 5, 2017
4
0
Hi, could somebody create port of cm13 camera with all required libs and blobs to stock rom? It's a bit weird because my camera did't work (it can't focus at all even with restored TA, after module replacement) on stock rom and lineage which have stock based camera. On cm13 camera is working fine. I would like to have a stock rom with working camera. Please help.
 

Marco20

Senior Member
Mar 12, 2015
413
101
Hey guys

i got a Z5C and wanted to ask how the development of CM13 is coming along? Is the rom being updated regularly to try and get to a RC or stable build? I want to use it as my daily

Thanks
Rom is outdated and not supported anymore. Try lineage os.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 72
    I6sDWeJ.jpg

    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

    Kzd7hM5l.jpg
    NGSoziBl.jpg
    D9NkEJml.jpg
    asI5X07l.png
    F9BDEXil.png



    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
    18
    Ok before you guys think I'm dead, I'm not. I've just been busy like always. I've spend the majority of free time on C++ practice and turns out debian got corrupted, so I'm finally here again with Arch (Ima post a screenshot of my new flashy high-tek hacker desktop soon). Now this doesn't mean I'll just Straight into Z5C development. I've got some work to do with my Galaxy tab s2 and now that my friends Xperia X arrived (cool phone guys, gj sony), i'll get my S5 mini back and will run some Security patch updates for CM. Then we can start talking about the Z5C again. The next issue will be keeping track of Upstream again :/
    16
    Okay, i'm gonna give you a sneak peak on what you can expect in the next release

    - Full brightness
    - Double Tap 2 Wake
    - USB gadgets support
    - Better core performance

    The reason why I haven't released it yet is due to a small misunderstanding about Sony's sensor related commits, meaning i've accidentally disabled the sensors. Tough a new build is coming today so no panic

    Sent from my E5823 using XDA-Developers mobile app
    15
    Alright guys, after some time I got my stuff sorted again, I'm still having a small battle with my tablet atm but development for the z5c should start soon again ;)
    15
    Yes, as sad before, last build have problems with GAPPS. To make ROM work please use build 20160324

    Sent from my E5823 using Tapatalk
    New build coming today with fixed gapps. I've took a little break off the development but i'm starting today again

    Sent from my E5823 using XDA-Developers mobile app
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone