[Kernel][MM] Nautilus Kernel (26.3.A.1.33)

zacharias.maladroit

Recognized Developer
Nautilus Kernel for Xperia M4 Aqua​

Disclaimer:
By flashing this kernel you acknowledge that the developer is NOT liable for any loss of data, does NOT guarantee any fitness of functionality or non-harm to your phone. You are advised to backup the kernel and ROM before flashing any release which will overwrite the existing wlan module and will lead to broken WiFi when switching to e.g. Destiny kernel

Notes:
(thanks to dani020110 for idea of the thread/post structure and the kernel update script)

  • [*]THIS WILL WORK ONLY ON UNLOCKED BOOTLOADERS
  • 26.3.A.1.33 Marshmallow only

Features:
  • reduction of external kernel modules for less attack surface and better stability and protection
  • lots of power-saving improvements/reductions in idle
  • separate built WiFi module
  • reduction of wakelock of WiFi driver
  • ARP spoofing protection
  • fuse-fixes
  • in-built exfat driver (allows file-sizes on microSD of 2+ GB, better stability)
  • mm: stability improvements
  • several speedups in the core of the kernel
  • writeback speedups / improvements
  • attempts to pass SafetyNet
  • zram with lz4 + z3fold allocator (NO internal memory fragmentation !) [Port from Xperia Z5]
  • battery reduction in usage of Google Chrome & Chrome-based browsers (webkit / webview ?)
  • in-built core_ctl driver (better reliability and stability)
  • several improvements to the sound driver
  • and other changes too small to mention separately
  • optimized kernel config to speed up booting and slim down bloat
  • 4.9 Linaro Toolchain
  • optimized flags to allow further optimizations and better stability


Installation
M4 Aqua - Booting into fastboot mode

Getting into Fastboot - From the system (Android):

  • adb reboot bootloader


Getting into Fastboot - Alternatively (while the phone is off):
  • Shutdown down the phone (power it off):
  • Connect the USB cable to your phone (your phone only !)
  • Press the Volume DOWN button, keep it pressed ...
  • Connect the other end of the USB cable to your PC/Mac, etc. and release the Volume DOWN button
  • That should get you into fastboot mode (led is blue)
  • Additionally you can check from your PC/Mac/Linux system if the device is there: fastboot devices

Finally - Flashing the Kernel (from Fastboot)
(WiFi might NOT work ! - thus flashing from TWRP/recovery is most times better (copying updated WiFi module))
  • fastboot flash boot boot.img
  • fastboot reboot


Flashing the Kernel via TWRP/Recovery
Booting into TWRP

  • Press the Volume DOWN button, keep it pressed
  • While pressing the Volume DOWN button also press the Power Button
  • As soon as the screen turns on and you see the Sony logo ("splash"), release the Power Button - now ONLY keeping the Volume DOWN button pressed
  • When you see the TWRP Logo ("splash" / screen), release the Volume DOWN button
  • Once you are IN TWRP, the select the folder where the Kernel zip-file was copied to and flash ("install") it

(you must have flashed TWRP via fastboot flash recovery TWRP.img before to boot into recovery :cowboy: !)

Download:
https://drive.google.com/open?id=0BykGGWB96CBQUFhXbG5sRUZMMWM


Thanks, acknowledgments:
  • dani020110
  • AndyPhoenix9879
  • and all the other kernel devs on XDA

XDA:DevDB Information
Nautilus-Kernel for Xperia M4 Aqua, Kernel for the Sony Xperia M4 Aqua

Contributors
zacharias.maladroit, dani020110, AndyPhoenix9879
Source Code: https://github.com/zachariasmaladroit/android_kernel_sony_msm8994_kitakami_r2/commits/Nautilus_I.1

Kernel Special Features:

Version Information
Status: Testing

Created 2017-08-30
Last Updated 2017-08-30
 
Last edited:

LilBlinx

Recognized Contributor
Jun 17, 2012
2,029
5,569
203
Skopje
First of all, thank you so much for diving into the development of this device. I was eager to get something like this from you and I honored to have it now and here.

At first, the kernel seems stable. There was quite a big lag at the first start up and it took a while for the WiFi to turn on but it's fine. I can't see any hotplug included in the kernel and SuperSU binaries are outdated. It seems like there isn't also undervolt and underclock included. The GPU idles at 400MHz which isn't quite power efficient. Overall it's good for a start. I also have a question which is for the touchscreen drivers for this phone. No matter the kernel, stock or custom, there are problems with the random shutting down of the touchscreen or going nuts (scrolling and pressing by itself randomly). I'm looking that the logs and it seems like that the cyttsp5 driver isn't functioning properly on the E2303 variant. I've attached dmesg and klog so you can take a look at it. Also, I'm not the only one with this problem, there are much more users in Q&A and on random forums and YouTube.

