yashsingh1/xdaforums huggingface dataset:
[Sony Xperia M4 Aqua] EHSAN™:
WoW! Its Great

Your Tested it Bro? it information is Amazing...

i will Test it in E2333 And Thanks For Your Work, Keep it up :o
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Works well on my E2353. The brightness slider is the only problem I need to fix for this version (it's still funky, I actually made it more funky x-x. Adaptive brightness seems to counter the problem). If adaptive brightness isn't turned on, the brightness slider can be funky as said in the post.
[Sony Xperia M4 Aqua] EHSAN™:
Ok Bro i test it but cant see any changes in kernel, IO Scheduler is ROW And Read Ahead is 128!!

And Apdative Brights Work good, i think Kernel not Flashed on My Device :D

And For Fastboot need to press Volume + or UP bro
[Sony Xperia M4 Aqua] kpbs92:
Yeah except for the Adaptive brightness issue. it's good so far. good work man, If you will be updating this kernal we will test this. We should optimize all 8 cores in order to get most out of this device. Keep it up guys. :good::good::good::good::good:
[Sony Xperia M4 Aqua] EHSAN™:
This Working on E2312 And New Scheduler And Gernover added, But in E2333 nothing

----------------

Updated

i Download New Link And its Woking Perfectly in E2333, And All of Variants

thanks BRo :highfive:
[Sony Xperia M4 Aqua] m.Sony Xperia S:
E2312

Woooooow it`s great :eek:

After a long time finally for Android 6.0.1 kernel was built :cool:

The only problem now was seen is The brightness...

Hoping to fix it bro :fingers-crossed:
[Sony Xperia M4 Aqua] Mactavish:
Tnx bro

i hope u Add some Features like OTG and double tap2 wake up
[Sony Xperia M4 Aqua] mufhm:
this kernel can use at LP, or just MM?
[Sony Xperia M4 Aqua] EHSAN™:
No just MM.
[Sony Xperia M4 Aqua] lPatriciaNl:
Hello,

With the time will be there an option to flash kernel to MM with locked bootloader?

And if it will, is there any option to get root on MM for E2312 with this kernel in future?

Thank you.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Unfortunately, no... I really doubt any of this development projects would work on locked bootloader...

I heard there's an universal TA backup for the Xperia devices - with that you can relock your bootloader so your warranty might still be valid.

If your bootloader unlock says no, maybe try going into developer option and check OEM Unlocking (worth a shot, may not work but worth a shot - safe anyway in case you're wondering)

This kernel is prerooted already btw.
[Sony Xperia M4 Aqua] Natanovvy:
Fast charge not worki, i tested it on usb doctor, current is same like before >=1.4A.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Ah thanks for reporting, have you tested it without the adapter? I.e charge with PC
[Sony Xperia M4 Aqua] Natanovvy:
I tested it with adapter for Samsung s4 max 2A.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Try with PC (connect phone to PC for charging)
[Sony Xperia M4 Aqua] tomcis147:
Warranty is not void no matter what in europe
[Sony Xperia M4 Aqua] valyo_bg:
No, I don't have it, but you can use img file from topic for rooting of m4 or you can download v.3 of kernel from 1 page here.

I use now v.5 instead of v.5a of kernel (because of battery life in standby) and it work perfect, just try.
[Sony Xperia M4 Aqua] ictsz.roy:
I get bootloops everytime. I flashed it with twrp

Edit: Flashing kernel and then restoring old backup seems to work without bootloops. I have currently v5 installed. Should I try to flash v5a the same way or keep v5? what features are in this kernel can i enjoy ?
[Sony Xperia M4 Aqua] valyo_bg:
Benefits of new kernel are written in first page of this topic. Of course, it's better to try v.5a to see how will works with your model of M4.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Try vfat.

V5 seems to work for some users only due to some phones being unable to decompress the kernel. With v5a that's fixed
[Sony Xperia M4 Aqua] game.tikboy:
Im a heavy user so maybe 3 hrs is just okay for me. Im gonna try your advice cause overnight my phone went from 100%-86% with no running apps or whatsoever, it says that Android System used a large percentage while the device is at standby. Thank you for the advice and see what would be the result.
[Sony Xperia M4 Aqua] valyo_bg:
How to deactivate this module?
[Sony Xperia M4 Aqua] CactusPie:
It seems that with the newest version I can no longer adjust sound settings in the kernel adiutor, since the sound option no longer appears in the menu. Magisk's version of Liveboot doesn't seem to work anymore either. Both things worked fine in v4. Is it a regression or a deliberate change?

EDIT:

Just to confirm, I flashed v4 again and both Liveboot and sound settings work now.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
I'm not sure about Liveboot but Sound Control was removed in v5 and v5a, it's written in the changelog
[Sony Xperia M4 Aqua] game.tikboy:
I don't know if I'm doing it right, but i used terminal emulator to disable it.

su
echo '0' > /sys/module/lazyplug/parameters/lazyplug_active

Also if you want to automatically run it during boot, just use Script Manager and set it on boot.
[Sony Xperia M4 Aqua] CactusPie:
I see. Any reason why it was removed? I found that option very handy
[Sony Xperia M4 Aqua] ivankevlar@gmail.com:
Double Tap

This core can support double tap on the screen Unblocked?
[Sony Xperia M4 Aqua] ivankevlar@gmail.com:
Double Tap

Add please function Double Tap to unlock
[Sony Xperia M4 Aqua] AndyPhoenix9879:
I'm no professional, so it's very difficult for me to add this function
[Sony Xperia M4 Aqua] Andvelop:
This is only set brightness to 0% on screen off. And touble-tap to set brightness to normal.
[Sony Xperia M4 Aqua] Space_Dog:
works on E2306?
[Sony Xperia M4 Aqua] game.tikboy:
Sir, can you help me to make this kernel's SELinux to permissive. I have apps that require permissive. Of course I can set a script to change it to permissive during boot, but the thing is it takes almost a minute before it executes. During the time that it is still Enforcing I can't use my phone until it executes the script. So maybe can you help me sir to change it permanently. I'm super new to this so I dont have any idea what to do. thank you sir
[Sony Xperia M4 Aqua] CactusPie:
https://xdaforums.com/xposed/how-to-set-selinux-to-permissive-boot-t3034245
[Sony Xperia M4 Aqua] game.tikboy:
I think you misunderstood me there. I meant for to edit the kernel itself (recompiling) to permissive.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
I can try
[Sony Xperia M4 Aqua] Nario44:
E2303 Camera original video recording phone Restarting problem v5a fix v6?

:(
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Like immediately or just after a period of time? If a period of time, how long was it? I just tried video recording and it ran just fine...
[Sony Xperia M4 Aqua] Nario44:
no problem video recording successful my v5 uses... v5a unsuccessful :( problem. Get v6 usb otg data

/Charge cpu snapdron 615 max 1.70ghz? v6 fix? thanks :) model e2303 tr custom 26.3.A.1.33
[Sony Xperia M4 Aqua] valyo_bg:
I can confirm - no way to record video with kernel v5 also, phone do self reboot on every start of recording. With v3 of kernel, no problem, so I'm now revert to v3 of kernel.
[Sony Xperia M4 Aqua] CactusPie:
Oh, yeah. I can confirm that too. I use E2303.
[Sony Xperia M4 Aqua] Nario44:
your model phone ?... my phone 2303 v5 Video recording works no problem.... :confused: v5a start recording video self reboot... v5a 3 part apps Camera MX Open Camera etc etc Video recording works no problem. Sony camera problem v5a :( thanks
[Sony Xperia M4 Aqua] valyo_bg:
My phone is dualism E2363, latest firmware. Now with v3 of kernel video recording work fine. With v5a I has problem with battery live and this was a reason to use v5, so video recording was not tested with v5a.
[Sony Xperia M4 Aqua] valyo_bg:
It record 1 second, then freeze and then automatically reboot.
[Sony Xperia M4 Aqua] mufhm:
v5a at E2353 same problem with video recording. and after rebooting finish 1-2 minutes reboot again and again

i did clear cache and dalvink but still rebooting :(
[Sony Xperia M4 Aqua] valyo_bg:
Downgrade kernel to version 3 via TWRP, hopefully fix will arrive soon :) .
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Thank you all for reporting the video recording bug! V6 should be around the corner (hopefully) with the fix.
[Sony Xperia M4 Aqua] GeXeH:
Keep up the great work Andy, you're doing an amazing job!

I also have the video recording issue on my E2303 using v5a so have reverted to v5.
[Sony Xperia M4 Aqua] Madnightkid422:
I have a heating issue problem when i'm not even using and phone shutdowns with itself

I'm using v5 model e2333

Cpu:interactive

Gpu: Default

I/O:fiops

I turned into v3 and v5a but still the same problem i was on v3 and there wasn't any problem before i installed v5a please help !! And BTW thanks andy and ehsan for developing for us :)

Edit: i found that the heating issue because big core are always 1333mhz and higher while i'm not using the phone and governor is interactive
[Sony Xperia M4 Aqua] CactusPie:
Another problem that I found, is that if you even touch the vibration strength slider in kernel adiutor, vibrations stop working at all until the next reboot. Not sure if this is a problem with the kernel or with the adiutor though.
[Sony Xperia M4 Aqua] thgm21:
Yup, cant record video, got a restart with it.

And yet another restart while making a call...

AVOID THIS KERNEL!!!
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Pretty sure this happened on stock too

Good.
[Sony Xperia M4 Aqua] dixmer1998:
If the same happens to me too, the camera does not work correctly when recording video, after trying to record a video is constantly restarting

Enviado desde mi PexoRom V1.0 mediante Tapatalk
[Sony Xperia M4 Aqua] thgm21:
I'd live with camera bug but the phone is generally unstable and restarts constantly. AGAIN, DO NOT USE THIS KERNEL!
[Sony Xperia M4 Aqua] valyo_bg:
I use kernel version 5 for more than week and the only problem was rebooting during video recording. All other is OK, phone is very stable, apps run very quick and smoothly.

During this time I don't have any single reboot or instability.

For my point of view, kernel is perfect except for video recording bug.

So perhaps [MENTION=5455688]thgm21[/MENTION] , you may have other problem than kernel.
[Sony Xperia M4 Aqua] dixmer1998:
I use the overcloked version v5a

Enviado desde mi PexoRom V1.0 mediante Tapatalk

---------- Post added at 12:27 PM ---------- Previous post was at 12:24 PM ----------

I try version v5 only

Enviado desde mi PexoRom V1.0 mediante Tapatalk
[Sony Xperia M4 Aqua] mindblower01:
Generally unstable?Restart constantly? I never had this problems until try record a video so don`t make a confusion to this threat,Andy doing a great job,give him some time and to forgive understanding out,and you will wait until stable,better than original kernel :D
[Sony Xperia M4 Aqua] pythagoras1301:
Model 2312

I can't record video. And my phone immediately restart. But on stock kernel I haven't this problem.
[Sony Xperia M4 Aqua] valyo_bg:
Fix will come soon with new version of kernel, thanks to [MENTION=5689354]AndyPhoenix9879[/MENTION] good work ?.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
V6 Released... but...

V6 released and video recording is fixed (do confirm this with me ya)

However do also confirm with me if wifi is working or not.
[Sony Xperia M4 Aqua] CactusPie:
Can't seem to install it via TWRP

I'm running E2303
[Sony Xperia M4 Aqua] mindblower01:
Confirmed
[Sony Xperia M4 Aqua] valyo_bg:
Hi Andi,

I just clear cache and dalvik and install zip file. My phone boot normally and after a minute do self reboot. And this happen again and again. So before rebooting wlan work ok with new kernel, I can connect to my wireless network. Unfortunately then phone reboot again. Now I'm back to v3 of kernel to be able to use my phone, but seems that wlan.ko module is replaced from newer kernel and now my wlan is permanently disabled. How to bring back original wlan.ko module to be able to use wireless network? I can wait, because I have unlimited mobile data plan, but if somebody install v6 of kernel and have same behavior like me will lose permanently wireless network.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
For those reverting back, try this :

Place this in /system/libs/modules/

https://drive.google.com/file/d/0B4nj3MjAx2wIVTFOX0p6Vk9IaWs/view?usp=drivesdk

Set permission of that .ko to 0644 (rw r r)

I'll fix the .zip tomorrow - thanks for reporting! :)

[MENTION=6829223]valyo_bg[/MENTION] Let your phone cool down then try booting to v6
[Sony Xperia M4 Aqua] valyo_bg:
Cooling of phone not help, I wait 30 minutes with phone OFF. After starting of phone it boots successfully and then after 1 minute do self reboot and go in loop.

Now I'm with version 3 of kernel to be able to use phone and will try to replace received wlan.ko module to enable wireless card.

Off course I prefer to install successfully v6 of kernel, so if you have advice what to do will be very helpful :) .

