yashsingh1/xdaforums huggingface dataset:
[Xperia Z5 Android Development] zacharias.maladroit:
Updated first post + Changelog + install Guide,

looks like the USB-OTG changes need to find their way into the kernel still ...

Need

feedback

on

Bluetooth (does it disconnect ? with what devices ? gadgets ? headphones ? timeouts ?)

general feedback (stability, reboots, "sleep of death", ...)

Thanks !
[Xperia Z5 Android Development] aerostride:
FEEDBACK:

-Bluetooth: tried on a car radio (Citroën). Didn't experience any lag, stutter or bad sound quality. BT stayed stable for the entire trip. Well done!

-Stability: Sleep of death is there, yet LiveDisplay Bootloops sucessfully eliminated. ROM is very stable for its current state, smooth and definitely usable as a daily driver.

As mentioned before: is it possible to replace Camera with CameraNext? If so, that would be amazing.

-Root: SuperSU beta 2.71 works as it should, flash through TWRP on top of CM and you are good to go.

BUGS:

-''Sleep of death''

-When i wake my phone up, i have to wait cca 2 secs to be able to slide up and type in my passcode. It isn't ROM-Breaking, but still, thougt i'd report it.

-Horizontal glitches during Bootup and in TWRP. (Interestingly, the glitches don't seem to be so big and so common in TWRP.)
[Xperia Z5 Android Development] zacharias.maladroit:
How often did this issue, that the device can't be woken up occur so far (with this new build) ?

Please update to the newest Custom Kernel

Thanks ! :)
[Xperia Z5 Android Development] aerostride:
I can't really say. It seems like it can be prevented with powering the display of the phone on in about 45min intervals. The Issue occured about 10 times.

Will update to the new kernel ASAP.

EDIT1: Kernel is updated, no problems flashing. Will report back tommorow and tell you more. We shall see! :D
[Xperia Z5 Android Development] Sovjet:
I took my bluetooth controller out of the box again and it worked fine no weird disconnection errors or restarting bluetooth

I flashed the newest kernel it works stable for as far i can see i will test further but didnt come across unknown bug/problems yet

I tested my smartband also and then i have bluetooth share has stopped then bluetooth crashes after clicking oke
[Xperia Z5 Android Development] paulle:
What I did:

sudo fastboot flash boot boot.img

sudo fastboot flash system system.img

sudo fastboot flash recovery recovery.img

sudo fastboot flash userdata userdata.img

sudo fastboot reboot

and now my Z5 hangs at cyanogenmod logo (flickering too) and nothing more.

Even a reboot had the same result.

Any idea what's wrong?
[Xperia Z5 Android Development] aerostride:
Okay...do as follows please.

1.) Flash the recovery via fastboot

2.) Flash boot via fastboot

3.) Flash system via fastboot

4.) Flash userdata via fastboot

5.) Fastboot reboot and pull out cable quickly

6.) Go into TWRP

7.) Connect to PC

8.) Copy files over (yes, you can do that. USB > TWRP works)

9.) Wipe ART, System, Data, Cache

10.) Flash CM via TWRP

11.) Flash GApps via TWRP

12.) Flash SunKernel via TWRP

13.) Reboot

14.) Wait.
[Xperia Z5 Android Development] Wess.a:
Great job actually (Y) thank you. I have a question, the fingerprint sensor is working yet, right?
[Xperia Z5 Android Development] aerostride:
Fingerprint sensor is not working. There is support (and files), but as far as i know, SONY still has not released the Fingerprint scanner SDK and/or API (...or something else, not sure..)
[Xperia Z5 Android Development] celderic:
For some reason the stock cm kernel just heats up the phone a lot and just stays on the boot animation, I left it for about 45minutes but had to turn it off because I thought the heat might damage my phone[emoji14]

This was with the latest build, I also flashed userdata.

As this didn't work I then tried flashing the modified kernel you posted Sunkernel I think it was called? Can't remember the name but that did boot up within a few minutes, but some crazy screen glitching was happening. I rebooted a few times and it wouldn't stop, on the bottom half of the screen making it basically unusable.

The cm recovery works though :)
[Xperia Z5 Android Development] paulle:
Read it too late but thank you

Tried to reboot into twrp, but my twrp was gone cwm-recovery was there.

flashed twrp via fastboot and out of twrp I wiped ART, System, Data, Cache and installed ...sumire.zip, gapps and kernel. (before I took my sd-card out the phone for copying the necessary files to the sd-card).

First reboot was with a lot of error-messages.

Rebooted otherwise to twrp repeated wipe and installation and now the reboot is ok.
[Xperia Z5 Android Development] Sovjet:
This morning when i woke up the sleep of death occured again
[Xperia Z5 Android Development] CTXz:
[MENTION=3037651]zacharias.maladroit[/MENTION]

The Bugs could be caused by Double Tap To Wake or KeyLayout rights. Try to revert the dt2w commit in your kernel again?
[Xperia Z5 Android Development] zacharias.maladroit:
Thanks CTXz,

perhaps not dt2w but the changes to the touchpad driver (fixes) could be the reason,

however

as aerostride has mentioned in a different thread, this also occurs on Sony's Stock ROM - so the question is really what causes this,

which could set us on a long road of tracking down :(

The increased latency (delay) after long time of "sleep"/standby is a natural occurence,

there are possible mitigations available for that (cpu boost, touch boost, etc.) but that also drives battery consumption up

Thanks :)
[Xperia Z5 Android Development] zacharias.maladroit:
Alright,

please give the following new kernel (Z5_Sunkernel_Permissive_vII.1_cm.zip)

a good beating in combination with the latest CM build (2016/04/19).

This is currently a pretty plain build with NTFS rw support added on top + zram (swap) support,

compiled with UBERTC 5.3 toolchain (April build)

but that's how the refinement process goes:

several new kernel builds from scratch with a new base and more and more increased stability/reliability and features

Download choices

Attachment here,

Z5_Sunkernel_Permissive_vII.1_cm.zip (AndroidFileHost.com)

Kernel source

Sun-Kernel_cm-13.0_II.1_plain

Thanks
[Xperia Z5 Android Development] zacharias.maladroit:
Okay some findings on the "sleep of death" matter:

A Z5 Premium tester/user ( [MENTION=4860997]WannaB101[/MENTION] ) http://xdaforums.com/showpost.php?p=66499868&postcount=29

reported that in his case the issue did go away after having uninstalled several non-critical and/or battery saving apps [in CM13's case they're mostly superfluous and are actually counter-productive]

so:

most likely caused by apps which require root access or deep system access (battery saving, battery monitor)

Kernel Tweaking not immediately the cause (but oftentimes is/could be)

from build to build issues *can* occur (see LiveDisplay issue), but this time mostly ruled out

others

For those where the "sleep of death" occurs,

please either list ALL of your installed apps and your specific (invasive) modifications to the system (e.g. Kernel Adiutor)

or try to start with the ROM with a minimum number of apps that you really need and observe from there if it still occurs

Thank you :angel:
[Xperia Z5 Android Development] paulle:
Installed the new kernel, but I never had 'battery saving apps' installed (only greenify) or made modifications to the kernel. Maybe for this reason I never had the sleep of death issue. For now the new and the old kernel make no difference for me and battery consumption is moderate.
[Xperia Z5 Android Development] Sovjet:
The phone didnt have a sleep of death anymore wonderful :D

Maybe its me but i have the feeling the phone speakers are not loud since the new kernel/build also i noticed that when your calling you cant call via speaker.

Edit 1

I will add apps later this day first work
[Xperia Z5 Android Development] aerostride:
Well then, i get no more sleep of death after the last kernel update. I had some settings on Kernel Adiutor set as ''set-on-boot'', so i guess that was the issue.

One thing i'd like to report: I can't update SuperSU binaries, which is odd, but i'll just download the latest flashable when it needs binaries, so yeah. Dunno if that is the ROM, or just me.
[Xperia Z5 Android Development] Sony guy:
If you want to make rom for dual sim card I can test it :)