dmseg

log
 
  • Like
Reactions: zacharias.maladroit

cirnocirno

Senior Member
Dec 1, 2010
512
39
0
How does it compare to other kernels?
Does this kernel work with the Pexo rom?
I really REALLY want a kernel that has proper undervolt tables, because I can't stand my phone overheating randomly. Using Skymelon 9, it's alright but brings problems like overheating since it's running at higher frequency and the phone is already semi-snappy and I am not really gaming, since no games work that I like. For instance Shadowverse or Fate Grand Order. First game stutters and audio is distorted, while second game won't launch because phone is rooted.
 

AndyPhoenix9879

Senior Member
Jan 26, 2014
441
298
0
How does it compare to other kernels?
Does this kernel work with the Pexo rom?
I really REALLY want a kernel that has proper undervolt tables, because I can't stand my phone overheating randomly. Using Skymelon 9, it's alright but brings problems like overheating since it's running at higher frequency and the phone is already semi-snappy and I am not really gaming, since no games work that I like. For instance Shadowverse or Fate Grand Order. First game stutters and audio is distorted, while second game won't launch because phone is rooted.
No reason for it to not work with PexoROM
 
  • Like
Reactions: zacharias.maladroit

valyo_bg

Senior Member
Jul 16, 2015
388
103
43
Sofia
Mobile Data don't work on E2363 (dual) and kernel governor stay on "performance", all other is OK.

Keep your good work :) .
 
Last edited:

valyo_bg

Senior Member
Jul 16, 2015
388
103
43
Sofia
@DavidMKD Its shows that mobile data is enabled, but there is no icon for 3g/LTE and every app report that phone is offline when WiFi is OFF. Enabling and disabling of mobile data don't helps.
Which version of M4 you have? Thanks for "performance fix", I will try to find proper file to replace inside system/etc or you can share it?

Edit: I found correct file and replace it and now kernel governor is interactive :) , only problem with mobile data remain, hopefully @zacharias.maladroit will fix soon.
 
Last edited:
  • Like
Reactions: zacharias.maladroit

LilBlinx

Recognized Contributor
Jun 17, 2012
2,029
5,569
203
Skopje
@DavidMKD Its shows that mobile data is enabled, but there is no icon for 3g/LTE and every app report that phone is offline when WiFi is OFF. Enabling and disabling of mobile data don't helps.
Which version of M4 you have? Thanks for "performance fix", I will try to find proper file to replace inside system/etc or you can share it?

Edit: I found correct file and replace it and now kernel governor is interactive :) , only problem with mobile data remain, hopefully will get fix soon.
I think you are right about mobile data, it doesn't work here either
 
  • Like
Reactions: zacharias.maladroit

zacharias.maladroit

Recognized Developer
Okay, updated the OP / first post with clearer instructions to get into Recovery,

LOT of folks are trying to mess with M4 Aqua users by posting WRONG instructions on how to get into fastboot or TWRP/recovery.

I thought I was (or Sony) going crazy with those differing Button combinations from M4 Aqua and Xperia Z5 but it's THE SAME !

fastboot:

Volume DOWN + connecting USB
Recovery:

Volume DOWN + Power button , Power release on Sony screen
No wonder people (or new starters) are having such a hard time to use this phone and start development for it (with that non-clarity , confusion and frustration)

Thanks for your work

can you add low brightness mod please?

the original init.qcom.post_boot.sh file from E2333
https://www.mediafire.com/file/5mqc9n16fqwxan1/init.qcom.post_boot.rar
the original wlan.ko for SMK users
https://www.mediafire.com/file/4ejnzel0vacrji1/wlan.rar
Oh - been wondering what to make of the high brightness :eek:

Can you please point me to the modifications needed for it ?

With what tool or process the ramdisk/initramfs can be packed up again ?

@zacharias.maladroit could you please fix mobile data problem? Mobile data is shown "enabled", but all apps report that they are offline.
Consider it done (take a look at the kernel folder) [ https://drive.google.com/open?id=0BykGGWB96CBQUFhXbG5sRUZMMWM ]

The kernel is still experimental and more of a proof of concept:

The iddd (idd daemon - or close to that name) is crashing and force-closing continually (last time I checked),

thus I renamed and moved it to the internal storage so that the Android/init system deactivates it :p

Thanks to @dani020110 for pointing at the offending commit that would cause the crashing of the new kernel :)


Kernel source is at:

https://github.com/zachariasmaladroit/android_kernel_sony_msm8994_kitakami_r2/commits/Nautilus_I.1
 
Last edited: