yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Compact Android Development] TECCC:
notification sound crappy first time

i got the same issue you see here http://forum.cyanogenmod.org/topic/105785-speaker-crackling-distortion-with-notification-sounds/

Does anyone else have this issue? It seems that during the first sound played after about 5 seconds or so of no sound, will crackle and sound distorted. This is especially noticeable with the default argon notification sound. If you are idle and getting a text notification every now and again, it's like every time the system "wakes up" whatever audio hardware, the first sound is distorted.

You can test by going to sounds/notifications and clicking on your preferred notification tone...first is nasty...following are fine. wait 5 seconds or so, hit it again, first sound is distorted again.

This is not an issue through any other audio playback that I can tell- headphones, bluetooth, etc. Just the speakers.

is it possible to fix this with a change in the kernel ?

best regards , sorry for bad english
[Xperia Z1 Compact Android Development] Myself5:
Version 9 inbound.

Hey guys,

[MENTION=4819888]oshmoun[/MENTION] and me just decided to release a new version. The Changelog might not look like it's much, but the changes change a lot, as in, they allow the compatibility with a lot more ROMs/devices. Since it is a initial bringup for the Z1 we also decided to bump the version number to V9.

Happy Flashing.

Version 9:

Initial Z1 bringup by [MENTION=4819888]oshmoun[/MENTION] and Langes

Kernel Zip is now based off AnyKernel2 by osm0sis, this allows the installation on every Rom using CM Kernel, even if it has a different Ramdisk than CM, like Mokee and Slim

As the question came up in the other threads:

V9 uses AnyKernel2. Instead of just replacing the boot.img, which includes the Ramdisk and is about 13MB, the AnyKernel2 script is capable of dumping the current boot.img from the boot partition, unpacks it replaces the kernel itself (zImage) and the dt.img followed by modifying the ramdisk (currently, it only replaces the fstab.qcom and the init.sh, for compatibility with F2FS and LZMA compressed recoverys) and after these changes are done it is repacking the boot.img and finally flashes it. This means V9 only includes the zImage, the dt.img, fstab.qcom and init.sh and the tools to pack/unpack the bootimage and modify the ramdisk, which are together about 6.9MB big. I hope this sheds some light on AnyKernel2. This BTW also means that the further kernel builds will always be around 7MB, so don't be scared ;)
[Xperia Z1 Compact Android Development] TroyBrown:
Hey guys,

I tried to install this kernel on my Z1C and did so with the V9 Kernel L version.

However, now I'm stuck at the logo screen and don't get any further.

Is this a known issue? Anyone got an idea how to fix this?

Thanks!
[Xperia Z1 Compact Android Development] :
What ROM are you using?
[Xperia Z1 Compact Android Development] TroyBrown:
Well that's it I think. I'm on CM 11, not CM 12.1. :rolleyes:

Wouldn't expect the Kernel to work on CM 11, right?
[Xperia Z1 Compact Android Development] :
Read the thread title

You have your answer ;)
[Xperia Z1 Compact Android Development] TroyBrown:
Well, that's crap obviously. :mad:

Could anyone please give me any hints how to recover my Z1C?

I can't access CWM, however Fastboot appears to work - pressing volume up before connecting it to my Windows laptop sees the LED flash up in blue.

Haven't got any further yet and would really appreciate any help. :)

I have a backup of my running CM 11, however as I cannot access CWM I also can't flash it.
[Xperia Z1 Compact Android Development] kxf41:
I have the same issue first notification sounds bad subsequent notifications sound fine.

Also I have another sound issue, I'm using kernel adiutor to increase the speaker gain slightly and I have set at boot checked but it doesn't stay increased, it's reseting almost immediately back to stock sound level but in the kernel adiutor app it's gone all the way down to -30. The sound won't change until u get back to 0 then the sound goes up again as normal, I set to +4 check again 2 minutes later and it's back at -30 but with normal stock sound.

Very trivial issues I know but frustrating none the less, if you are able to investigate I would be most grateful
[Xperia Z1 Compact Android Development] :
Extract boot.img from the cm11 zip, then flash it in fastboot. Problem solved
[Xperia Z1 Compact Android Development] Bartekreaper:
o.O new version not work on RR, i flashed, booted and kernel is still from Resurection Remix o.O
[Xperia Z1 Compact Android Development] :
What recovery are you using? I'm assuming it's cm recovery? ;)
[Xperia Z1 Compact Android Development] Bartekreaper:
No, fota TWRP 2.8.6.0
[Xperia Z1 Compact Android Development] :
Then please upload the recovery log after trying to flash the kernel, you'll find that under /tmp/recovery.log
[Xperia Z1 Compact Android Development] Bartekreaper:
https://www.dropbox.com/s/zamha56b7ez28dv/recovery.log?dl=0 There is a log
[Xperia Z1 Compact Android Development] Myself5:
"Installing '/external_sd/Z1C CUSTOMY/M5 KERNEL/M5-Kernel-V9.0-Permissive-L-amami.zip'... Checking for MD5 file..."

later on however it unzips a file called Z1C[.zip].

I'd therefore assume that it fails to unpack a the zip for the reason that the folder it is inside contains a space. Can you please try moving the file (or renaming the folder)?
[Xperia Z1 Compact Android Development] Bartekreaper:
I move kernel to sdcard/m5 kernel/, flash kernel take log

and the same kernel to sdcard/ flash kernel and take log. Now waiting for my phone boot :P and send the logs.

Edit: https://www.dropbox.com/s/9izzvo6behkmmxx/M5 KERNELrecovery.log?dl=0 from m5 kernel folder

https://www.dropbox.com/s/sytdhk57dk6ma9l/SDCARDrecovery.log?dl=0 from sdcard
[Xperia Z1 Compact Android Development] Myself5:
All right, seems like the second one now flashed flawless for you, didn't it? I guess I already spotted the mistake, it's most likely some missing " in the installer script. Let's see when I'll get some time.
[Xperia Z1 Compact Android Development] mateoo337:
M5 kernel gives better performance and battery life than offical cm kernel?
[Xperia Z1 Compact Android Development] :
Sorry, but no one can answer that question for you. It all depends on your usage, and in this case, what kernel parameters/governors you use.

Try it and see ;)
[Xperia Z1 Compact Android Development] mateoo337:
Didn't boot up with official cm
[Xperia Z1 Compact Android Development] :
Please tell me you mean it didn't boot up with cm11 o.O
[Xperia Z1 Compact Android Development] mateoo337:
I flashed the latest kernel with fastboot. But i will try again tomorrow on RR
[Xperia Z1 Compact Android Development] Bartekreaper:
:confused: but how you flashed kernel in fastboot if there is no img inside zip ?

This kernel is just flashable zip.
[Xperia Z1 Compact Android Development] mateoo337:
I flashed a lot of kernel yesterday, cm kernel was with fastboot maybe. I am going to try it with rr

now its working, the cm recovery caused the problem.
[Xperia Z1 Compact Android Development] lemon567:
Hi guys just asking to make sure if im the only one having this issue. Currently running cm12.1 nightly of 2nd of august whenever i flash m5 kernel v9 and the system boots up it still says that the default cm kernel is installed however when i get back to v8 with the same nightly it says m5 is installed (using twrp2.8.6.0 and latest kernel adiutor) great kernel love it keep up the good work, and thank you.
[Xperia Z1 Compact Android Development] :
please upload the recovery.log of twrp after flashing the V9 zip :)
[Xperia Z1 Compact Android Development] lemon567:
After the fourth try it works flawlessly i dont know why or how i effed it up the last three times but now it works like a charm. Thank you for taking the time just in case i uploaded the recovery file if it is of any use.
[Xperia Z1 Compact Android Development] TECCC:
OS : CM12.1 , with m5 Kernel V9 everything works find, root and Adb debugging enabled.

when i install xzDualrecovery with installer (option 2: installed OS with Superuser) all works and i got the recovery.

But back in the OS , Superuser(root) does not respond anymore, Switching Off/On in developer Options does not fix it.

Could anyone help ?

before V9 of M5 Kernel it worked fine

best regards
[Xperia Z1 Compact Android Development] [NUT]:
:eek:
[Xperia Z1 Compact Android Development] TECCC:
ahh my fault..

so i have to use the kernel builder and m5 kernel v8 img and include xzdualrecovery , right ?

best regards and thanks for help
[Xperia Z1 Compact Android Development] Den4iksome:
Hi Everybody,

I have a question. I have an Xperia Z1C and I used latest nightly of CM 12.1. I had problems with the horizontal stripes, which occured, and read that flashing this M5 Kernel should solve this problem.

Before I installed CM 12.1 I had unlocked bootloader.

1. I donwloaded "M5-Kernel-V9.0-L-amami.zip" and put it to my sdcard.

2. Powered off my phone.

3. Booted into recovery.

4. Chose wipe data/factory reset

5. Choose Install Zip from sd card.

6. Browsed to the ZIP "M5-Kernel-V9.0-L-amami.zip".

7. Waited till it installed and rebooted.

Now I am in a bootloop. I only see the Sony sign bootlooping and can't get to Recovery.

Can someone give me a hint what to do?
[Xperia Z1 Compact Android Development] Foggcas:
I have exactly the same problem as the post above :(
[Xperia Z1 Compact Android Development] :
yes, I just tested :D

are you both using cm recovery? if yes, then please switch to twrp, as cm recovery is not supported

if you're using twrp already, and it still causes the issue, please try to provide recovery.log.

Thanks :D

EDIT: and to answer the question, yes, M5 solves the issue with horizontal stripes ;)
[Xperia Z1 Compact Android Development] Ravermeister:
and how can I flash it using fastboot or adb (after boot into CWM backup)?

or do I

must

use twrp?

in the former build V8.0 there was a simple boot.img inside the zip which could be flashed via

fastboot flash boot boot.img
[Xperia Z1 Compact Android Development] :
to make the kernel more flexible, we decided to not include a boot.img, since that would overwrite the current ramdisk, which might contain stuff related to the ROM.

Instead, we now use anykernel2, which dynamically overwrites only the required parts when flashing, and also patches the ramdisk in a way that only adds what the kernel needs, and doesn't remove anything the ROM needs
[Xperia Z1 Compact Android Development] Den4iksome:
Thanks for the fast response. I never used twrp, and I don't think it's on my phone. In the past I only installed adb and used fastboot command. Are there any tips how to solve the problem?
[Xperia Z1 Compact Android Development] Ravermeister:
okay but is there a way to flash it WITHOUT using twrp?

maybe with adb?

or can anyone explain HOW to switch from CM recovery to TWRP?
[Xperia Z1 Compact Android Development] funiewski:
Use latest fota twrp for z1c (see in Sony cross development section there is a thread about twrp),than use fastboot: fastboot flash recovery z1ctwrp, done
[Xperia Z1 Compact Android Development] Ravermeister:
Thanks but I could not get the TWRP version running you mentioned, I tested this version: http://xdaforums.com/crossdevice-dev/sony/twrp-v2-8-6-0-f2fs-z1-z1c-z2-z3-z3c-t3098573

but no SD Card access no mount points etc, in short TWRP was starting, but not usable at all.

So I checked TWRP from Philz dualrecovery, see this thread: http://xdaforums.com/showthread.php?t=2261606

I have build my own boot.img

from here: http://nut.xperia-files.com/?a=xzdr

after downloading the Zip I could extract the boo.img and flash it via

fastboot flash boot boot.img

there was mentioned that the created ZIP file should be installed via recovery too because of NDRUtils.apk

after that TWRP was working correct and I could flash the new M5 V9 Kernel

hope it helps and

Kind regards

Ravermeister
[Xperia Z1 Compact Android Development] TECCC:
but then you loose recovery ravenmeister ;)
[Xperia Z1 Compact Android Development] Ravermeister:
any advice how to flash without using TWRP is highly appreciated ;)
[Xperia Z1 Compact Android Development] TECCC:
i startet from cm11 M12 (cwm 6.0.5.0 recovery), flashed cm12.1 nightly, gapps and then the created XZDualrecovery CM12.1 M5 Kernel v8.zip wich was created on Nuts Homepage.

done.

when you update cm12.1 nightly via recovery you´ve to install the XZDualrecovery CM12.1 M5 Kernel v8.zip every time to keep your recovery
[Xperia Z1 Compact Android Development] Ravermeister:
...for the M5 V8 this was even not neccesary, there is already a boot.img file inside the Zip of the M5V8 version.

the TWRM is

only

required Since Version

V9

so again, any advice how to install the

new M5V9

without changing the default recovery version from 12.1?
[Xperia Z1 Compact Android Development] Bartekreaper:
I think you can install it in Terminal Emulator by launching anykernel.sh :P the same like it possible to install dualrecovery on phone by launching .sh :D from dualrecovery.zip
[Xperia Z1 Compact Android Development] Ravermeister:
But I guess I have to remount the root partition with rw before?

Gesendet von meinem Xperia Z1 Compact mit Tapatalk
[Xperia Z1 Compact Android Development] lemon567:
I thought the issue about installing v9 of the m5 kernel on the latest cm 12.1 nightly had been resolved for me. Well it turns out im still running v8 instead of v9 after installing v9 over and over im still stuck with v8, i dont know what to do or what im doing wrong. Ive attached the recovery log. Any help is appreciated thanks in advance guys.
[Xperia Z1 Compact Android Development] Myself5:
Why you no install TWRP/CWM/PhilZ? CM Recovery is the worst recovery you could get, there is absolutely no reason into keeping it.

V9 zips have issues with getting installed when they are located in folders which contain spaces. I fixed that for the following versions already. Just move the zip to a location whichs folder structure does not contain spaces (e.g. the root of your SD card) and try again.
[Xperia Z1 Compact Android Development] Den4iksome:
Myself5, can you help me?

I used the latest nightly of CM 12.1 and installed the V9 via Recovery. After I installed it, my phone is now still in a bootloop.:(

I cannot access Recovery, but I am able to get into ADB fastboot (blue LED).

Please help me to get out of the bootloop. I am new to this and need it explained step by step...I am also willing to give up on V9...I just don't want to brick my phone
[Xperia Z1 Compact Android Development] lemon567:
Thanks a bunch it worked :good:
[Xperia Z1 Compact Android Development] Ravermeister:
you are right, I did not recognized that. hmm now I don't know how to reflash TWRP without loosing the new kernel....

I'm ok with TWRP but I like to keep it after the Bootloader ZIP flash...

a small guide would be nice :)

Kind regards

raver
[Xperia Z1 Compact Android Development] rzlatic:
- get latest twrp for amami here

http://xdaforums.com/crossdevice-dev/sony/twrp-v2-8-6-0-f2fs-z1-z1c-z2-z3-z3c-t3098573

- flash it using fastboot (command "fastboot flash recovery filename.img")

- boot into recovery and flash M5 v9 from there.
[Xperia Z1 Compact Android Development] TECCC:
sorry for request , is it possible to integrate xzdualrecovery for v10 ? would be amazing to got best kernel for cm12.1 and included recovery.

best regards and sorry for request
[Xperia Z1 Compact Android Development] funiewski:
I don't understand what's the point? If you flash another kernel or rom the recovery is gone. Flash fota recovery instead, either multi rom or standard. It persist different rom and kernel flashing. It's possible to use with some stock roms too.
[Xperia Z1 Compact Android Development] Den4iksome:
Thanks for this guide. I flashed TWRPv2.8.6.0_f2fs_Z1c.img via ADB Fastboot, but cannot start TWRP :(

This is my log:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Windows\system32>cd C:\ADB\

C:\ADB>fastboot devices
CB5A1XR8U0 fastboot

C:\ADB>fastboot flash recovery TWRPv2.8.6.0_f2fs_Z1c.img
sending 'recovery' (11836 KB)...
OKAY [ 0.410s]
writing 'recovery'...
OKAY [ 0.788s]
finished. total time: 1.201s

C:\ADB>

I am in a bootloop because of flashing M5 Kernel via CM Recovery and can't activate USB debugging, is this necessary to flash TWRP?
[Xperia Z1 Compact Android Development] TECCC:
naah i got some errors with twrp in past (no mountin , no internal memory or sd card, no os installed) and i didnt find a solution for that.

so i used philz touch recovery in xzdual.

but till M5 v9 there is no boot.img wich i could use in nuts kernel builder.

maybe i stay on v8 then
[Xperia Z1 Compact Android Development] Ravermeister:
The fota twrp was buggy for me too, but in xzdual it worked, but now I'm without recovery too

Gesendet von meinem Xperia Z1 Compact mit Tapatalk
[Xperia Z1 Compact Android Development] Myself5:
I prefer FOTA Recovery as it survives Rom flashes and Kernel changes. Also I don't see a use in having 3 different recoverys at the same time. So, sorry but no.
[Xperia Z1 Compact Android Development] funiewski:
You have tested multirom twrp for z1c too?
[Xperia Z1 Compact Android Development] rzlatic:
omg, thread about kernel turned into wishlist for all kinds of recoveries instead of thread about kernel itself :D
[Xperia Z1 Compact Android Development] Ravermeister:
thats not true!

my Z1C has the Bug with the horizontal lines

thatswhy I'm on the M5 Kernel.

I guess myself5 has not tested the FOTA twrp on Z1C

because for me and I guess for TECC the FOTA twrp was not usable

(no mounts, etc)

and

That

was the reason why I've used xz dual recovery.

in short, I simply want to use the new Kernel Version!

but the recovery version which is mentioned by myself5 is simply

not usable on my Z1C (I had the M5 V8 Kernel running before and flashed FOTA twrp with fastboot as mentioned before.)

so has anybody got the FOTA twrp correctly set up on a Xperia Z1 Compact?

*update:

the FOTA twrp version which I had flashed was 2.8.7.0 (28. June)

now I will try version 2.8.6.0 (4. May)

--> the previous version 2.8.6.0 works (but it seems that I cannot enter recovery via volume buttons, so not really usable as a recovery as I need my system to boot it....)

but I could flash the new M5 Kernel with it...
[Xperia Z1 Compact Android Development] :
I just personally tested the FOTA TWRP 2.8.6 mentioned by [MENTION=4699153]rzlatic[/MENTION]

here it is

if it's not working for you for some reason, please post a recovery.log (if you already did, just point me at it pls)
[Xperia Z1 Compact Android Development] Ravermeister:
sorry I have not attached a log file yet I'm now on 2.8.6 which works.

but can you access the recovery via the volume buttons?

have you flashed the recovery with the boot.img from CM12.1 or the previous M5V8?

your link again points to version 2.8.7.0!

here is the correct link: https://drive.google.com/folderview...2S0huMk1OYlhPWU1wcFlKalpXSW9rRHVMX3lRckk#list
[Xperia Z1 Compact Android Development] :
I can access the 2.8.6 fota recovery recovery with volume buttons. I just tested multiple times. I flashed the recovery using fastboot from PC, so it doesn't matter what kernel i was using.
[Xperia Z1 Compact Android Development] Ravermeister:
yes I did a complete reset:

note I have Xperia Z1 Compact

1. installed latest CM12.1 nightlies (black stripes appeared again...)

http://download.cyanogenmod.org/get/jenkins/120381/cm-12.1-20150805-NIGHTLY-amami.zip

2. flashed twrp 2.8.6.0

https://drive.google.com/folderview...2S0huMk1OYlhPWU1wcFlKalpXSW9rRHVMX3lRckk#list

fastboot flash recovery TWRPv2.8.6.0_f2fs_Z1c.img

3. install M5V9 via twrp install zip

now I can access twrp via the volume buttons and recovery log is clean :)

have fun :)

[MENTION=2052333]tecc[/MENTION]

maybe you can post your recovery.log from FOTA twrp 2.8.7.0 in the correct Thread to investigate.
[Xperia Z1 Compact Android Development] TECCC:
yeah tried yesterday , 2.8.7.0 i got error no os installed and no mounting

2.8.6.0 worked, but i already switched back to cm11 M12 , because of this anoying audio bug on cm12.1, some sound for example whatsapp are disorted and crackeling when thy played the first time.

if the audio is played the 2nd time right after the first it is clear.

dont know to fix this :( so i am waiting :/ and will use this excellent kernel later :*
[Xperia Z1 Compact Android Development] Ravermeister:
I finally got 2.8.7.0 running, the solution:

The Google mirror has a broken img file for amami. use the Mega upload url (file is z1cfotatwrpv4.img)

https://mega.co.nz/#F!fh5hhL5L!xso7GESQ9AR556_nswFfTw
[Xperia Z1 Compact Android Development] TECCC:
yeah already got it, twrp is working fine now.

but the problem with cut off notification sounds 0,25sec when they played the first time, still exists for me, found a fix by change cpu usage but this causes more battery drain, so i will stay on cm11 m12 until its fixed or maybe some of you can help me ^^
[Xperia Z1 Compact Android Development] iNDEX3:
Hi!

This kernel are incompatible with nightly CM12.1 for amami after august 22.

I can not select the menu item "Screen settings". Phone reboots when attempting to make or answer a call.
[Xperia Z1 Compact Android Development] :
Which version do you have flashed? Are you running xposed? Could you provide a last_kmsg from after the device reboots?
[Xperia Z1 Compact Android Development] GNUDroid:
Hi all. I'm new to the Z1C (S2 --> S4mini --> last week Z1C).

I'm started with using RR ROm on my new device. Since I'm really missing UV support (RR uses slim kernel), I tried last week the M5. Had a bootloop (solved by flashing boot.img + recovery.img + setting up new).

Therefore I have a question: Would it not be nice for all, if we report the combinations of ROMs and this kernel which work and not work? A short post like "CM12.1 build-date + kernel Vxy --> works".

Can somebody with following ROMs: CM12.1 / RR / Slim tell me a working combination for the M5-Kernel-V9.9.8-TEST-L-amami.zip?

Thanks to all!
[Xperia Z1 Compact Android Development] Myself5:
Actually that is what I want users to do when they report a bug, but literally nobody does. Fortually I can tell you, 9.9.8 is not working with any rom at all, it is broken [emoji14] it's the first version after we merged in quite a lot of cm upstream and that was screwing up some changes to the kernel, which needed to be fixed first. I know, it's kinda my fault for not deleting it yet, but I never said Test versions are supposed to work [emoji14] Sorry for it tho ;)
[Xperia Z1 Compact Android Development] GNUDroid:
I tried again (hesitated because at work and setting up new takes time)... Horray: The following combination now worked for me: RR (v5.5.4 - Amami [08/18] + M5-Kernel-V9.0-L-amami.

Yes, great! Back again to find my own balance between speed and battery life. So for the combination of RR and your kernel, since now you will have an testing person, who will report for every build!

Thank you so much, I'm highly impressed how many gov's and I/O's you implemented! Never had this huge combination, also not at the legendary dorimanx kernel @ s2!
[Xperia Z1 Compact Android Development] iNDEX3:
M5-Kernel-V9.0-L-amami.zip

I do not use xposed.
[Xperia Z1 Compact Android Development] Myself5:
Most these Governers are newer than Dorimanx kernel and mostly not haxynos compatible ;)

Your problems sound very much related to the rom, not the kernel. Are you shure everything works flawless if you use your Roms (which one actually?) default Kernel?
[Xperia Z1 Compact Android Development] iNDEX3:
CM team made a lot of changes in the latest version. Everything works perfectly. But the default kernel on the phone black lines, so I can not use it.
[Xperia Z1 Compact Android Development] Bartekreaper:
Resurection Remix 5.5.3 :V + M5 Kernel v9.0 permissive>>> works :P (im using Xposed)

[MENTION=3816568]Myself5[/MENTION] v9.9.8 not work ? BTW is there any changelog about test versions ?