---------- Post added at 16:33 ---------- Previous post was at 16:03 ----------

So, wlan.ko module is changed, phone is rebooted, but still no working wireless, it's stay disabled.
[Sony Xperia M4 Aqua] valyo_bg:
Renaming of downloaded module pronto_wlan.ko to wlan.ko did the trick - now my wireless work ok with v3 of kernel.
[Sony Xperia M4 Aqua] dixmer1998:
Is it stable or not?
[Sony Xperia M4 Aqua] AndyPhoenix9879:
This should fix the ERROR: 7 in TWRP

https://drive.google.com/file/d/0B4nj3MjAx2wIODYxcXlTemRHaEE/view?usp=sharing

Should be.
[Sony Xperia M4 Aqua] valyo_bg:
I try this kernel from link at the top, my phone was able to boot once successfully, then make photo (it was ok), then try to record video clip, but phone immediately reboot. On screen counter of video clip show 00:00, I hear sound for starting of recording and then phone reboot. After this my phone goes on infinitive boot - it start fine, I can see all icons, can go to the menu and after approximately 1 minute screen freeze and phone reboot. This happen every time.
[Sony Xperia M4 Aqua] GeXeH:
Unfortunately I'm in the same situation as valyo_bg with v6. Getting bootloops so have reverted to v5a and had to fix WiFi manually by using the file you uploaded and placing it in the modules folder.
[Sony Xperia M4 Aqua] kamilkos16:
I'm experiencing battery drain after installing v6 version.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
Very odd.. The infinite bootloop might be solved if you switch off the device and let it cool for awhile (I experienced this before with a test version where the video recording bug existed, in this version it's fixed - at least as tested on my E2353)

It may or may not be my kernel causing this - I'm getting at least 4.5hrs SOT with the Screen being the main battery drainer. Maybe you can give the phone to settle with the new kernel for awhile and see how it goes (reboot first then give the phone some few days to settle down with the new kernel)
[Sony Xperia M4 Aqua] valyo_bg:
My phone was cold, so perhaps temperature is not reason for boot loop. I test it with fully cold phone (sitting 30 minutes OFF on table) but boot loop still exist. Also recording of video I was able to test only once and phone goes frozen immediately after pressing a record button of camera. My phone is E2363 dualism. If anybody can confirm successful installation of kernel version 6 with phone E2363?

Is it possible to collect error log during rebooting some how, to help resolving reason a problem?
[Sony Xperia M4 Aqua] CactusPie:
Just flashed it, seems to work fine. Liveboot works now as well :) I will report if there are any battery issues.

Thanks for this awesome kernel!

PS. The android about dialog still says v5a. This is a non-issue for me, just letting you know.
[Sony Xperia M4 Aqua] dixmer1998:
Work perfectly e2306

Enviado desde mi PexoRom V1.0 mediante Tapatalk
[Sony Xperia M4 Aqua] CactusPie:
Okay, the battery usage is indeed increased. It seems to be caused by the new WiFi module. Even if the phone is not connected to any network.

http://i.imgur.com/VEa7aEX.png
[Sony Xperia M4 Aqua] valyo_bg:
This is bug with wireless is from Marshmallow, not from kernel I think. Stop wireless to be used from "locations" (choose gps only) and this will resolve battery drain.
[Sony Xperia M4 Aqua] CactusPie:
Oh I wouldn't be so sure about that. The battery definitely wasn't draining so fast with the previous version of the kernel. And if you look at my screenshot, the battery level started dropping fast after about 4pm, which is when I flashed v6 of this kernel. I haven't changed any settings today. I'll be reverting back to v5 until this issue is fixed. Or maybe I'll manage to find a better version of the WiFi module myself. I'll post it here if I do.

Edit: Nope. I've tried a few version of this module, none of them are compatible with this kernel. I'm reverting back to v5 which is the last stable one for me.
[Sony Xperia M4 Aqua] valyo_bg:
Could you try if recording of video is working with kernel v6?
[Sony Xperia M4 Aqua] dixmer1998:
Yes work perfectly