I have E6633
[Xperia Z5 Android Development] FakeSmile:
Do i have to format my sdcard for cm13? Cause i installed it and i can't use my 32gb sdcard if i don't format it?
[Xperia Z5 Android Development] zacharias.maladroit:
It depends on what kernel you use and what filesystem you have on the sdcard (exfat ?)

then use Z5_Sunkernel_Permissive_vI.1_10_7_cm (https://www.androidfilehost.com/?w=files&flid=54546)

that has exfat + ntfs support

the new one (Z5_Sunkernel_Permissive_vII.1_cm.zip) only has ntfs support for now, also no FauxSound, wakelock control, etc. etc. etc.

edit:

The new custom Kernel (Z5_Sunkernel_Permissive_vII.1_cm.zip)

however is recommended since that + limiting amount of apps that modify battery stats (and system internals) are known to not show the "sleep of death",

either during operation (long standby/doze) or during charging
[Xperia Z5 Android Development] Alessandro2553:
Hi, i have installed CM 13 yesterday, 19/04/2016 with last kernel. The phone is really fast. For the camera you hope to solve in time. I unplugged my z5 at 20:25 with 95 % , are now at 68 as I type and are the 8:49 . No screen of the death tonight. One problem that I think we can solve is that almost every 10-15 seconds feel a popping sound from speaker. I have only this app installed: Facebook, Whatsapp, Facebook Messenger, instagram, Whatsapp, Kernel Audiator (with this fix the lag on boot after bootanimation), Speed Test, retrica and root browser
[Xperia Z5 Android Development] Kishan_Diepa:
Hi,

I've been using the latest version of this rom with the latest recommended kernel for a few days now. Here is what I encountered so far:

Horizontal color lines and color glitches during bootup(know issue), but this also accurs occasinaly when turning the screen back on.

A few times the screen wouldn't turn back on and I had to reboot.

MHL output isn't working, I'm using this in my car.(hopefully this can be fixed cause I'm using it a lot).

Sometimes, after booting i'm getting multiple pop-ups saying "AudioFX has stopped working"

Sometimes, when bluetooth is turned on I get the error "Unfortunately, Bluetooth Shares has stopped".

Sometimes, when charging the phone. the charging stops for a few minutes and then continues(charging led turns off but the battery icon shows the charger is connected).

Besides the list above the rom is working perfectly! Great job!
[Xperia Z5 Android Development] paulle:
can confirm the points [MENTION=1677271]Kishan_Diepa[/MENTION] mentioned. Only the BT-issue i don't know because I don't use Bluetooth.
[Xperia Z5 Android Development] zacharias.maladroit:
Another weekend, another kernel,

please give the following new kernel ( Z5_Sunkernel_Permissive_vII.1_2_cm.zip )

a good testing in combination with the latest CM build (2016/04/19) [no change of ROM].

The base kernel was too plain and I needed FauxSound, exfat apparently also is sought after (access to microSD, backwards compatibility with Sony's Stock ROMs)

this one's also compiled with UBERTC 5.3 toolchain (April build)

Unless you run into "sleep of death" issues with this one, too (now mostly interfering apps are under suspicion)

Z5_Sunkernel_Permissive_vII.1_2_cm.zip is the recommended kernel for the latest CM build (2016/04/19)

Download choices

Attachment here,

Z5_Sunkernel_Permissive_vII.1_2_cm.zip (AndroidFileHost.com)

Kernel source

Sun-Kernel_cm-13.0_II.1_2

Thanks
[Xperia Z5 Android Development] Zaisesl:
I flash it yesterday, clean install. And this is my report

The glitches in the boot up, sometimes i have to turn off the screen and turn on cause the glitches.

The battery is amost the same with stock, i dont feel difference

Bluetooth is working fine, no problem with it

And sometimes the wifi disconnect when the screen is off

Well.. the camera is the worst thing in the rom, but is a known issue

For now very stable, i had one sleep of death at night.

Just flash the new kernel and will report if its the sleep of death fix or not.

Thanks for this awesome rom!
[Xperia Z5 Android Development] zacharias.maladroit:
AudioFX working now !

(Viper4Android fails installation with i/o error [with this] or has no effect, other Mods need testing ...)

Thanks to [MENTION=4798704]RyTekk[/MENTION] for pointing to

[Sound Mod ][Project DiVA][6.0 MM_Z5 series] KitaKami sound mod Prototype 01

That one appears to have corrected minor issues with AudioFX not having any effect :)

edit:

meh - now AudioFX only works on CyanogenMod's own Music app (haven't tried Google Play Music),

Power Amp, Jet Audio Plus, Neutron, MX Player are NOT affected :(

this is really unrealiable and unpredictable ! :silly:

I however believe that sound improved generally with the mod :good:
[Xperia Z5 Android Development] wickedmx:
I've installed this config as well and agree that it seems to sound much better.

However, I think the issue with some apps being unaffected by changes in MusicFX is something to do with audio integration on MM. Even on Sony MM ROM, some apps were unaffected by changes to Sony's implementation of EQ.

The common thing I have noticed between all apps I've tried that don't get affected by the system EQ is that they all include their own EQ. I think there must have been some change at the system level that protects against accidentally using multiple levels of sound processing. I've tested a few apps from the play store that don't include their own EQ, and all passed through the changes made in MusicFX or Sony's EQ

What I think should really be happening is that app developers should have an option in their settings where you can chose to use either the system effects or the ones included with the app.
[Xperia Z5 Android Development] a-st:
Hi,

I've a Z3+ Dual E6533 (which should be same platform and nearly same hardware as Z5) and would like to contribute if possible. Maybe we could get this to work on Z3 kitakami series too ;)

Thanks for this awesome work,

a-st
[Xperia Z5 Android Development] zacharias.maladroit:
Okay guys, dual sim test build is delayed,

upstream kernel repo (sonyxperiadev) doesn't make sense,

there are changes for dsds (dual sim) devices which seemingly appeared out of nowhere :confused:
[Xperia Z5 Android Development] zacharias.maladroit:
Yes,

from what I understood we might have a (new) common kernel and driver base anyway:

https://github.com/sonyxperiadev/kernel/commits/aosp/LA.BR.1.3.3_rb2.14

Z3+ (+/- Dual) is Codename IVY right ?

Confirmed - it's already there (in the current one):

defconfig: unify dual sim kernels

Thanks
[Xperia Z5 Android Development] zacharias.maladroit:
Hi Kishan_Diepa,

thanks for your report,

answers below/in your listing :)
[Xperia Z5 Android Development] paulle:
Here is what I observed:

I didn‘t observe any problems when charging.

AudioFX is glitchy

Horizontal color lines and color glitches during bootup(known issue)

Bluetooth don‘t know (because don‘t use it)

no ‚screen of death‘

Rebooting 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. This is happening

maybe at one of ten reboots.
[Xperia Z5 Android Development] calvinerico:
so the CM13 for Z5 Dual will be delayed until Middle may?
[Xperia Z5 Android Development] mickiem:
charging problem

i flash it lastweek,all functions goes well(ignore the known issues),but i return to stock for a charging problem,it auto disconected from powerbank,sometimes happen,i think it would be a kernel problem,but when a use the androplus's kernel v23 ,the system cant be boot.i'll try it when new version release,great job！
[Xperia Z5 Android Development] zacharias.maladroit:
We're constantly working on it (also the Xperia Z4/Z3+) - all of the devices are Kitakami,

the first build on the Z5 Premium showed an out of memory error on the medium, no further diagnostic output for the display output

and was stuck on the boot animation.

So not really much helpful information to know what went wrong.

I currently can't dedicate further resources to work on DSDS (dual sim) builds - so development is slow.

Also - you guys know the drill with CM-based ROMs or development in general

No ETA

Thank you mickiem for your report !

This also happens with the normal charging ?

Do you have any (special) kernel settings changed ?

Thanks

edit:

DSDS - dual sim testing

How many of you guys on the sumire (Z5) have dual sim devices ?

Do you have Linux as your Operating System ? or at least ADB ?

Can you get logcat or kernel messages output out of the phone ?

You know how to fastboot and quickly restore your phone ?

Have you flashed Marshmallow via FTF/XperiFirm before ?

If you do "me too" posts - please post them in the following thread: http://xdaforums.com/xperia-z5/general/feedback-xperia-z5-xperia-z4-dsds-dual-t3368204

(less clutter here)

and write what your experience with phone diagnosis is (the above five listed ones)

or PM me.

Thanks
[Xperia Z5 Android Development] mpro420:
i got same charging issue on RR Rom 5.6.7(z5 e6653), you just mention it, so i report in here.

its happened with a normal charging when phone screen is on or even its off, if charge notification sound is enable when charging, i will often heard the wire plug out notification, then maybe few seconds later the notification sound pop again(wire plug in?).

no battery saving or battery manage app are installed, sony boxed quick charger and sony boxed usb cable.

thanks all you guys great work!

mpro420

will add charging logcat file later

edit: here is my logcat file https://www.dropbox.com/s/4qjdo6bwo3rpc41/2016-05-01-23-19-45.txt?dl=0

charge from 50% to full take about one hour, please take a look, thank you[emoji1]
[Xperia Z5 Android Development] celderic:
Have you tested with the stock charger? 5v 1500ma

Or just with the quick charger?
[Xperia Z5 Android Development] mpro420:
ya, i tested with stock charger, output 5.0V==1800mA/ in normal mode, 9.0V==1700mA/12.0V==1275mA in quick charge mode.
[Xperia Z5 Android Development] celderic:
5v 1800?

The charger that came with mine is 1500

The model number is UCH20, or did you type it wrong by mistake :p

i haven't had any problems charging yet, but it's only been a few days of using it.
[Xperia Z5 Android Development] mpro420:
mine is UCH10, maybe UCH10 is for asia region, im from Taiwan, but its a stock boxed charger for sure.

ya i know, im not mean cm13 here may had some charge problem, just surf around and see OP mention the charge issue, and i fortunately had this charge issue on my z5 RR Rom alpha bulid, so i report it here, maybe i post to the wrong thread, my bad[emoji39]

edit: charging problem on RR Rom is fixed, dunno why but its not happened again ::good
[Xperia Z5 Android Development] paulle:
charging problem

My charger is UCH20 1500mA. I don't have the charging issue till now.
[Xperia Z5 Android Development] zacharias.maladroit:
DSDS - dual sim testing

6.0.1_13.0-20160505-UNOFFICIAL-sumire (folder)

Custom-Kernels_6.0.1_13.0-20160505-UNOFFICIAL-sumire (folder)

Changelog:

Feedback:

both SIMs being detected ?

calling, mobile, SIM functionality works ?

microSD access works ?

any error messages via dmesg or logcat ?

Goes into:

http://xdaforums.com/xperia-z5/general/feedback-xperia-z5-xperia-z4-dsds-dual-t3368204

Sources:

Sun-Kernel_cm-13.0_III.1_2_cm (Kernel Source)

Sony-Kitakami (Sony Kitakami, Z5 source)

CyanogenMod (ROM source)

Warning:

Please do a BACKUP of all your valuable data (+ ROM) before flashing to be able to easily flash back !

CC: [MENTION=6086096]bananajoe78[/MENTION] [MENTION=5661694]calvinerico[/MENTION] [MENTION=5973174]Sony guy[/MENTION] [MENTION=6262853]JerryLaiHMmmmmm[/MENTION]
[Xperia Z5 Android Development] Sony guy:
Testing ...

---------- Post added at 04:17 PM ---------- Previous post was at 03:56 PM ----------

can't flash

error shown in recovery

updater process ended with error 7
[Xperia Z5 Android Development] zacharias.maladroit:
Okay, I just flashed it a few minutes ago and it went through

You made sure that you run an up-to-date TWRP ?

[MENTION=5169444]AndroPlus[/MENTION] has the latest 3.0.2 builds on the server:

https://www.androidfilehost.com/?w=files&flid=52179

Did you format (Advanced Wipe) /system, /data, /cache before flashing the zip-file ?

Thanks
[Xperia Z5 Android Development] Sony guy:
yes I did , my recovery is twrp 3.0.2
[Xperia Z5 Android Development] zacharias.maladroit:
okay, investigating,

looks like the ROM needs to be tailored totally towards either single or DSDS (dual) SIM devices,

Thanks for your testing & patience

edit:

okay, we need a new TWRP for AOSP/CM,

hopefully not one for each model XD
[Xperia Z5 Android Development] Sony guy:
I delete thıs from META-INF

assert(getprop("ro.product.device") == "sumire" || getprop("ro.build.product") == "sumire" || abort("This package is for device: sumire; this device is " + getprop("ro.product.device") + "."););

ui_print("Target: Sony/cm_sumire/sumire:6.0.1/MOB30J/64fed540ba:userdebug/test-keys");

ifelse(is_mounted("/system"), unmount("/system"));

flash done

but no sim detect

and the screen shows lines :/
[Xperia Z5 Android Development] zacharias.maladroit:
Great work !

[MENTION=5973174]Sony guy[/MENTION]

you tried both kernels ?

One of them might break SIM and microSD (well, for me both do not work)

so I built two different ones

Also during bootup - that's normal

press power button and press again - after that the lines should be gone (and with it the lag)

Thanks
[Xperia Z5 Android Development] Sony guy:
the lines show in the UI too , I will try the other kernel and see

---------- Post added at 06:22 PM ---------- Previous post was at 06:08 PM ----------

tried second kernel , not worked

but there is dual sim option in settings

I dont know what is the problem :(
[Xperia Z5 Android Development] zacharias.maladroit:
Can you post a few lines of logcat ?

adb shell

dmesg

dmesg | grep -i error

dmesg | grep -i fail

dmesg | grep -i kill

logcat

logcat

and then see what comes up and post here (e.g. error messages)

?
[Xperia Z5 Android Development] Sony guy:
adb not work on my computer

I will write it by terminal emulator
[Xperia Z5 Android Development] Sony guy:
Done
[Xperia Z5 Android Development] zacharias.maladroit:
Changelog

2016/05/06
[LIST]
[*]Dual SIM support (ROM) [COLOR="Red"][B][WIP][/B][/COLOR]
[*]Dual SIM support (Kernel) [COLOR="Red"][B][WIP][/B][/COLOR]
[*]smoother brightness (automatic & manual), lower default and manual brightness
[*]weather provider support (CM)
[*]thermal manager improvements (CM)
[*]potential stability-fixes (CM)
[*]brightness dimming disabled (once temperature raises)
[*]VCM2 camera actuator (presumably working focus) == feature complete camera [LED torch still needs work]
[*]adb enabled from the start (diagnostics at this early ROM stage)
[*]upstream ROM + Kernel changes
[*]
[*] Sim-specific change: add DSDS (dual sim) detection script that starts second ril-daemon
[*]
[*] Custom Kernel changes:
[*] Intelliplug + Intellithermal by default [[B][COLOR="Red"]stability testing[/COLOR][/B]]
[*] added Quick Wakeup, PowerSuspend,
[*] added AdrenoIdler
[*] CPU and general Kernel optimized compiler flags
[*] re-enabled efficient WorkQueue [[B][COLOR="Red"]stability testing[/COLOR][/B]]
[*] re-enabled nop idle governor for CPUIDLE driver [[B][COLOR="Red"]stability testing[/COLOR][/B]]
[*]
[/LIST]

Kernel:

Z5_Sunkernel_Permissive_vIII.1_3_2_cm_06.05.16_intelli-def.zip

ROM:

cm-13.0-20160506-UNOFFICIAL-sumire.zip

Updated first few posts

DSDS (dual sim) support is currently broken

You're welcome to test the ROM and provide

logcat

dmesg output

in the following thread:

[Feedback] [CM13] [AOSP] Xperia Z5, Xperia Z4, DSDS (dual sim) feedback Thread

Thank you !