yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] ReversedPosix:
Cm13 charging problem

Are you going to solve the problem of slow charging?

This problem has all the ROM using the Sun kernel.

Thank you and [MENTION=1077833]infected_[/MENTION] for this great build.
[Xperia Z5 Android Development] ZawyNesio:
hi there, im reporting for e6603 (LATAM), here I come:

Battery duration is nice for me, it took almost 1 1/2 day to drain off (Moderate use)

Charge it works meanwhile the phone is locked, other ways (if i'm using it.... whatching a video for example) not charge nothing

The temperature of the phone is almost down compared with stock rom(the performance is nice for me no laggy whith any task)

Camara working weird, the preview shows blue colors but the processed photo is nice (to be an alpha CM) but the camara take a long time to be launched, all this using ANDROPLUS KERNEL V33, with V34 the camara is to bad and some times it crashes I don't know why!!

The frontal camara is all the opposite, previer look nice, but the processed photo show all blue colors

Fingerprint sensor works very well for me, any issue whit this

bluetooth work fine for some hours later it disconect and never conect again due to reboot the phone (this issue is very, VERY rare, just happend a couple of times in 2 weeks

Some considerationes

I was using this awsome work in this release-----> cm-13.0-20160712

the camara app I´ve used is CammaraZoom FX (not the better but the only I purchased... LOL...)

I hope this help for something, im just want to contribuite this awsome work somehow.

Take the freedom to criticize my English... :p
[Xperia Z5 Android Development] zacharias.maladroit:
It's under investigation,

several candidates meanwhile have come up that can cause this ("our" base, Sony [thermal]; and "upstream" CyanogenMod, AOSP [ROM side] or Codeaurora/Linaro [Kernel])
[Xperia Z5 Android Development] alexeon:
[MENTION=1077833]infected_[/MENTION] The camera has something wrong with it. I could not let it work
[Xperia Z5 Android Development] albertobom:
New build is probably on the way with a working camera, just be patient. ;)
[Xperia Z5 Android Development] alexeon:
Will we have CM14?:o

Sent using XDA One

---------- Post added at 01:45 AM ---------- Previous post was at 12:59 AM ----------

Well,the minimum brightness is also too high…:crying:

Sent using XDA One
[Xperia Z5 Android Development] mistercyko:
Will this ROM be compatible with the dual sim variants?

Are you considering that?

Sorry for asking for a feature.. I just feel stupid for buying my z5 without knowing that there would be this problem. I don't even have a second sim :(
[Xperia Z5 Android Development] :
I tested the infected build yesterday:

camera still not working (stock camera cannot establish connection, 3rd party cams also crash)

fingerprints are working very bad. Unlock sometimes possible, but recognition is much worse than on stock. And completely not working with e.g. Keepass2Android.

NFC als buggy

TWRP 2.7.8.0 (version seems to be installed by the rom) doesn't regonize any partitions on internal. So wipe, install, backup, restore not possible. Cannot establish connection to windows oder ubuntu ... so flashing of new TWRP not pissble.

I hope this doesn't kill your motivation. I am really looking forward to a working cm on Xperia Z5.
[Xperia Z5 Android Development] zacharias.maladroit:
It only should crash on 1st load (third-party apps),

DO NOT use the stock camera, it'll break access

if you "jam" the camera with the stock camera, you have to reboot :p

(at least it's like that on AOSP; PA; Omni)
[Xperia Z5 Android Development] :
Ok. Good to know.

Is there anything I can do to help with the development?
[Xperia Z5 Android Development] zacharias.maladroit:
I added one additional line to make it clearer:

Well, test it, look how it goes,

take a look at dmesg output, post error messages,

take a look via logcat, post error messages,

observe deviant behavior or anomalies, inconsistencies,

instabilities, etc. etc.

and report those :)

In a ideal world if you'd encounter an error message, you'd e.g. google it, and see if there's a patch available for it,

so that it can be fixed quickly,

or for the more advanced open up a pull-request against the repos (if that's too much, no problem, we can do that, too)

Thanks
[Xperia Z5 Android Development] cyberdev:
Yesturday i flashed the latest infected build to a Z5 E6653, but no camera app want work :(

I hav ealso tested Google Camera and CM Next Camera Mod

Is there another Kernel i can test?
[Xperia Z5 Android Development] Fleckihund:
Hello,

since I have a Xperia Z5 and wanted to help you improving your CM, there are my issues:

- Camera colors/focus seem odd, it feels like thermal radiation (my monitor is red and some false colors more), though this is a known issue. It still takes photos with normal colors. Downloading the CameraNext Mod helps to resolve this issue.

- Random reboots (I noticed this when someone wants to call me, it would just crash and reboot)

- Wlan slow: I have to choose Europe as country code over and over because it always goes back to Germany which is slow for me.

- the most important issue: charging. When I first installed it, it won't charge my phone no matter what wire I use and I can tell that all ones I have work fine. After installing a older kernel version (v23), it worked again. Although after some configurations and reinstalls, it stopped working and I turned it off so I could charge it. As the night passes by, it worked again. Later when I had to charge it, it stopped working again so I let it go to 0% and then start charging, now it works. TL;DR I plugged the cable in, battery icon shows it would be charging, but under "Battery" it says "Not charging"

Apart from that, keep up the good work!
[Xperia Z5 Android Development] nino321:
ROM is compatible with the Sony z5 Dual ?
[Xperia Z5 Android Development] HaoZeke:
No.
[Xperia Z5 Android Development] cptMikky:
I understand Dual SIM is WIP and not supported at the moment.

Would it be beneficial for development if I tried to flash a 6633 device, perform testing and report errors and logs and if so, what should I focus on?

Or should I stay away for now until support gets better?
[Xperia Z5 Android Development] Uclydde:
The last nightly that was released was all the way back in June. What happened to development?
[Xperia Z5 Android Development] Bunkerking018:
Hey I have a question. Ice tried installing this and It just doesn't want to stick. When it loads up it says system ui has crashed and doesn't go away. Can't even start the setup process any suggestions? This also happens with other custom roms I've tried to install. Except others just boot loop and never boot up fully. I'm on model E6603 firm 6.0.1. I am at work sorry I'll try to respond if any one has questions.
[Xperia Z5 Android Development] Fleckihund:
Did you accidentally delete any system apps?
[Xperia Z5 Android Development] Bunkerking018:
No none at all. I wiped my phone to stock then installed
[Xperia Z5 Android Development] mickiem:
camera

i use the build 824 ,no camera app can be used even after reboot.:crying:
[Xperia Z5 Android Development] dalincn:
hi,how can make kernel support dual sim,add some script?thx:laugh:
[Xperia Z5 Android Development] _LLJY:
U need to recompile kernel with dsds diffconfig
[Xperia Z5 Android Development] dalincn:
thank for your reply, but I don't know how revise the deconfig from official kernel open source, can you give me some suggestions ?:laugh:
[Xperia Z5 Android Development] _LLJY:
Follow the build script as usual

then when it comes to diffconfig/defconfig

Swap it with the one for dsds

Then compile with make
[Xperia Z5 Android Development] dalincn:
Many thanks.

I have already build a lineageos 14.1 for my devcie Galaxy note 4 ,and swap dsds deconfig, but only one sim work.

Maybe Some mistakes in my defconfig script ?:crying:
[Xperia Z5 Android Development] Sovjet:
thats good i will keep testing with my devices if it works i will post a message
[Xperia Z5 Android Development] Uclydde:
So my phone has been doing something very strange. At night, I don't shut my phone off, but every morning when I go to use my phone, it has a black, unresponsive screen. Holding down the power button does nothing. I have to hold down the VOL up button to get it to shut off, so that I can turn it back on. And when I turn it back on, it has plenty of battery life. This has happened 3 times now.
[Xperia Z5 Android Development] zacharias.maladroit:
Thanks for the report Uclydde,

so it doesn't actually drain battery in that state ?

This appears to happen across the devices - so it could be caused by either CM itself, by our (SonyKitakami Developer, or Sony community devs) changes or some issues with Sony's drivers

I didn't see this happen on my device yet, so can't tell, what might be the cause.

Could you please post a few details:

Was the phone in Airplane Mode ?

Any special modes were activated ? (Bluetooth, WiFi, etc.)

Are you using Xposed ? if not, Greenify with Root ? or similar apps ?

If it's happening mostly at night it also could indicate issues with sleeping:

are you using any Kernel tweaking apps ? Kernel Adiutor ?

What are your CPU frequency, governor, etc. settings ? Changes ?

Thanks again
[Xperia Z5 Android Development] Daniel_GB:
I think this what you need:

http://xdaforums.com/xperia-z5/development/guide-build-cm13-source-z5-z5c-z5p-t3357040
[Xperia Z5 Android Development] Sovjet:
I flashed it again now it works wonderful, everything works for so far i have tested only that it is a little laggy (that was already know), i will continue to test and if i find disturbing things i will post it and i will continue testing
[Xperia Z5 Android Development] Uclydde:
The phone was not in airplane mode, although LTE was disabled. Wifi was on, but bluetooth was disabled.

I'm not using Xposed, nor greenify. The only root app I'm using is Adaway.

I haven't used any Kernel tweaking apps, and I haven't made any adjustements to the CPU frequency, governor, etc.

I did disable thermal manager though.

Only change I've made is under battery, where I changed the battery mode to 'Efficiency'. I have switched battery mode back to 'Balanced' to see if that changes things.

Let me know if there are any other questions you have. I'll report back tomorrow.
[Xperia Z5 Android Development] Sovjet:
i ll set up the same settings and test it for today see what happends
[Xperia Z5 Android Development] Sovjet:
i took the gamble, to use it as a daily use rom and it works wonderful after a day of pretty long use, i still had pretty much battery left, if there is anything specific someone wants to know or test message me :)
[Xperia Z5 Android Development] zacharias.maladroit:
New build:

CM-13.0

xperia-z5_sumire/cm-13.0/20160415-UNOFFICIAL-sumire

Custom Kernel for CM-13.0

xperia-z5_sumire/cm-13.0/20160415-UNOFFICIAL-sumire/20160415_custom-kernel

Custom Kernel source:

Sun-Kernel_LA.BF64.1.2.2_rb4.7_02.04.2016_I.1_10_6_cm

Hosting by hostracon.com (Thanks !)

(Free Hosting Offer for XDA devs: http://xdaforums.com/android/general/free-file-hosting-android-developers-t3352223 )

In Changelog, with Kernel, the Custom Kernel is addressed;

once all is well, this will (and could) be pushed to our CM 13 port kernel - so give it a good beating :)

I haven't tested the build and/or kernel personally yet,

since I'm temporarily back again to testing (Sony) Stock ROM + battery runtime
[Xperia Z5 Android Development] zacharias.maladroit:
Please cut down that quoting - it makes the thread hard to read (especially on phones)

(Haha - stupid mobile apps :p )
[Xperia Z5 Android Development] Sovjet:
tried serveral ways of flashing but cant get it to work with the new kernel and the new build
[Xperia Z5 Android Development] TonskuDaigle:
This is what I did.

Used Fastboot to flash Andro's kernel and TWRP

Booted to TWRP

Wiped data, Dalvik/ART cache, regular cache and system

Flashed the CM13 ROM.zip and GApps

Flashed the ROM's kernel (I actually booted with Andro's kernel first, but as it didn't work, I went to Fastboot and flashed the ROM's kernel)

Rebooted

There were glitches when booting, but they went away once I got to desktop and I shut down the screen for a moment and opened it again.

I have not tested the ROM yet otherwise as my phone's charging. Started flashing with a low battery life.
[Xperia Z5 Android Development] Sovjet:
Oke thanks for the heads up i will try it again and see if it works on my other devices
[Xperia Z5 Android Development] paulle:
tried to install too, but without success. What I did:

copied gapps, ...sumire.zip and ...kernel.zip to the sdcard

booted into twrp, in twrp deleted art/dalvik-cache, internal storage and system

and after this tried to install gapps, sumire.zip and kernel.zip.

When twrp tried to install the sumire.zip it stopped with the message: Updater process ended with ERROR : 7

Error installling zip file '/ ..../ ...sumire.zip

edit: problem solved. I used twrp3.0.0 for my first tries and got error 7.

now I used twrp3.0.2 and got all installed.

cm13 starts without problems but the display often flickers.
[Xperia Z5 Android Development] Sovjet:
New build

I got it working on my other device right away with the custom cm 13.0 kernel i will test the rom and see if it works

The livedisplay feature in settings dont crash anymore when clicked that i checked already

Edit:

I fixed the flickering by rebooting after first startup and when booted lock screen for 10 sec and off you go didnt see any flickering yet
[Xperia Z5 Android Development] Snaqejack:
Any major bugs left to fix?

Anyone using this as their daily driver yet?

Skickat från min E6653 via Tapatalk
[Xperia Z5 Android Development] Sovjet:
Tested several features

The rom feels more smooth, the graphical glitches are gone after reboot (played around with it for 20 minutes didnt see one after reboot)

They are still in the TWRP and when booting up

KCAL works very good Night mode and Automatic

Watching movies in VLC and Netflix, it looks like they are more battery efficient, also a little off topic there is no more cracking sound when watching netflix.

Wifi is more reliable didnt lose wifi on the attic, could be coincedence.

Cant find Vibrate intensity at settings

Couldnt test governers or cpu settings yet

Yup i use it as my daily driver
[Xperia Z5 Android Development] paulle:
avoiding flickering by rebooting after first startup and when booted lock screen for 10 sec off. for me it works partially (bootanimatiom and twrp is always flickering, even after 3 or 4 reboots, during normal use there is a flicker from time to time.
[Xperia Z5 Android Development] zacharias.maladroit:
Apologies,

I'll update the install guide,

doing a wipe of internal storage shouldn't be needed (anymore) - so that should make install a lot less complicated & easier to install for lots of people :)

I did an install from data on internal storage (via TWRP) and wiping /system, /cache, dalvik cache, /data (== Advanced Wipe)

and that was enough.

Even when only installing CM and installing GApps afterwards in TWRP,

a wipe of dalvik cache + /data, /cache was enough

During activation CM did a few "soft reboots" (GUI restarting) but forcing-closing, erroring out Google Play Store or Google Play Services (like several times in the past) wasn't there this time
[Xperia Z5 Android Development] TonskuDaigle:
- the flickering exists. Others seem to reboot, I just turn screen off for a few seconds and that is it.

- BT seemed to work for me with my headset, used to disconnect

- purple notification light upon booting

Weird one:

My phone was on. Notification light blinked and I knew there were notifications (I use Pushbullet). I ignored it for a few hours but when I went to bed, the phone didn't wake up. Just red notification. Had to force shut the phone down. After a couple of boot attempts, got it on. Checked battery and here's the screenshot.

BUT! It's a very good start! With dirty flashes and zacharias fixing the problems, we'll be more than fine. These current problems are more or less annoyances rather than unfixable issues.
[Xperia Z5 Android Development] Sovjet:
Maybe if you try a clean install a few of this things will be gone because I didn't come across the red light and battery drainage

I do a clean with full wipe every time so maybe worth a try and then see what happends
[Xperia Z5 Android Development] TonskuDaigle:
Did I miss something from my earlier clean install?

---------- Post added at 12:59 AM ---------- Previous post was at 12:58 AM ----------

This has only happened to me when I've left the phone unattended for a few hours. Charging excluded.
[Xperia Z5 Android Development] aerostride:
Sorry for duplicate post.
[Xperia Z5 Android Development] Sovjet:
This morning when I woke up phone was charged blue LED notification light and the screen wouldn't turn on needed to hard reset the phone
[Xperia Z5 Android Development] TonskuDaigle:
I had the same multiple times last night. Even just a few minutes after a reboot - if the screen timed out and turned off, the phone wouldn't wake up anymore.

Very very difficult to use as a daily driver if the phone will not stay on. I had a similar gap last night in terms of not even knowing it's off.

And the thing is that it's apparently not charging either when it's in that state.
[Xperia Z5 Android Development] Sovjet:
The funny thing is that I didn't had it the whole day only when I woke up
[Xperia Z5 Android Development] paulle:
after a reboot I get the message :

Process 'system' dont react

wait ok

If I confirm with wait or ok seems to make no difference, I get my normal start-screen.
[Xperia Z5 Android Development] aerostride:
Hello Dev. First off props to you and the Z5 CM Dev team.

I'd like to report a potential bug on CM 13.0, latest build.

This morning i flashed CM without any problems, installed all of my apps. Then, i went for the clean method (wiping Userdata and all that).

Now, CM soft reboots cca 20 secs after soft boot. Restarting seems to delay it, about 40 secs. I don't know if this is only for me. I tried the following:

Going back to ROMAur Backup and flashing CM Then = Did not work

Applying a new user theme = Delayed soft boot

Wiping System, Data, Cache, Dalvik = Did not work

Reflashing Kernel = Did not work

The issue seems to happen every time the screen dims or changes brightness. I disabled Automatic Brightness, but that also did not work.

I don't know why this is happening, but i hope for a fast reply. Once again, thanks a lot for the ROM.

EDIT1: So i did a Factory reset, reflashed GApps, SunKernel and it seems to work without reboots. For now.

EDIT2: After half a day the reboots have returned. They seem to occur when you lock the phone.

EDIT3: After cca 15 reboots it suddendly works? What is this Cyan Magic?!
[Xperia Z5 Android Development] Sovjet:
My phone freezes suddenly and after that it doesnt boot in Cyanogenmod anymore just to TWRP warning no OS installed xD

[IMG="Ok thats not good"]http://puu.sh/olYD4/1c80be7b28.png[/IMG]
[Xperia Z5 Android Development] aerostride:
So, it started again. Sucks. I managed to grab a LogCat, so i am including it. Hope this leads to a somewhat solution or a BugFix. The issue seems to be somewhere in the Android Runtime (ART?). However, wiping ART in TWRP doesn't do anything.
[Xperia Z5 Android Development] CTXz:
live_display_hinted

Do you have live display enabled? I remember that CM changed something with it

Chances are the cm13 sources have it fixed by now
[Xperia Z5 Android Development] aerostride:
That might be the issue. I shall try this straight away. By the way, sometimes when i charge my phone (or leave it idle) It goes into some sort of ''deep sleep'' state, and only a force reboot can wake it up. Interestingly, the soft reboot loop seems to occur after this ''deep sleep force restart'' bug. Also, the phone does not seem to charge during this ''deep sleep'' mode.
[Xperia Z5 Android Development] paulle:
First thank you devs.

I'm now two days with your cm13 and it's fine with some glitches: the flicker thing at boot and sometimes (not always) at reboot the sony logo comes up, the LED goes red and the display black and when nothing.

In this case I can't restart the phone by pressing the power button, but I can restart it by presssing vol up and power button at the same time and it boots normal.
[Xperia Z5 Android Development] aerostride:
So, the issue just went away after some reboots. Live display is off, so that cannot be the issue.

Speaking of, This Picture shows the battery drain during the reboot phases. It plummets extremely fast, so that is another thing to look after. My battery didn't seem to charge for a while, now it does though. Keep up the good work, devs!
[Xperia Z5 Android Development] TonskuDaigle:
Seems quite the same with what I've been struggling with.

See this post
[Xperia Z5 Android Development] zacharias.maladroit:
New build:

CM-13.0

6.0.1_13.0-20160419-UNOFFICIAL-sumire

(hosted on Android File Host)

You have the choice to either flash via TWRP (cm-13.0-20160419-UNOFFICIAL-sumire.zip) or via fastboot (boot.img, system.img)

OTA

the OTA package is 406.6MB big - and currently uploading,

for those who are currently running CM13 - you can try it out once it has finished uploading.

Please place it in internal storage (or microSD) and flash it via TWRP

md5sum:

b386d39330dd4a9fb6e17e683ad11053 cm_sumire-ota-b829d6693a.zip

Custom Kernel for CM-13.0

Z5_Sunkernel_Permissive_vI.1_10_7_cm

Z5_Sunkernel_Permissive_vII.1_cm.zip (if you're having stability issues, "sleep of death", etc. - try this out)

Custom Kernel source:

Sun-Kernel_LA.BF64.1.2.2_rb4.7_02.04.2016_I.1_10_7_cm_dsds

Sun-Kernel_cm-13.0_II.1_plain

I haven't tested the build and/or kernel personally yet,

battery is currently close to empty ;)
[Xperia Z5 Android Development] Sovjet:
I will test when the battery is full again
[Xperia Z5 Android Development] RyTekk:
Is it difficult to make kernel for dsds? The only reason to me do UB is custom ROM but there're no ROM (exactly is kernel) for dsds.
[Xperia Z5 Android Development] zacharias.maladroit:
Thanks !

It's not only about the Kernel for DSDS only, it's about the modifications to the ROM, Kernel, etc. and make it aware of the additional SIM slot, antennae, etc.

Some additional findings on Dual SIM devices:

# Radio
SIM_COUNT := 2
TARGET_GLOBAL_CFLAGS += -DANDROID_MULTI_SIM
TARGET_GLOBAL_CPPFLAGS += -DANDROID_MULTI_SIM

or something similar with SIM_COUNT needs to be added to BoardConfig.mk for the device

Dual SIM support appears to have been merged t o CyanogenMod 13 just recently or is still in progress:

http://review.cyanogenmod.org/#/q/extphone+branch:cm-13.0

We might need RIL/rild (a dual sim variant) from stock (if that exists) to get it working

edit:

Got some changes ported now from Sony's Stock Kernel that might help with Sim-Card detection (but also might make microSD access impossible/broken - like in stock, if I understood that correctly)

Now the ROMs side needs to have all the bells and whistles and it should hopefully work ...
[Xperia Z5 Android Development] aerostride:
Alright, so i have tested the new build. About 3 1/2 hours now.

I installed with the following approach:

Dirtyflash over CM 13 (last build) => Bootloop

ART, System, Data Cache wipe, then CM + GApps + SunKernel => Working CM

As of right now, i have encountered no bugs! (Not counting glitches during bootup and camera issues.)

Also, apparently my phone does not go into ''deep sleep'' mode anymore! Props to the Dev!

So - Solid, stable, totally usable as a daily driver!

(By the way, how about you pre-bundle CameraNext mod as the Default Camera for CM? Since the CM Stock one doesn't work...)

EDIT1: cca 20 hours now. Everything is fine and smooth, but there are two things that should be pointed out:

1.) Phone is still going into some sort of deep sleep mode. I'll try and logcat later today. In the mornings, it occurs in about 45min intervals, but in the afternoon and evening, in very long intervals. (or it doesnt do that.)

2.) When you wake the phone up, you have to wait a while until you can swipe up and unlock it.