Enviado desde mi PexoRom V1.0 mediante Tapatalk

---------- Post added at 09:35 PM ---------- Previous post was at 09:34 PM ----------

Wifi work perfectly too

Enviado desde mi PexoRom V1.0 mediante Tapatalk
[Sony Xperia M4 Aqua] valyo_bg:
Unfortunately on my phone (E2363) recording of video with v6 of kernel still make boot loop ...
[Sony Xperia M4 Aqua] game.tikboy:
It is odd that you guys are having issues in video recording. Both v5 and v5a are working for me just okay. Especially we both have the same variant.
[Sony Xperia M4 Aqua] valyo_bg:
It's very strange, if we have same variant E2363 of phone, this mean that hardware also should be same? My phone work perfect with v5 except for video recording (boot loop). Now with v6 if boot successfully after installation everything is OK, but if I try video recording then phone goes to boot loop and there is no way to stop it - only changing of kernel to lower version helps. Even I uninstall Kernel Adiutor to assure that changing of governor of kernel is not reason for self rebooting, of course this not make any difference.

So maybe there is something with drivers/modules for camera or recording of video to SD card. How is configured your camera - to record on SD or to internal memory? Also my phone boot successfully every time even in boot loop, but minute after is freezing and do self reboot - It's very strange behaviour. Maybe something is load during this time that freeze the phone, but how to trace it?

If there is a way to collect log file from my phone to see where is the problem when rebooting occurs?
[Sony Xperia M4 Aqua] CactusPie:
Try this, not sure if it will display the logs you need though: https://play.google.com/store/apps/details?id=com.nolanlawson.logcat&hl=en
[Sony Xperia M4 Aqua] valyo_bg:
Thank you for program, that was exactly that I need.

It was very difficult to save log file because of limited time that I have after booting of v6 of kernel. Collected log is debug level ERRORs only, I see many errors and also errors with camera itself.

[MENTION=5689354]AndyPhoenix9879[/MENTION], could you check log file if it will help for resolving of problem?
[Sony Xperia M4 Aqua] GeXeH:
Recording video on v6 still crashes my E2303 so I'm wondering if this is something to do with the SD card as I have enabled adoptive storage using the shell trick.
[Sony Xperia M4 Aqua] mindblower01:
On my 2303 too, reverting to v5

E2303
[Sony Xperia M4 Aqua] onur916:
Hello, I am using Version v5a for a while and I really grateful for your effort, this is a masterpiece. I would like to hear an advice from the people who have used this kernel. What is the best option for battery saving without making the phone too laggy? :confused:
[Sony Xperia M4 Aqua] AndyPhoenix9879:
I did check, you seem to also have bluetooth errors (which is odd, as I've tested bluetooth and it works fine.). Can you try doing a clean install (backup first, then wipe data etc..)? I'm really clueless on why it's crashing on some devices... :confused: It however did crash for me when I upgraded the kernel version from 3.10.55 to 3.10.56

I have no idea. Do try disabling adoptive storage (backup your contents in your sdcard first) if it's convenient for you to do so.
[Sony Xperia M4 Aqua] valyo_bg:
Which data I should erase? My bluetooth work just fine, I use it very often, no problems at all.

It will be difficult for me to wipe all data, because I use my phone daily. Even if I make backup, after restoring back, old data will be applied, so maybe again problem will not be resolved. I did wipe data last month when install latest version of Android (1.33), when v5 of kernel was compiled. Before installing of v6 I do wipe cache and dalvik, hopefully this should be enough?

Interesting part is why if I don't use camera for video recording, kernel v6 works fine and then if I try only once to use video recording phones goes to infinitive boot loop? Then only downgrading of kernel (or maybe if I do again clearing of cache an dalvik, this is not tested?) helps to boot successfully.

I'm not familiar what exactly mean those camera errors inside attached log file? What is a difference between v3 and v5/6 of kernel regarding camera management/driver? Is it possible to compile v5 or v6 of kernel without camera bug - using kernel v3 cameras settings? It will work perfect. My phone is 16GB and I don't use adoptive storage - camera is recording directly on 32GB SD card.
[Sony Xperia M4 Aqua] AndyPhoenix9879:
The infinite boot loop I understand (I managed to exit it by leaving the phone off for like 30minutes. This was with .56 kernel version).

You see, the thing is I didn't even touch the camera drivers/modules. It stayed as it is. Something else might be conflicting.
[Sony Xperia M4 Aqua] valyo_bg:
I think there is a misunderstanding:

For kernel v6 - only if I try to record video clip my phone goes to boot loop and cooling down of phone not helps. On my previous posts if you remember I test it with phone OFF for 30 minutes and this not helps - after switching on phone again directly goes to boot loop. Only downgrading of kernel help to boot normally.

In my case, only starting to record video clip with camera make boot loop. If I don't use video clips phone work fine.

For kernel v5 - if I try video recording phone do reboot, but then start normally, no boot loop at all.

So this is a difference for kernels 5 and 6 for my phone, and this is a reason to suppose that problem is camera related from my point of view.
[Sony Xperia M4 Aqua] valyo_bg:
Some good news :)

I found that problem with video recording is only with original Sony Camera app. From Google market I install Camera MX and test video recording - everything is OK, video clip is recorded, phone work without problem :) .

So definitely I suppose that there is some incompatibilities between kernel v5/6 and original Sony camera app (at least my model E2363 of phone).

Could somebody test Camera MX app https://play.google.com/store/apps/details?id=com.magix.camera_mx&hl=bg and confirm that no boot loop occur when is used for video recording?

I'm testing kernel v6 now and Camera MX app and everything is OK :) .

Edit:

Also with kernel v5 if Camera MX app is used for video recording everything is OK - no self reboots.

I will stay with kernel v5 now, because with v6 ans v5a I see some instability - if for some reason (like testing original Sony camera app :) ) phone go to boot loop there is no way to stop it without downgrade to lower version of kernel (v3 or v5 work only). I don't know why this happen?

For me v3 and v5 of kernel are stable. I can boot successfully every time without any problems even if phone is hot - CPU show 79C for example but work perfect and of course no video recording bug if Camera MX is used instead of original Sony app. Probably other Camera software from Google market will work also, so somebody can test and report :) .

To avoid mistakes original Sony Camera app was disabled inside Settings->Apps. Is there is a way to assign hardware camera button of phone to start Camera MX when is pressed?